/lib/apache-log4j/pom.xml

https://bitbucket.org/arkban/somersault · XML · 545 lines · 485 code · 3 blank · 57 comment · 0 complexity · e15d65d6c97d87704176c1e9338a2adb MD5 · raw file

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