• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
5  <modelVersion>4.0.0</modelVersion>
6
7  <parent>
8    <groupId>org.slf4j</groupId>
9    <artifactId>slf4j-bom</artifactId>
10    <version>2.0.12</version>
11    <relativePath>../pom.xml</relativePath>
12  </parent>
13
14  <artifactId>slf4j-parent</artifactId>
15  <packaging>pom</packaging>
16  <name>SLF4J Parent POM</name>
17  <description>SLF4J project parent pom.xml file</description>
18
19
20  <organization>
21    <name>QOS.ch</name>
22    <url>http://www.qos.ch</url>
23  </organization>
24  <inceptionYear>2005</inceptionYear>
25
26
27  <properties>
28    <!-- yyyy-MM-dd'T'HH:mm:ss'Z' -->
29    <project.build.outputTimestamp>2024-02-05T21:21:00Z</project.build.outputTimestamp>
30    <latest.1.version>1.7.36</latest.1.version>
31    <!-- java.util.ServiceLoader requires Java 6 -->
32    <jdk.version>8</jdk.version>
33    <maven.compiler.source>${jdk.version}</maven.compiler.source>
34    <maven.compiler.target>${jdk.version}</maven.compiler.target>
35    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
36    <project.build.resourceEncoding>UTF-8</project.build.resourceEncoding>
37    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
38    <!-- used in integration testing -->
39    <cal10n.version>0.8.1</cal10n.version>
40    <reload4j.version>1.2.22</reload4j.version>
41    <logback.version>1.2.10</logback.version>
42    <jcl.version>1.2</jcl.version>
43    <junit.version>4.13.1</junit.version>
44    <maven-site-plugin.version>3.7.1</maven-site-plugin.version>
45    <maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
46    <maven-surefire-plugin.version>3.0.0-M7</maven-surefire-plugin.version>
47    <maven-javadoc-plugin.version>3.6.3</maven-javadoc-plugin.version>
48    <maven-source-plugin.version>3.2.1</maven-source-plugin.version>
49    <maven-deploy-plugin.version>3.0.0-M1</maven-deploy-plugin.version>
50    <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
51    <maven-jxr-plugin.version>3.1.1</maven-jxr-plugin.version>
52    <maven-bundle-plugin.version>5.1.9</maven-bundle-plugin.version>
53  </properties>
54
55
56  <dependencies>
57    <dependency>
58      <groupId>junit</groupId>
59      <artifactId>junit</artifactId>
60      <version>${junit.version}</version>
61      <scope>test</scope>
62    </dependency>
63  </dependencies>
64
65  <dependencyManagement>
66    <dependencies>
67
68      <dependency>
69        <groupId>ch.qos.reload4j</groupId>
70        <artifactId>reload4j</artifactId>
71        <version>${reload4j.version}</version>
72      </dependency>
73
74      <dependency>
75        <groupId>ch.qos.cal10n</groupId>
76        <artifactId>cal10n-api</artifactId>
77        <version>${cal10n.version}</version>
78      </dependency>
79
80    </dependencies>
81  </dependencyManagement>
82
83  <build>
84    <extensions>
85      <extension>
86        <groupId>org.apache.maven.wagon</groupId>
87        <artifactId>wagon-ssh</artifactId>
88        <version>2.10</version>
89      </extension>
90    </extensions>
91
92    <resources>
93      <resource>
94        <directory>${project.basedir}/src/main/resources</directory>
95        <filtering>true</filtering>
96      </resource>
97
98      <resource>
99        <directory>..</directory>
100        <targetPath>META-INF</targetPath>
101        <includes>
102          <include>LICENSE.txt</include>
103        </includes>
104      </resource>
105    </resources>
106
107    <pluginManagement>
108      <plugins>
109
110        <plugin>
111          <groupId>org.codehaus.mojo</groupId>
112          <artifactId>animal-sniffer-maven-plugin</artifactId>
113          <version>1.14</version>
114          <configuration>
115            <signature>
116              <groupId>org.codehaus.mojo.signature</groupId>
117              <artifactId>java16</artifactId>
118              <version>1.0</version>
119            </signature>
120          </configuration>
121        </plugin>
122
123        <plugin>
124          <groupId>org.apache.maven.plugins</groupId>
125          <artifactId>maven-deploy-plugin</artifactId>
126          <version>${maven-deploy-plugin.version}</version>
127        </plugin>
128
129      </plugins>
130    </pluginManagement>
131
132    <plugins>
133      <plugin>
134        <groupId>org.apache.maven.plugins</groupId>
135        <artifactId>maven-compiler-plugin</artifactId>
136        <version>${maven-compiler-plugin.version}</version>
137        <executions>
138
139          <execution>
140            <id>default-compile</id>
141            <goals>
142              <goal>compile</goal>
143            </goals>
144            <configuration>
145              <source>${jdk.version}</source>
146              <target>${jdk.version}</target>
147            </configuration>
148          </execution>
149
150          <execution>
151            <id>module-compile</id>
152            <phase>compile</phase>
153            <goals>
154              <goal>compile</goal>
155            </goals>
156            <configuration>
157              <release>9</release>
158              <compileSourceRoots>
159                <compileSourceRoot>${project.basedir}/src/main/java9</compileSourceRoot>
160              </compileSourceRoots>
161              <multiReleaseOutput>true</multiReleaseOutput>
162            </configuration>
163          </execution>
164
165
166        </executions>
167
168      </plugin>
169
170      <plugin>
171        <groupId>org.apache.maven.plugins</groupId>
172        <artifactId>maven-jar-plugin</artifactId>
173        <version>${maven-jar-plugin.version}</version>
174        <executions>
175          <!--  Repeated in slf4j-api/pom.xml -->
176          <execution>
177            <id>default-jar</id>
178            <phase>package</phase>
179            <goals>
180              <goal>jar</goal>
181            </goals>
182            <configuration>
183              <archive>
184                <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
185              </archive>
186              <skipIfEmpty>true</skipIfEmpty>
187            </configuration>
188          </execution>
189        </executions>
190      </plugin>
191
192      <plugin>
193        <groupId>org.apache.felix</groupId>
194        <artifactId>maven-bundle-plugin</artifactId>
195        <version>${maven-bundle-plugin.version}</version>
196        <configuration>
197          <supportIncrementalBuild>true</supportIncrementalBuild>
198          <!-- populated by the plugin itself -->
199          <instructions>
200            <Bundle-SymbolicName>${replacestring;${project.artifactId};-;.}</Bundle-SymbolicName>
201            <Bundle-Vendor>SLF4J.ORG</Bundle-Vendor>
202            <_snapshot/>
203            <_exportcontents>!META-INF.versions.9,*;-noimport:=true</_exportcontents>
204            <Bundle-Description>${project.description}</Bundle-Description>
205            <Bundle-DocURL>${project.url}</Bundle-DocURL>
206            <X-Compile-Source-JDK>${maven.compiler.source}</X-Compile-Source-JDK>
207            <X-Compile-Target-JDK>${maven.compiler.target}</X-Compile-Target-JDK>
208            <Implementation-Version>${project.version}</Implementation-Version>
209            <Implementation-Title>${project.artifactId}</Implementation-Title>
210            <Multi-Release>true</Multi-Release>
211            <_removeheaders>Private-Package,Bundle-SCM, Bundle-Developers, Include-Resource</_removeheaders>
212          </instructions>
213        </configuration>
214        <executions>
215          <execution>
216            <id>bundle-manifest</id>
217            <phase>process-classes</phase>
218            <goals>
219              <goal>manifest</goal>
220            </goals>
221          </execution>
222        </executions>
223      </plugin>
224
225      <plugin>
226        <groupId>org.apache.maven.plugins</groupId>
227        <artifactId>maven-surefire-plugin</artifactId>
228        <version>${maven-surefire-plugin.version}</version>
229        <configuration>
230          <forkCount>1</forkCount>
231          <reuseForks>false</reuseForks>
232          <reportFormat>plain</reportFormat>
233          <trimStackTrace>false</trimStackTrace>
234          <excludes>
235            <exclude>**/AllTest.java</exclude>
236            <exclude>**/PackageTest.java</exclude>
237          </excludes>
238        </configuration>
239      </plugin>
240
241      <plugin>
242        <groupId>org.apache.maven.plugins</groupId>
243        <artifactId>maven-source-plugin</artifactId>
244        <version>${maven-source-plugin.version}</version>
245        <executions>
246          <execution>
247            <phase>package</phase>
248            <goals>
249              <goal>jar</goal>
250            </goals>
251          </execution>
252        </executions>
253      </plugin>
254
255      <plugin>
256        <groupId>org.apache.maven.plugins</groupId>
257        <artifactId>maven-site-plugin</artifactId>
258        <version>${maven-site-plugin.version}</version>
259      </plugin>
260
261      <plugin>
262        <groupId>org.apache.maven.plugins</groupId>
263        <artifactId>maven-project-info-reports-plugin</artifactId>
264        <version>3.0.0</version>
265      </plugin>
266    </plugins>
267
268  </build>
269
270  <profiles>
271    <profile>
272      <id>skipTests</id>
273      <properties>
274        <maven.test.skip>true</maven.test.skip>
275      </properties>
276    </profile>
277
278    <profile>
279      <id>javadocjar</id>
280      <build>
281        <plugins>
282          <plugin>
283            <groupId>org.apache.maven.plugins</groupId>
284            <artifactId>maven-javadoc-plugin</artifactId>
285            <version>${maven-javadoc-plugin.version}</version>
286            <executions>
287              <execution>
288                <id>attach-javadocs</id>
289                <goals>
290                  <goal>jar</goal>
291                </goals>
292              </execution>
293            </executions>
294            <configuration>
295              <additionalparam>-Xdoclint:none</additionalparam>
296              <failOnError>false</failOnError>
297              <sourceFileExcludes>
298                <sourceFileExclude>**/module-info.java</sourceFileExclude>
299              </sourceFileExcludes>
300            </configuration>
301          </plugin>
302        </plugins>
303      </build>
304    </profile>
305
306    <profile>
307      <id>license</id>
308      <build>
309        <plugins>
310          <plugin>
311            <groupId>com.google.code.maven-license-plugin</groupId>
312            <artifactId>maven-license-plugin</artifactId>
313            <configuration>
314              <header>src/main/licenseHeader.txt</header>
315              <quiet>false</quiet>
316              <failIfMissing>true</failIfMissing>
317              <aggregate>true</aggregate>
318              <includes>
319                <include>src/**/*.java</include>
320              </includes>
321              <useDefaultExcludes>true</useDefaultExcludes>
322              <useDefaultMapping>true</useDefaultMapping>
323              <properties>
324                <year>1999</year>
325              </properties>
326              <headerDefinitions>
327                <headerDefinition>src/main/javadocHeaders.xml</headerDefinition>
328              </headerDefinitions>
329            </configuration>
330          </plugin>
331        </plugins>
332      </build>
333
334      <pluginRepositories>
335      </pluginRepositories>
336    </profile>
337
338
339    <profile>
340      <id>generate-osgi-service-loader-mediator-entries</id>
341      <activation>
342        <file>
343          <exists>src/main/resources/META-INF/services/org.slf4j.spi.SLF4JServiceProvider</exists>
344        </file>
345      </activation>
346      <build>
347        <!-- Add the OSGi Service Loader Mediator Specification Manifest entries for each module that has a SLF4JServiceProvider Service-Loader file.-->
348        <plugins>
349          <plugin>
350            <groupId>org.apache.felix</groupId>
351            <artifactId>maven-bundle-plugin</artifactId>
352            <configuration>
353              <instructions>
354                <Provide-Capability><![CDATA[
355                  osgi.service;objectClass:List<String>="org.slf4j.spi.SLF4JServiceProvider";type=${slf4j.provider.type};effective:=active,
356                  osgi.serviceloader;osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider";register:="${slf4j.provider.implementation}";type=${slf4j.provider.type}
357                ]]></Provide-Capability>
358                <Require-Capability><![CDATA[
359                  osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.registrar)(version>=1.0.0)(!(version>=2.0.0)))"
360                ]]></Require-Capability>
361              </instructions>
362            </configuration>
363          </plugin>
364        </plugins>
365      </build>
366    </profile>
367
368    <!--
369    <profile>
370      <id>travis</id>
371      <activation>
372        <property>
373          <name>env.TRAVIS</name>
374          <value>true</value>
375        </property>
376      </activation>
377      <build>
378        <plugins>
379          <plugin>
380            <groupId>org.apache.maven.plugins</groupId>
381            <artifactId>maven-toolchains-plugin</artifactId>
382            <version>1.1</version>
383            <executions>
384              <execution>
385                <id>toolchain</id>
386                <phase>none</phase>
387              </execution>
388            </executions>
389          </plugin>
390        </plugins>
391      </build>
392    </profile>
393    -->
394  </profiles>
395
396
397</project>
398