/lib/apache-log4j/pom.xml
XML | 545 lines | 485 code | 3 blank | 57 comment | 0 complexity | e15d65d6c97d87704176c1e9338a2adb MD5 | raw file
Possible License(s): LGPL-2.1, BSD-3-Clause, Apache-2.0
1<!--
2 Licensed to the Apache Software Foundation (ASF) under one or more
3 contributor license agreements. See the NOTICE file distributed with
4 this work for additional information regarding copyright ownership.
5 The ASF licenses this file to You under the Apache License, Version 2.0
6 (the "License"); you may not use this file except in compliance with
7 the License. You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17-->
18<!--
19Usage notes:
20
21To build NTEventLogAppender.dll using MinGW, place mingw\bin on path for Windows or install mingw
22package on other platforms. Build will execute gcc and windres on Windows and
23i586-mingw32msvc-gcc and i586-mingw32msvc-windres on other platforms.
24
25To build NTEventLogAppender.dll using Microsoft tools, run the appropriate vcvars for the
26target platform and specify -Dntdll_target=msbuild on the mvn command line.
27
28-->
29<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
30 <modelVersion>4.0.0</modelVersion>
31 <groupId>log4j</groupId>
32 <artifactId>log4j</artifactId>
33 <packaging>bundle</packaging>
34 <name>Apache Log4j</name>
35 <version>1.2.16</version>
36 <description>Apache Log4j 1.2</description>
37 <url>http://logging.apache.org/log4j/1.2/</url>
38 <issueManagement>
39 <system>Bugzilla</system>
40 <url>http://issues.apache.org/bugzilla/</url>
41 </issueManagement>
42 <ciManagement>
43 <system>Gump</system>
44 <url>http://vmgump.apache.org/gump/public/logging-log4j-12/logging-log4j-12/index.html</url>
45 </ciManagement>
46 <inceptionYear>1999</inceptionYear>
47 <mailingLists>
48 <mailingList>
49 <name>log4j-user</name>
50 <subscribe>log4j-user-subscribe@logging.apache.org</subscribe>
51 <unsubscribe>log4j-user-unsubscribe@logging.apache.org</unsubscribe>
52 <post>log4j-user@logging.apache.org</post>
53 <archive>http://mail-archives.apache.org/mod_mbox/logging-log4j-user/</archive>
54 <otherArchives>
55 <otherArchive>http://marc.info/?l=log4j-user</otherArchive>
56 <otherArchive>http://dir.gmane.org/gmane.comp.jakarta.log4j.user</otherArchive>
57 </otherArchives>
58 </mailingList>
59 <mailingList>
60 <name>log4j-dev</name>
61 <subscribe>log4j-dev-subscribe@logging.apache.org</subscribe>
62 <unsubscribe>log4j-dev-unsubscribe@logging.apache.org</unsubscribe>
63 <post>log4j-dev@logging.apache.org</post>
64 <archive>http://mail-archives.apache.org/mod_mbox/logging-log4j-dev/</archive>
65 <otherArchives>
66 <otherArchive>http://marc.info/?l=log4j-dev</otherArchive>
67 <otherArchive>http://dir.gmane.org/gmane.comp.jakarta.log4j.devel</otherArchive>
68 </otherArchives>
69 </mailingList>
70 </mailingLists>
71 <licenses>
72 <license>
73 <name>The Apache Software License, Version 2.0</name>
74 <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
75 <distribution>repo</distribution>
76 </license>
77 </licenses>
78 <scm>
79 <connection>scm:svn:http://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_16</connection>
80 <developerConnection>scm:svn:https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_16</developerConnection>
81 <url>http://svn.apache.org/viewvc/logging/log4j/tags/v1_2_16</url>
82 </scm>
83 <organization>
84 <name>Apache Software Foundation</name>
85 <url>http://www.apache.org</url>
86 </organization>
87 <build>
88 <plugins>
89 <plugin>
90 <groupId>org.apache.maven.plugins</groupId>
91 <artifactId>maven-resources-plugin</artifactId>
92 <configuration>
93 <encoding>UTF-8</encoding>
94 </configuration>
95 </plugin>
96 <plugin>
97 <artifactId>maven-surefire-plugin</artifactId>
98 <version>2.5</version>
99 <configuration>
100 <workingDirectory>tests</workingDirectory>
101 <reportFormat>plain</reportFormat>
102 <forkMode>pertest</forkMode>
103 <skip>true</skip>
104 <includes>
105 <include>org/apache/log4j/LevelTest.java</include>
106 <include>org/apache/log4j/PriorityTest.java</include>
107 <include>org/apache/log4j/CategoryTest.java</include>
108 <include>org/apache/log4j/FileAppenderTest.java</include>
109 <include>org/apache/log4j/LogManagerTest.java</include>
110 <include>org/apache/log4j/helpers.LogLogTest.java</include>
111 <include>org/apache/log4j/LayoutTest.java</include>
112 <include>org/apache/log4j/helpers.DateLayoutTest.java</include>
113 <include>org/apache/log4j/TTCCLayoutTest.java</include>
114 <include>org/apache/log4j/xml.XMLLayoutTest.java</include>
115 <include>org/apache/log4j/HTMLLayoutTest.java</include>
116 <include>org/apache/log4j/PatternLayoutTest.java</include>
117 <include>org/apache/log4j/spi.LoggingEventTest.java</include>
118 <include>org/apache/log4j/spi.ThrowableInformationTest.java</include>
119 <include>org/apache/log4j/spi.LocationInfoTest.java</include>
120 <include>org/apache/log4j/PropertyConfiguratorTest.java</include>
121 <include>org/apache/log4j/MinimumTestCase.java</include>
122 <include>org/apache/log4j/LoggerTestCase.java</include>
123 <include>org/apache/log4j/PatternLayoutTestCase.java</include>
124 <include>org/apache/log4j/HierarchyThresholdTestCase.java</include>
125 <include>org/apache/log4j/xml/DOMTestCase.java</include>
126 <include>org/apache/log4j/xml/CustomLevelTestCase.java</include>
127 <include>org/apache/log4j/customLogger/XLoggerTestCase.java</include>
128 <!-- DefaultInit -->
129 <!-- SocketServer -->
130 <include>org/apache/log4j/xml/XMLLayoutTestCase.java</include>
131 <include>org/apache/log4j/xml/AsyncAppenderTestCase.java</include>
132 <include>org/apache/log4j/varia/LevelMatchFilterTestCase.java</include>
133 <!-- ErrorHandlerTestCase is not run in Ant build either
134 <include>org/apache/log4j/varia/ErrorHandlerTestCase.java</include>
135 -->
136 <!-- include>org/apache/log4j/helpers/OptionConverterTestCase.java</include -->
137 <include>org/apache/log4j/helpers/BoundedFIFOTestCase.java</include>
138 <include>org/apache/log4j/helpers/CyclicBufferTestCase.java</include>
139 <include>org/apache/log4j/helpers/PatternParserTestCase.java</include>
140 <include>org/apache/log4j/or/ORTestCase.java</include>
141 <include>org/apache/log4j/DRFATestCase.java</include>
142 <include>org/apache/log4j/RFATestCase.java</include>
143 <include>org/apache/log4j/varia/ERFATestCase.java</include>
144 <include>org/apache/log4j/net/SyslogAppenderTest</include>
145 <include>org/apache/log4j/nt/NTEventLogAppenderTest</include>
146 <include>org/apache/log4j/net/SocketAppenderTest</include>
147 </includes>
148 </configuration>
149 </plugin>
150 <plugin>
151 <artifactId>maven-compiler-plugin</artifactId>
152 <version>2.1</version>
153 <configuration>
154 <source>1.3</source>
155 <target>1.1</target>
156 <encoding>UTF-8</encoding>
157 </configuration>
158 </plugin>
159 <plugin>
160 <artifactId>maven-jar-plugin</artifactId>
161 <version>2.3</version>
162 <configuration>
163 <archive>
164 <manifestSections>
165 <manifestSection>
166 <name>org.apache.log4j</name>
167 <manifestEntries>
168 <Implementation-Title>log4j</Implementation-Title>
169 <Implementation-Version>${project.version}</Implementation-Version>
170 <Implementation-Vendor>"Apache Software Foundation"</Implementation-Vendor>
171 </manifestEntries>
172 </manifestSection>
173 </manifestSections>
174 </archive>
175 </configuration>
176 </plugin>
177 <plugin>
178 <artifactId>maven-antrun-plugin</artifactId>
179 <version>1.2</version>
180 <executions>
181 <!-- generate NTEventLogAppender.dll -->
182 <execution>
183 <phase>process-classes</phase>
184 <id>ntdll</id>
185 <configuration>
186 <tasks>
187 <ant antfile="src/ntdll/build.xml" target="${ntdll_target}">
188 <property name="target.dir" location="target" />
189 <property name="classes.dir" location="target/classes" />
190 <property name="src.dir" location="src/ntdll" />
191 <property name="jni.include.dir" location="${java.home}/../include" />
192 </ant>
193 </tasks>
194 </configuration>
195 <goals>
196 <goal>run</goal>
197 </goals>
198 </execution>
199 <!-- create tests/output prior to test run -->
200 <execution>
201 <phase>test-compile</phase>
202 <id>mkdir_tests_output</id>
203 <configuration>
204 <tasks>
205 <mkdir dir="tests/output" />
206 </tasks>
207 </configuration>
208 <goals>
209 <goal>run</goal>
210 </goals>
211 </execution>
212 <execution>
213 <phase>clean</phase>
214 <id>rmdir_tests_output</id>
215 <configuration>
216 <tasks>
217 <delete dir="tests/output" />
218 <delete dir="tests/classes" />
219 </tasks>
220 </configuration>
221 <goals>
222 <goal>run</goal>
223 </goals>
224 </execution>
225 <execution>
226 <phase>test</phase>
227 <id>runAll</id>
228 <configuration>
229 <tasks>
230 <ant dir="tests" target="runAll">
231 <property name="m2_repo" location="${m2_repo}" />
232 <property name="log4j.jar" location="target/classes" />
233 <property name="project.lib.home" location="target" />
234 </ant>
235 </tasks>
236 </configuration>
237 <goals>
238 <goal>run</goal>
239 </goals>
240 </execution>
241 <!-- release builds will put SVN tags into the SCM page, this changes it back to trunk -->
242 <execution>
243 <phase>site</phase>
244 <id>untag-site</id>
245 <configuration>
246 <tasks>
247 <taskdef name="replaceregexp" classname="org.apache.tools.ant.taskdefs.optional.ReplaceRegExp" />
248 <replaceregexp file="target/site/source-repository.html" match="/tags/[^ "'<]*" replace="/trunk" flags="g" />
249 <replaceregexp match="-- Generated by (.*) on .*--" replace="-- Generated by \1 --" flags="g">
250 <fileset dir="target/site/apidocs" includes="**/*.html" />
251 </replaceregexp>
252 </tasks>
253 </configuration>
254 <goals>
255 <goal>run</goal>
256 </goals>
257 </execution>
258 <execution>
259 <phase>post-site</phase>
260 <id>post-site</id>
261 <configuration>
262 <tasks>
263 <ant target="post-site" />
264 </tasks>
265 </configuration>
266 <goals>
267 <goal>run</goal>
268 </goals>
269 </execution>
270 <execution>
271 <phase>site-deploy</phase>
272 <id>site-deploy</id>
273 <configuration>
274 <tasks>
275 <ant target="site-deploy" />
276 </tasks>
277 </configuration>
278 <goals>
279 <goal>run</goal>
280 </goals>
281 </execution>
282 </executions>
283 <dependencies>
284 <dependency>
285 <groupId>ant</groupId>
286 <artifactId>ant-nodeps</artifactId>
287 <version>1.6.5</version>
288 </dependency>
289 <dependency>
290 <groupId>ant-contrib</groupId>
291 <artifactId>ant-contrib</artifactId>
292 <version>1.0b2</version>
293 </dependency>
294 <dependency>
295 <groupId>ant</groupId>
296 <artifactId>ant-junit</artifactId>
297 <version>1.6.5</version>
298 </dependency>
299 <dependency>
300 <groupId>junit</groupId>
301 <artifactId>junit</artifactId>
302 <version>3.8.1</version>
303 <scope>test</scope>
304 </dependency>
305 <dependency>
306 <groupId>sun.jdk</groupId>
307 <artifactId>tools</artifactId>
308 <version>1.4.2</version>
309 <scope>system</scope>
310 <systemPath>${tools.jar}</systemPath>
311 </dependency>
312
313
314 </dependencies>
315 </plugin>
316 <plugin>
317 <artifactId>maven-assembly-plugin</artifactId>
318 <version>2.2-beta-5</version>
319 <configuration>
320 <descriptors>
321 <descriptor>src/assembly/bin.xml</descriptor>
322 </descriptors>
323 <appendAssemblyId>false</appendAssemblyId>
324 </configuration>
325 <executions>
326 <execution>
327 <goals>
328 <goal>assembly</goal>
329 </goals>
330 </execution>
331 </executions>
332 </plugin>
333 <plugin>
334 <artifactId>maven-javadoc-plugin</artifactId>
335 <version>2.6.1</version>
336 <configuration>
337 <docfilessubdirs>true</docfilessubdirs>
338 <encoding>UTF-8</encoding>
339 </configuration>
340 <executions>
341 <execution>
342 <goals>
343 <goal>jar</goal>
344 <goal>javadoc</goal>
345 </goals>
346 </execution>
347 <execution>
348 <id>site</id>
349 <phase>pre-site</phase>
350 <goals>
351 <goal>javadoc</goal>
352 </goals>
353 </execution>
354 </executions>
355 </plugin>
356 <plugin>
357 <artifactId>maven-release-plugin</artifactId>
358 <version>2.0-beta-9</version>
359 <!--
360 Bug MRELEASE-273 has been throwing NPE during release:perform,
361 typically after deploy so this places it last.
362 -->
363 <configuration>
364 <goals>package site-deploy assembly:attached deploy</goals>
365 </configuration>
366 </plugin>
367 <plugin>
368 <artifactId>maven-source-plugin</artifactId>
369 <version>2.1.1</version>
370 <executions>
371 <execution>
372 <goals>
373 <goal>jar</goal>
374 </goals>
375 </execution>
376 </executions>
377 </plugin>
378 <!--
379 clirr:check will fail with NullPointerException
380 due to missing javax.jms.MessageListener,
381 however it will trigger download of supporting components
382 which can allow "ant clirr" to succeed.
383 Could possibly run on a JavaEE platform.
384 -->
385 <plugin>
386 <groupId>org.codehaus.mojo</groupId>
387 <artifactId>clirr-maven-plugin</artifactId>
388 <version>2.2.2</version>
389 <configuration>
390 <comparisonVersion>1.2.15</comparisonVersion>
391 </configuration>
392 </plugin>
393 <plugin>
394 <groupId>org.codehaus.mojo</groupId>
395 <artifactId>rat-maven-plugin</artifactId>
396 <version>1.0-alpha-3</version>
397 <configuration>
398 <excludes>
399 <exclude>tests/witness/**</exclude>
400 </excludes>
401 </configuration>
402 </plugin>
403 <plugin>
404 <groupId>org.apache.felix</groupId>
405 <artifactId>maven-bundle-plugin</artifactId>
406 <version>2.0.1</version>
407 <extensions>true</extensions>
408 <configuration>
409 <instructions>
410 <!-- omit chainsaw and LF5 -->
411 <Export-Package>!org.apache.log4j.lf5.*,!org.apache.log4j.chainsaw.*,org.apache.log4j.*</Export-Package>
412 <Import-Package>com.sun.jdmk.comm;resolution:=optional,
413 javax.jms;resolution:=optional,
414 javax.mail.*;resolution:=optional,
415 javax.management;resolution:=optional,
416 javax.naming;resolution:=optional,
417 com.sun.jdmk.comm;resolution:=optional,
418 com.ibm.uvm.tools;resolution:=optional,
419 javax.swing.*;resolution:=optional,
420 *</Import-Package>
421 <Bundle-DocURL>http://logging.apache.org/log4j/1.2</Bundle-DocURL>
422 </instructions>
423 </configuration>
424 </plugin>
425 </plugins>
426 <testSourceDirectory>tests/src/java</testSourceDirectory>
427 <testResources>
428 <testResource>
429 <directory>tests/resources</directory>
430 </testResource>
431 </testResources>
432 </build>
433 <profiles>
434 <profile>
435 <id>mac</id>
436 <activation>
437 <os>
438 <family>mac</family>
439 </os>
440 </activation>
441 <properties>
442 <tools.jar>${java.home}/../Classes/classes.jar</tools.jar>
443 <m2_repo>${user.home}/.m2/repository</m2_repo>
444 <ntdll_target>build</ntdll_target>
445 </properties>
446 </profile>
447 <profile>
448 <id>default</id>
449 <activation>
450 <activeByDefault>true</activeByDefault>
451 </activation>
452 <properties>
453 <tools.jar>${java.home}/../lib/tools.jar</tools.jar>
454 <m2_repo>${user.home}/.m2/repository</m2_repo>
455 <ntdll_target>build</ntdll_target>
456 </properties>
457 </profile>
458 </profiles>
459 <repositories>
460 </repositories>
461 <dependencies>
462 <dependency>
463 <groupId>javax.mail</groupId>
464 <artifactId>mail</artifactId>
465 <version>1.4.1</version>
466 <optional>true</optional>
467 </dependency>
468 <!-- the following dependency is not needed on JDK 1.5 and higher
469 <dependency>
470 <groupId>com.sun.jmx</groupId>
471 <artifactId>jmxri</artifactId>
472 <version>1.2.1</version>
473 <optional>true</optional>
474 </dependency>
475 -->
476 <dependency>
477 <groupId>oro</groupId>
478 <artifactId>oro</artifactId>
479 <version>2.0.8</version>
480 <scope>test</scope>
481 </dependency>
482 <dependency>
483 <groupId>junit</groupId>
484 <artifactId>junit</artifactId>
485 <version>3.8.2</version>
486 <scope>test</scope>
487 </dependency>
488 <dependency>
489 <groupId>org.apache.geronimo.specs</groupId>
490 <artifactId>geronimo-jms_1.1_spec</artifactId>
491 <version>1.0</version>
492 <optional>true</optional>
493 </dependency>
494 </dependencies>
495 <reporting>
496 <excludeDefaults>true</excludeDefaults>
497 <plugins>
498 <plugin>
499 <artifactId>maven-project-info-reports-plugin</artifactId>
500 <version>2.1.2</version>
501 <reportSets>
502 <reportSet>
503 <reports>
504 <report>scm</report>
505 <report>dependencies</report>
506 <report>cim</report>
507 <report>issue-tracking</report>
508 <report>mailing-list</report>
509 <report>license</report>
510 </reports>
511 </reportSet>
512 </reportSets>
513 </plugin>
514 <plugin>
515 <artifactId>maven-jxr-plugin</artifactId>
516 <version>2.1</version>
517 </plugin>
518 <plugin>
519 <artifactId>maven-changes-plugin</artifactId>
520 <version>2.3</version>
521 <reportSets>
522 <reportSet>
523 <reports>
524 <report>changes-report</report>
525 </reports>
526 </reportSet>
527 </reportSets>
528 <configuration>
529 <issueLinkTemplate>%URL%/show_bug.cgi?id=%ISSUE%</issueLinkTemplate>
530 </configuration>
531 </plugin>
532 </plugins>
533 </reporting>
534 <distributionManagement>
535 <repository>
536 <id>logging.repo</id>
537 <url>scp://people.apache.org/www/people.apache.org/builds/logging/repo/</url>
538 </repository>
539 <site>
540 <id>logging.site</id>
541 <url>scp://localhost/${user.dir}/target/site-deploy</url>
542 </site>
543 </distributionManagement>
544</project>
545