update to 1.7.36 [release 1.7.36-1mamba;Wed Aug 10 2022]

This commit is contained in:
Silvan Calarco 2024-01-06 00:12:30 +01:00
parent 70cdad6970
commit ec150a26a6
16 changed files with 79 additions and 853 deletions

24
LICENSE.txt Normal file
View File

@ -0,0 +1,24 @@
Copyright (c) 2004-2022 QOS.ch Sarl (Switzerland)
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View File

@ -1,12 +1,5 @@
# java-slf4j # java-slf4j
The Simple Logging Facade for Java or (SLF4J) is intended to serve The Simple Logging Facade for Java or (SLF4J) is intended to serve as a simple facade for various logging APIs allowing to the end-user to plug in the desired implementation at deployment time. SLF4J also allows for a gradual migration path away from Jakarta Commons Logging (JCL).
as a simple facade for various logging APIs allowing to the end-user Logging API implementations can either choose to implement the SLF4J interfaces directly, e.g. NLOG4J or SimpleLogger. Alternatively, it is possible (and rather easy) to write SLF4J adapters for the given API implementation, e.g. Log4jLoggerAdapter or JDK14LoggerAdapter.
to plug in the desired implementation at deployment time. SLF4J also
allows for a gradual migration path away from
Jakarta Commons Logging (JCL).
Logging API implementations can either choose to implement the
SLF4J interfaces directly, e.g. NLOG4J or SimpleLogger. Alternatively,
it is possible (and rather easy) to write SLF4J adapters for the given
API implementation, e.g. Log4jLoggerAdapter or JDK14LoggerAdapter.

View File

@ -1,43 +0,0 @@
--- slf4j-1.5.8/integration/build.xml 2009-06-09 21:51:55.000000000 +0200
+++ slf4j-1.5.8/integration/build.xml-gil 2009-06-23 19:58:36.000000000 +0200
@@ -61,7 +61,7 @@
</target>
<target name="testMismatch">
- <junit printsummary="yes" fork="no" haltonfailure="yes">
+ <junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="pathIncompatible" />
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports" name="org.slf4j.VersionMismatchTest" />
@@ -69,7 +69,7 @@
</target>
<target name="testPre155">
- <junit printsummary="yes" fork="no" haltonfailure="yes">
+ <junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="path150" />
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports" name="org.slf4j.Pre155VersionTest" />
@@ -77,7 +77,7 @@
</target>
<target name="testMatch">
- <junit printsummary="yes" fork="no" haltonfailure="yes">
+ <junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="pathCurrent" />
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports" name="org.slf4j.VersionMatchTest" />
@@ -85,10 +85,10 @@
</target>
<target name="testMultiBinding">
- <junit printsummary="yes" fork="no" haltonfailure="yes">
+ <junit printsummary="yes" fork="no" haltonfailure="no">
<classpath refid="multiBinding" />
<formatter type="plain" />
<test fork="yes" todir="target/unit-reports" name="org.slf4j.MultiBindingTest" />
</junit>
</target>
-</project>
\ No newline at end of file
+</project>

View File

@ -1,20 +0,0 @@
--- integration/maven-build.xml 2010-01-19 14:44:35.000000000 +0100
+++ integration/maven-build.xml-gil 2010-01-19 22:07:47.000000000 +0100
@@ -67,7 +67,7 @@
<!-- Compilation target -->
<!-- ====================================================================== -->
- <target name="compile" depends="get-deps" description="Compile the code">
+ <target name="compile" description="Compile the code">
<mkdir dir="${maven.build.outputDir}"/>
<javac destdir="${maven.build.outputDir}"
nowarn="false"
@@ -125,7 +125,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -1,11 +0,0 @@
--- jcl-over-slf4j/maven-build.xml 2010-01-19 14:44:28.000000000 +0100
+++ jcl-over-slf4j/maven-build.xml-gil 2010-01-19 21:48:05.000000000 +0100
@@ -126,7 +126,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -1,11 +0,0 @@
--- jul-to-slf4j/maven-build.xml 2010-01-19 14:44:32.000000000 +0100
+++ jul-to-slf4j/maven-build.xml-gil 2010-01-19 21:52:41.000000000 +0100
@@ -127,7 +127,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -1,11 +0,0 @@
--- slf4j-api/maven-build.xml 2010-01-19 14:43:13.000000000 +0100
+++ slf4j-api/maven-build.xml-gil 2010-01-19 20:02:14.000000000 +0100
@@ -122,7 +122,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -1,14 +0,0 @@
--- slf4j-api/maven-build.xml 2010-01-20 09:38:07.000000000 +0100
+++ slf4j-api/maven-build.xml-gil 2010-01-20 09:37:43.000000000 +0100
@@ -223,6 +223,11 @@
manifest="/usr/src/RPM/BUILD/slf4j-1.5.8/slf4j-api/target/classes/META-INF/MANIFEST.MF"
basedir="${maven.build.outputDir}"
excludes="**/package.html"/>
+ <jar jarfile="${maven.build.dir}/${maven.build.finalName}-tests.jar"
+ compress="true"
+ index="false"
+ manifest="/usr/src/RPM/BUILD/slf4j-1.5.8/slf4j-api/target/test-classes/META-INF/MANIFEST.MF"
+ basedir="${maven.build.testOutputDir}"/>
</target>
<!-- ====================================================================== -->

View File

@ -1,11 +0,0 @@
--- slf4j-ext/maven-build.xml 2010-01-19 14:44:25.000000000 +0100
+++ slf4j-ext/maven-build.xml-gil 2010-01-19 21:44:17.000000000 +0100
@@ -134,7 +134,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -1,11 +0,0 @@
--- slf4j-jcl/maven-build.xml 2010-01-19 14:44:23.000000000 +0100
+++ slf4j-jcl/maven-build.xml-gil 2010-01-19 21:40:59.000000000 +0100
@@ -127,7 +127,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -1,11 +0,0 @@
--- slf4j-jdk14/maven-build.xml 2010-01-19 14:44:20.000000000 +0100
+++ slf4j-jdk14/maven-build.xml-gil 2010-01-19 20:34:32.000000000 +0100
@@ -126,7 +126,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -1,11 +0,0 @@
--- slf4j-log4j12/maven-build.xml 2010-01-19 14:44:22.000000000 +0100
+++ slf4j-log4j12/maven-build.xml-gil 2010-01-19 20:43:39.000000000 +0100
@@ -130,7 +130,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -1,11 +0,0 @@
--- slf4j-nop/maven-build.xml 2010-01-19 14:44:18.000000000 +0100
+++ slf4j-nop/maven-build.xml-gil 2010-01-19 20:30:19.000000000 +0100
@@ -125,7 +125,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -1,11 +0,0 @@
--- slf4j-simple/maven-build.xml 2010-01-19 14:44:16.000000000 +0100
+++ slf4j-simple/maven-build.xml-gil 2010-01-19 20:20:44.000000000 +0100
@@ -125,7 +125,7 @@
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
- <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <junit printSummary="yes" haltonerror="false" haltonfailure="false" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>

View File

@ -1,359 +1,72 @@
%define maven 0
Name: java-slf4j Name: java-slf4j
Version: 1.5.8 Version: 1.7.36
Release: 3mamba Release: 1mamba
Summary: Simple Logging Facade for Java (SLF4J) Summary: Simple Logging Facade for Java (SLF4J)
Group: Development/Libraries/Java Group: Development/Libraries/Java
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: gil <puntogil@libero.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.slf4j.org/ URL: https://www.slf4j.org/
Source0: http://www.slf4j.org/dist/slf4j-%{version}.tar.gz Source0: https://repo1.maven.org/maven2/org/slf4j/jcl-over-slf4j/%{version}/jcl-over-slf4j-%{version}.jar
Source1: maven2-2.2.0-settings.xml Source1: https://repo1.maven.org/maven2/org/slf4j/jul-to-slf4j/%{version}/jul-to-slf4j-%{version}.jar
Source2: java-slf4j-1.5.8-auto-generated-files.tar.gz Source2: https://repo1.maven.org/maven2/org/slf4j/log4j-over-slf4j/%{version}/log4j-over-slf4j-%{version}.jar
Patch0: java-slf4j-1.5.8-integration-build_xml.patch Source3: https://repo1.maven.org/maven2/org/slf4j/slf4j-api/%{version}/slf4j-api-%{version}.jar
Patch1: java-slf4j-1.5.8-slf4j-api-maven-build_xml.patch Source4: https://repo1.maven.org/maven2/org/slf4j/slf4j-ext/%{version}/slf4j-ext-%{version}.jar
Patch2: java-slf4j-1.5.8-slf4j-simple-maven-build_xml.patch Source5: https://repo1.maven.org/maven2/org/slf4j/slf4j-jcl/%{version}/slf4j-jcl-%{version}.jar
Patch3: java-slf4j-1.5.8-slf4j-nop-maven-build_xml.patch Source6: https://repo1.maven.org/maven2/org/slf4j/slf4j-jdk14/%{version}/slf4j-jdk14-%{version}.jar
Patch4: java-slf4j-1.5.8-slf4j-jdk14-maven-build_xml.patch Source7: https://repo1.maven.org/maven2/org/slf4j/slf4j-reload4j/%{version}/slf4j-reload4j-%{version}.jar
Patch5: java-slf4j-1.5.8-slf4j-log4j12-maven-build_xml.patch Source8: https://repo1.maven.org/maven2/org/slf4j/slf4j-migrator/%{version}/slf4j-migrator-%{version}.jar
Patch6: java-slf4j-1.5.8-slf4j-jcl-maven-build_xml.patch Source9: https://repo1.maven.org/maven2/org/slf4j/slf4j-nop/%{version}/slf4j-nop-%{version}.jar
Patch7: java-slf4j-1.5.8-slf4j-ext-maven-build_xml.patch Source10: https://repo1.maven.org/maven2/org/slf4j/slf4j-simple/%{version}/slf4j-simple-%{version}.jar
Patch8: java-slf4j-1.5.8-jcl-over-slf4j-maven-build_xml.patch Source11: https://raw.githubusercontent.com/qos-ch/slf4j/v_%{version}/LICENSE.txt
Patch9: java-slf4j-1.5.8-jul-to-slf4j-maven-build_xml.patch
Patch10: java-slf4j-1.5.8-integration-maven-build_xml.patch
Patch11: java-slf4j-1.5.8-slf4j-api-testjar.patch
License: Apache Software License 2.0, GPL, MIT, X11 License: Apache Software License 2.0, GPL, MIT, X11
BuildRequires: apache-ant ## AUTOBUILDREQ-BEGIN
BuildRequires: apache-ant-junit ## AUTOBUILDREQ-END
BuildRequires: apache-log4j BuildRequires: javapackages
%if %maven Requires: javapackages
BuildRequires: apache-maven
BuildRequires: apache-maven-plugin-antrun
BuildRequires: apache-maven-plugin-compiler
BuildRequires: apache-maven-plugin-install
BuildRequires: apache-maven-plugin-jar
BuildRequires: apache-maven-plugin-javadoc
BuildRequires: apache-maven-plugin-resources
BuildRequires: apache-maven-plugin-source
BuildRequires: maven-surefire-plugin
%endif
BuildRequires: jakarta-commons-logging
BuildRequires: jakarta-commons-lang24
BuildRequires: java-excalibur-avalon-framework420
BuildRequires: java-junit3
BuildRequires: java-junit381
BuildRequires: javassist
BuildRequires: jpackage-utils
Requires: jpackage-utils
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description %description
The Simple Logging Facade for Java or (SLF4J) is intended to serve The Simple Logging Facade for Java or (SLF4J) is intended to serve as a simple facade for various logging APIs allowing to the end-user to plug in the desired implementation at deployment time. SLF4J also allows for a gradual migration path away from Jakarta Commons Logging (JCL).
as a simple facade for various logging APIs allowing to the end-user Logging API implementations can either choose to implement the SLF4J interfaces directly, e.g. NLOG4J or SimpleLogger. Alternatively, it is possible (and rather easy) to write SLF4J adapters for the given API implementation, e.g. Log4jLoggerAdapter or JDK14LoggerAdapter.
to plug in the desired implementation at deployment time. SLF4J also
allows for a gradual migration path away from
Jakarta Commons Logging (JCL).
Logging API implementations can either choose to implement the
SLF4J interfaces directly, e.g. NLOG4J or SimpleLogger. Alternatively,
it is possible (and rather easy) to write SLF4J adapters for the given
API implementation, e.g. Log4jLoggerAdapter or JDK14LoggerAdapter.
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
%description javadoc
Simple Logging Facade for Java (SLF4J)
This package contains javadoc for %{name}
%if %maven
%package manual
Group: Documentation
Summary: Documents for %{name}
%description manual
Simple Logging Facade for Java (SLF4J)
This package contains documents for %{name}
%endif
%prep %prep
%setup -q -c
%setup -q -n slf4j-%{version} cp %{SOURCE11} LICENSE.txt
for j in $(find . -name "*.jar"); do
mv $j ${j}.no
done
%patch0 -p1
%if %maven
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
cp %{S:1} settings.xml
mkdir -p .m2/repository/JPP/maven2
sed -i -e "s|<localRepository>__INTERNAL_REPO_PLACEHOLDER__</localRepository>|<localRepository>file://`pwd`/external_repo</localRepository>|g" settings.xml
sed -i -e "s|<url>__EXTERNAL_REPO_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
mkdir external_repo
ln -s %{_javadir} external_repo/JPP
mkdir -p $MAVEN_REPO_LOCAL/org.slf4j
ln -sf $(build-classpath maven2/empty-dep) $MAVEN_REPO_LOCAL/org.slf4j/slf4j-api.jar
ln -sf $(build-classpath maven2/empty-dep) $MAVEN_REPO_LOCAL/org.slf4j/slf4j-simple.jar
ln -sf $(build-classpath maven2/empty-dep) $MAVEN_REPO_LOCAL/org.slf4j/slf4j-log4j12.jar
%else
tar -xf %{SOURCE2}
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9
%patch10
%patch11
%endif
%build %build
export JAVA_HOME=/usr/lib/jvm/jdk-sun
export MAVEN_REPO_LOCAL=$PWD/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL/junit/junit/3.8.1
ln -sf $(build-classpath junit381) $MAVEN_REPO_LOCAL/junit/junit/3.8.1/junit-3.8.1.jar
mkdir -p $MAVEN_REPO_LOCAL/log4j/log4j/1.2.14
ln -sf $(build-classpath log4j) $MAVEN_REPO_LOCAL/log4j/log4j/1.2.14/log4j-1.2.14.jar
mkdir -p $MAVEN_REPO_LOCAL/commons-logging/commons-logging/1.1.1
ln -sf $(build-classpath commons-logging) $MAVEN_REPO_LOCAL/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
mkdir -p $MAVEN_REPO_LOCAL/commons-lang/commons-lang/2.4
ln -sf $(build-classpath commons-lang24) $MAVEN_REPO_LOCAL/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
mkdir -p $MAVEN_REPO_LOCAL/javassist/javassist/3.4.GA
ln -sf $(build-classpath javassist) $MAVEN_REPO_LOCAL/javassist/javassist/3.4.GA/javassist-3.4.GA.jar
mkdir -p $MAVEN_REPO_LOCAL/ant/ant-junit/1.6.5
ln -sf $(build-classpath ant/ant-junit) $MAVEN_REPO_LOCAL/ant/ant-junit/1.6.5/ant-junit-1.6.5.jar
%if %maven
export MAVEN_SETTINGS=$PWD/settings.xml
mvn-jpp \
-e \
-s $MAVEN_SETTINGS \
-Dmaven.test.failure.ignore=true \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
ant:ant install javadoc:javadoc
%else
pushd slf4j-api
mkdir -p target/test-classes/
cp -pr src/main/resources/META-INF target/test-classes/
export CLASSPATH=""
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
mkdir -p $MAVEN_REPO_LOCAL/org/slf4j/slf4j-api/%{version}
cp target/slf4j-api-%{version}.jar $MAVEN_REPO_LOCAL/org/slf4j/slf4j-api/%{version}/
cp target/slf4j-api-%{version}-tests.jar $MAVEN_REPO_LOCAL/org/slf4j/slf4j-api/%{version}/
popd
pushd slf4j-simple
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd slf4j-nop
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd slf4j-jdk14
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}-tests.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
mkdir -p $MAVEN_REPO_LOCAL/org/slf4j/slf4j-jdk14/%{version}
cp target/slf4j-jdk14-%{version}.jar $MAVEN_REPO_LOCAL/org/slf4j/slf4j-jdk14/%{version}/
popd
pushd slf4j-log4j12
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
mkdir -p $MAVEN_REPO_LOCAL/org/slf4j/slf4j-log4j12/%{version}
cp target/slf4j-log4j12-%{version}.jar $MAVEN_REPO_LOCAL/org/slf4j/slf4j-log4j12/%{version}/
popd
pushd slf4j-jcl
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd slf4j-ext
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-log4j12/target/slf4j-log4j12-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath commons-lang24 javassist)
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd jcl-over-slf4j
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-jdk14/target/slf4j-jdk14-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd jcl104-over-slf4j
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-jdk14/target/slf4j-jdk14-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar
popd
pushd log4j-over-slf4j
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-jdk14/target/slf4j-jdk14-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd jul-to-slf4j
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:../slf4j-log4j12/target/slf4j-log4j12-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd slf4j-migrator
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2):target/classes:target/test-classes
ant \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar javadoc
popd
pushd integration
export CLASSPATH=""
CLASSPATH=$CLASSPATH:../slf4j-api/target/slf4j-api-%{version}.jar
CLASSPATH=$CLASSPATH:$(build-classpath avalon-framework420 commons-logging)
CLASSPATH=$CLASSPATH:$(build-classpath log4j junit-3.8.2 ant/ant-junit):target/classes:target/test-classes
ant \
-buildfile maven-build.xml \
-Duser.home=$PWD \
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
-Dmaven.settings.offline=true \
-Dmaven.settings.interactiveMode=false \
jar
popd
%endif
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}/slf4j mkdir -p %{buildroot}%{_javadir}/slf4j
install -m 644 jcl104-over-slf4j/target/jcl104-over-slf4j-%{version}.jar \ #install -m 644 jcl104-over-slf4j/target/jcl104-over-slf4j-%{version}.jar \
%{buildroot}%{_javadir}/slf4j/jcl104-over-slf4j-%{version}.jar # %{buildroot}%{_javadir}/slf4j/jcl104-over-slf4j-%{version}.jar
install -m 644 jcl-over-slf4j/target/jcl-over-slf4j-%{version}.jar \ install -m 644 %{SOURCE0} \
%{buildroot}%{_javadir}/slf4j/jcl-over-slf4j-%{version}.jar %{buildroot}%{_javadir}/slf4j/jcl-over-slf4j-%{version}.jar
install -m 644 jul-to-slf4j/target/jul-to-slf4j-%{version}.jar \ install -m 644 %{SOURCE1} \
%{buildroot}%{_javadir}/slf4j/jul-to-slf4j-%{version}.jar %{buildroot}%{_javadir}/slf4j/jul-to-slf4j-%{version}.jar
install -m 644 log4j-over-slf4j/target/log4j-over-slf4j-%{version}.jar \ install -m 644 %{SOURCE2} \
%{buildroot}%{_javadir}/slf4j/log4j-over-slf4j-%{version}.jar %{buildroot}%{_javadir}/slf4j/log4j-over-slf4j-%{version}.jar
install -m 644 slf4j-api/target/slf4j-api-%{version}.jar \ install -m 644 %{SOURCE3} \
%{buildroot}%{_javadir}/slf4j/api-%{version}.jar %{buildroot}%{_javadir}/slf4j/api-%{version}.jar
install -m 644 slf4j-api/target/slf4j-api-%{version}-tests.jar \ #install -m 644 slf4j-api/target/slf4j-api-%{version}-tests.jar \
%{buildroot}%{_javadir}/slf4j/api-tests-%{version}.jar # %{buildroot}%{_javadir}/slf4j/api-tests-%{version}.jar
install -m 644 slf4j-ext/target/slf4j-ext-%{version}.jar \ install -m 644 %{SOURCE4} \
%{buildroot}%{_javadir}/slf4j/ext-%{version}.jar %{buildroot}%{_javadir}/slf4j/ext-%{version}.jar
install -m 644 slf4j-jcl/target/slf4j-jcl-%{version}.jar \ install -m 644 %{SOURCE5} \
%{buildroot}%{_javadir}/slf4j/jcl-%{version}.jar %{buildroot}%{_javadir}/slf4j/jcl-%{version}.jar
install -m 644 slf4j-jdk14/target/slf4j-jdk14-%{version}.jar \ install -m 644 %{SOURCE6} \
%{buildroot}%{_javadir}/slf4j/jdk14-%{version}.jar %{buildroot}%{_javadir}/slf4j/jdk14-%{version}.jar
install -m 644 slf4j-log4j12/target/slf4j-log4j12-%{version}.jar \ install -m 644 %{SOURCE7} \
%{buildroot}%{_javadir}/slf4j/log4j12-%{version}.jar %{buildroot}%{_javadir}/slf4j/reload4j-%{version}.jar
install -m 644 slf4j-migrator/target/slf4j-migrator-%{version}.jar \ #install -m 644 slf4j-log4j12/target/slf4j-log4j12-%{version}.jar \
# %{buildroot}%{_javadir}/slf4j/log4j12-%{version}.jar
install -m 644 %{SOURCE8} \
%{buildroot}%{_javadir}/slf4j/migrator-%{version}.jar %{buildroot}%{_javadir}/slf4j/migrator-%{version}.jar
install -m 644 slf4j-nop/target/slf4j-nop-%{version}.jar \ install -m 644 %{SOURCE9} \
%{buildroot}%{_javadir}/slf4j/nop-%{version}.jar %{buildroot}%{_javadir}/slf4j/nop-%{version}.jar
install -m 644 slf4j-simple/target/slf4j-simple-%{version}.jar \ install -m 644 %{SOURCE10} \
%{buildroot}%{_javadir}/slf4j/simple-%{version}.jar %{buildroot}%{_javadir}/slf4j/simple-%{version}.jar
#install -m 644 slf4j-site/target/slf4j-site-%{version}.jar \ #install -m 644 slf4j-site/target/slf4j-site-%{version}.jar \
# %{buildroot}%{_javadir}/slf4j/site-%{version}.jar # %{buildroot}%{_javadir}/slf4j/site-%{version}.jar
@ -365,81 +78,6 @@ install -m 644 slf4j-simple/target/slf4j-simple-%{version}.jar \
done done
) )
mkdir -p %{buildroot}%{_datadir}/maven2/poms
%add_to_maven_depmap org.slf4j jcl104-over-slf4j %{version} JPP/slf4j jcl104-over-slf4j
%add_to_maven_depmap org.slf4j jcl-over-slf4j %{version} JPP/slf4j jcl-over-slf4j
%add_to_maven_depmap org.slf4j jul-to-slf4j %{version} JPP/slf4j jul-to-slf4j
%add_to_maven_depmap org.slf4j log4j-over-slf4j %{version} JPP/slf4j log4j-over-slf4j
%add_to_maven_depmap org.slf4j slf4j-parent %{version} JPP/slf4j parent
%add_to_maven_depmap org.slf4j slf4j-api %{version} JPP/slf4j api
%add_to_maven_depmap org.slf4j slf4j-ext %{version} JPP/slf4j ext
%add_to_maven_depmap org.slf4j slf4j-jcl %{version} JPP/slf4j jcl
%add_to_maven_depmap org.slf4j slf4j-jdk14 %{version} JPP/slf4j jdk14
%add_to_maven_depmap org.slf4j slf4j-log4j12 %{version} JPP/slf4j log4j12
%add_to_maven_depmap org.slf4j slf4j-migrator %{version} JPP/slf4j migrator
%add_to_maven_depmap org.slf4j slf4j-nop %{version} JPP/slf4j nop
%add_to_maven_depmap org.slf4j slf4j-simple %{version} JPP/slf4j simple
install -pm 644 pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-parent.pom
install -pm 644 jcl104-over-slf4j/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-jcl104-over-slf4j.pom
install -pm 644 jcl-over-slf4j/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-jcl-over-slf4j.pom
install -pm 644 jul-to-slf4j/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-jul-to-slf4j.pom
install -pm 644 log4j-over-slf4j/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-log4j-over-slf4j.pom
install -pm 644 slf4j-api/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-api.pom
install -m 644 slf4j-ext/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-ext.pom
install -pm 644 slf4j-jcl/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-jcl.pom
install -pm 644 slf4j-jdk14/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-jdk14.pom
install -pm 644 slf4j-log4j12/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-log4j12.pom
install -pm 644 slf4j-migrator/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-migrator.pom
install -pm 644 slf4j-nop/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-nop.pom
install -pm 644 slf4j-simple/pom.xml \
%{buildroot}%{_datadir}/maven2/poms/JPP.slf4j-simple.pom
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}
%if %maven
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}
rm -rf target/site/apidocs
%else
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/jcl-over-slf4j
cp -pr jcl-over-slf4j/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/jcl-over-slf4j
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/jul-to-slf4j
cp -pr jul-to-slf4j/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/jul-to-slf4j
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/log4j-over-slf4j
cp -pr log4j-over-slf4j/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/log4j-over-slf4j
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/api
cp -pr slf4j-api/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/api
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/ext
cp -pr slf4j-ext/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/ext
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/jcl
cp -pr slf4j-jcl/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/jcl
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/jdk14
cp -pr slf4j-jdk14/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/jdk14
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/log4j12
cp -pr slf4j-log4j12/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/log4j12
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/migrator
cp -pr slf4j-migrator/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/migrator
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/nop
cp -pr slf4j-nop/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/nop
mkdir -p %{buildroot}%{_javadocdir}/slf4j-%{version}/simple
cp -pr slf4j-simple/target/site/apidocs/* %{buildroot}%{_javadocdir}/slf4j-%{version}/simple
%endif
ln -s slf4j-%{version} %{buildroot}%{_javadocdir}/slf4j
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -447,8 +85,8 @@ ln -s slf4j-%{version} %{buildroot}%{_javadocdir}/slf4j
%defattr(-,root,root) %defattr(-,root,root)
%dir %{_javadir}/slf4j %dir %{_javadir}/slf4j
%{_javadir}/slf4j/api-%{version}.jar %{_javadir}/slf4j/api-%{version}.jar
%{_javadir}/slf4j/api-tests-%{version}.jar #%{_javadir}/slf4j/api-tests-%{version}.jar
%{_javadir}/slf4j/api-tests.jar #%{_javadir}/slf4j/api-tests.jar
%{_javadir}/slf4j/api.jar %{_javadir}/slf4j/api.jar
%{_javadir}/slf4j/ext-%{version}.jar %{_javadir}/slf4j/ext-%{version}.jar
%{_javadir}/slf4j/ext.jar %{_javadir}/slf4j/ext.jar
@ -456,38 +94,30 @@ ln -s slf4j-%{version} %{buildroot}%{_javadocdir}/slf4j
%{_javadir}/slf4j/jcl-over-slf4j-%{version}.jar %{_javadir}/slf4j/jcl-over-slf4j-%{version}.jar
%{_javadir}/slf4j/jcl-over-slf4j.jar %{_javadir}/slf4j/jcl-over-slf4j.jar
%{_javadir}/slf4j/jcl.jar %{_javadir}/slf4j/jcl.jar
%{_javadir}/slf4j/jcl104-over-slf4j-%{version}.jar #%{_javadir}/slf4j/jcl104-over-slf4j-%{version}.jar
%{_javadir}/slf4j/jcl104-over-slf4j.jar #%{_javadir}/slf4j/jcl104-over-slf4j.jar
%{_javadir}/slf4j/jdk14-%{version}.jar %{_javadir}/slf4j/jdk14-%{version}.jar
%{_javadir}/slf4j/jdk14.jar %{_javadir}/slf4j/jdk14.jar
%{_javadir}/slf4j/jul-to-slf4j-%{version}.jar %{_javadir}/slf4j/jul-to-slf4j-%{version}.jar
%{_javadir}/slf4j/jul-to-slf4j.jar %{_javadir}/slf4j/jul-to-slf4j.jar
%{_javadir}/slf4j/log4j-over-slf4j-%{version}.jar %{_javadir}/slf4j/log4j-over-slf4j-%{version}.jar
%{_javadir}/slf4j/log4j-over-slf4j.jar %{_javadir}/slf4j/log4j-over-slf4j.jar
%{_javadir}/slf4j/log4j12-%{version}.jar #%{_javadir}/slf4j/log4j12-%{version}.jar
%{_javadir}/slf4j/log4j12.jar #%{_javadir}/slf4j/log4j12.jar
%{_javadir}/slf4j/reload4j-%{version}.jar
%{_javadir}/slf4j/reload4j.jar
%{_javadir}/slf4j/migrator-%{version}.jar %{_javadir}/slf4j/migrator-%{version}.jar
%{_javadir}/slf4j/migrator.jar %{_javadir}/slf4j/migrator.jar
%{_javadir}/slf4j/nop-%{version}.jar %{_javadir}/slf4j/nop-%{version}.jar
%{_javadir}/slf4j/nop.jar %{_javadir}/slf4j/nop.jar
%{_javadir}/slf4j/simple-%{version}.jar %{_javadir}/slf4j/simple-%{version}.jar
%{_javadir}/slf4j/simple.jar %{_javadir}/slf4j/simple.jar
%{_datadir}/maven2/poms
%{_mavendepmapfragdir}
%doc LICENSE.txt %doc LICENSE.txt
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/slf4j-%{version}
%{_javadocdir}/slf4j
%if %maven
%files manual
%defattr(-,root,root)
%doc target/site
%endif
%changelog %changelog
* Wed Aug 10 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.7.36-1mamba
- update to 1.7.36
* Sat Nov 06 2010 gil <puntogil@libero.it> 1.5.8-3mamba * Sat Nov 06 2010 gil <puntogil@libero.it> 1.5.8-3mamba
- rebuilt devel - rebuilt devel

View File

@ -1,245 +0,0 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<!--
| This is the configuration file for Maven. It can be specified at two levels:
|
| 1. User Level. This settings.xml file provides configuration for a single user,
| and is normally provided in $HOME/.m2/settings.xml.
|
| NOTE: This location can be overridden with the system property:
|
| -Dorg.apache.maven.user-settings=/path/to/user/settings.xml
|
| 2. Global Level. This settings.xml file provides configuration for all maven
| users on a machine (assuming they're all using the same maven
| installation). It's normally provided in
| ${maven.home}/conf/settings.xml.
|
| NOTE: This location can be overridden with the system property:
|
| -Dorg.apache.maven.global-settings=/path/to/global/settings.xml
|
| The sections in this sample file are intended to give you a running start at
| getting the most out of your Maven installation. Where appropriate, the default
| values (values used when the setting is not specified) are provided.
|
|-->
<settings xmlns="http://maven.apache.org/settings/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ~/.m2/repository-->
<localRepository>__INTERNAL_REPO_PLACEHOLDER__</localRepository>
<!-- interactiveMode
| This will determine whether maven prompts you when it needs input. If set to false,
| maven will use a sensible default value, perhaps based on some other setting, for
| the parameter in question.
|
| Default: true
<interactiveMode>true</interactiveMode>
-->
<!-- offline
| Determines whether maven should attempt to connect to the network when executing a build.
| This will have an effect on artifact downloads, artifact deployment, and others.
|
| Default: false
<offline>false</offline>
-->
<!-- proxies
| This is a list of proxies which can be used on this machine to connect to the network.
| Unless otherwise specified (by system property or command-line switch), the first proxy
| specification in this list marked as active will be used.
|-->
<proxies>
<!-- proxy
| Specification for one proxy, to be used in connecting to the network.
|
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<username>proxyuser</username>
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
-->
</proxies>
<!-- servers
| This is a list of authentication profiles, keyed by the server-id used within the system.
| Authentication profiles can be used whenever maven must make a connection to a remote server.
|-->
<servers>
<!-- server
| Specifies the authentication information to use when connecting to a particular server, identified by
| a unique name within the system (referred to by the 'id' attribute below).
|
| NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
| used together.
|
<server>
<id>deploymentRepo</id>
<username>repouser</username>
<password>repopwd</password>
</server>
-->
<!-- Another sample, using keys to authenticate.
<server>
<id>siteServer</id>
<privateKey>/path/to/private/key</privateKey>
<passphrase>optional; leave empty if not used.</passphrase>
</server>
-->
</servers>
<!-- mirrors
| This is a list of mirrors to be used in downloading artifacts from remote repositories.
|
| It works like this: a POM may declare a repository to use in resolving certain artifacts.
| However, this repository may have problems with heavy traffic at times, so people have mirrored
| it to several places.
|
| That repository definition will have a unique id, so we can create a mirror reference for that
| repository, to be used as an alternate download site. The mirror site will be the preferred
| server for that repository.
|-->
<mirrors>
<!-- mirror
| Specifies a repository mirror site to use instead of a given repository. The repository that
| this mirror serves has an ID that matches the mirrorOf element of this mirror. IDs are used
| for inheritance and direct lookup purposes, and must be unique across the set of mirrors.
|
-->
<mirror>
<id>mirrorId</id>
<mirrorOf>repositoryId</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>__EXTERNAL_REPO_PLACEHOLDER__</url>
</mirror>
</mirrors>
<!-- profiles
| This is a list of profiles which can be activated in a variety of ways, and which can modify
| the build process. Profiles provided in the settings.xml are intended to provide local machine-
| specific paths and repository locations which allow the build to work in the local environment.
|
| For example, if you have an integration testing plugin - like cactus - that needs to know where
| your Tomcat instance is installed, you can provide a variable here such that the variable is
| dereferenced during the build process to configure the cactus plugin.
|
| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles
| section of this document (settings.xml) - will be discussed later. Another way essentially
| relies on the detection of a system property, either matching a particular value for the property,
| or merely testing its existence. Profiles can also be activated by JDK version prefix, where a
| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.
| Finally, the list of active profiles can be specified directly from the command line.
|
| NOTE: For profiles defined in the settings.xml, you are restricted to specifying only artifact
| repositories, plugin repositories, and free-form properties to be used as configuration
| variables for plugins in the POM.
|
|-->
<profiles>
<!-- profile
| Specifies a set of introductions to the build process, to be activated using one or more of the
| mechanisms described above. For inheritance purposes, and to activate profiles via <activatedProfiles/>
| or the command line, profiles have to have an ID that is unique.
|
| An encouraged best practice for profile identification is to use a consistent naming convention
| for profiles, such as 'env-dev', 'env-test', 'env-production', 'user-jdcasey', 'user-brett', etc.
| This will make it more intuitive to understand what the set of introduced profiles is attempting
| to accomplish, particularly when you only have a list of profile id's for debug.
|
| This profile example uses the JDK version to trigger activation, and provides a JDK-specific repo.
<profile>
<id>jdk-1.4</id>
<activation>
<jdk>1.4</jdk>
</activation>
<repositories>
<repository>
<id>jdk14</id>
<name>Repository for JDK 1.4 builds</name>
<url>http://www.myhost.com/maven/jdk14</url>
<layout>default</layout>
<snapshotPolicy>always</snapshotPolicy>
</repository>
</repositories>
</profile>
-->
<!--
| Here is another profile, activated by the system property 'target-env' with a value of 'dev',
| which provides a specific path to the Tomcat instance. To use this, your plugin configuration
| might hypothetically look like:
|
| ...
| <plugin>
| <groupId>org.myco.myplugins</groupId>
| <artifactId>myplugin</artifactId>
|
| <configuration>
| <tomcatLocation>${tomcatPath}</tomcatLocation>
| </configuration>
| </plugin>
| ...
|
| NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to
| anything, you could just leave off the <value/> inside the activation-property.
|
<profile>
<id>env-dev</id>
<activation>
<property>
<name>target-env</name>
<value>dev</value>
</property>
</activation>
<properties>
<tomcatPath>/path/to/tomcat/instance</tomcatPath>
</properties>
</profile>
-->
</profiles>
<!-- activeProfiles
| List of profiles that are active for all builds.
|
<activeProfiles>
<activeProfile>alwaysActiveProfile</activeProfile>
<activeProfile>anotherAlwaysActiveProfile</activeProfile>
</activeProfiles>
-->
</settings>