logback-classic-1.4.5.pom 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>ch.qos.logback</groupId>
  8. <artifactId>logback-parent</artifactId>
  9. <version>1.4.5</version>
  10. </parent>
  11. <artifactId>logback-classic</artifactId>
  12. <packaging>jar</packaging>
  13. <name>Logback Classic Module</name>
  14. <description>logback-classic module</description>
  15. <properties>
  16. <module-name>ch.qos.logback.classic</module-name>
  17. </properties>
  18. <dependencies>
  19. <dependency>
  20. <groupId>ch.qos.logback</groupId>
  21. <artifactId>logback-core</artifactId>
  22. </dependency>
  23. <dependency>
  24. <groupId>org.slf4j</groupId>
  25. <artifactId>slf4j-api</artifactId>
  26. </dependency>
  27. <!-- <dependency>
  28. <groupId>org.slf4j</groupId>
  29. <artifactId>slf4j-ext</artifactId>
  30. <version>${slf4j.version}</version>
  31. <scope>test</scope>
  32. </dependency> -->
  33. <!-- <dependency>
  34. <groupId>ch.qos.cal10n.plugins</groupId>
  35. <artifactId>maven-cal10n-plugin</artifactId>
  36. <version>${cal10n.version}</version>
  37. <scope>test</scope>
  38. </dependency> -->
  39. <dependency>
  40. <groupId>org.slf4j</groupId>
  41. <artifactId>slf4j-api</artifactId>
  42. <type>test-jar</type>
  43. <version>${slf4j.version}</version>
  44. <scope>test</scope>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.slf4j</groupId>
  48. <artifactId>log4j-over-slf4j</artifactId>
  49. <version>${slf4j.version}</version>
  50. <scope>test</scope>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.slf4j</groupId>
  54. <artifactId>jul-to-slf4j</artifactId>
  55. <version>${slf4j.version}</version>
  56. <scope>test</scope>
  57. </dependency>
  58. <!-- Must be after log4j-over-slf4j:
  59. * we want to use the classes from log4j-over-slf4j (so it must come first);
  60. * we want to use log4j.dtd from log4j. -->
  61. <dependency>
  62. <groupId>ch.qos.reload4j</groupId>
  63. <artifactId>reload4j</artifactId>
  64. <version>1.2.18.4</version>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.dom4j</groupId>
  69. <artifactId>dom4j</artifactId>
  70. <scope>test</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>jakarta.mail</groupId>
  74. <artifactId>jakarta.mail-api</artifactId>
  75. <scope>compile</scope>
  76. <optional>true</optional>
  77. </dependency>
  78. <dependency>
  79. <groupId>jakarta.activation</groupId>
  80. <artifactId>jakarta.activation-api</artifactId>
  81. <scope>compile</scope>
  82. <optional>true</optional>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.eclipse.angus</groupId>
  86. <artifactId>angus-mail</artifactId>
  87. <scope>test</scope>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.codehaus.janino</groupId>
  91. <artifactId>janino</artifactId>
  92. <optional>true</optional>
  93. </dependency>
  94. <dependency>
  95. <groupId>ch.qos.logback</groupId>
  96. <artifactId>logback-core</artifactId>
  97. <type>test-jar</type>
  98. <scope>test</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>jakarta.servlet</groupId>
  102. <artifactId>jakarta.servlet-api</artifactId>
  103. <scope>provided</scope>
  104. <optional>true</optional>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.felix</groupId>
  108. <artifactId>org.apache.felix.main</artifactId>
  109. <version>5.6.10</version>
  110. <scope>test</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.mockito</groupId>
  114. <artifactId>mockito-core</artifactId>
  115. <scope>test</scope>
  116. </dependency>
  117. </dependencies>
  118. <build>
  119. <resources>
  120. <resource>
  121. <directory>src/main/resources</directory>
  122. </resource>
  123. </resources>
  124. <plugins>
  125. <plugin>
  126. <groupId>org.apache.maven.plugins</groupId>
  127. <artifactId>maven-jar-plugin</artifactId>
  128. <configuration>
  129. <archive>
  130. <manifestEntries>
  131. </manifestEntries>
  132. <manifestFile>
  133. ${project.build.outputDirectory}/META-INF/MANIFEST.MF
  134. </manifestFile>
  135. </archive>
  136. </configuration>
  137. <executions>
  138. <execution>
  139. <id>bundle-test-jar</id>
  140. <phase>package</phase>
  141. <goals>
  142. <goal>test-jar</goal>
  143. </goals>
  144. </execution>
  145. </executions>
  146. </plugin>
  147. <plugin>
  148. <groupId>org.apache.maven.plugins</groupId>
  149. <artifactId>maven-antrun-plugin</artifactId>
  150. <version>${maven-antrun-plugin.version}</version>
  151. <dependencies>
  152. <dependency>
  153. <groupId>org.apache.ant</groupId>
  154. <artifactId>ant-junit</artifactId>
  155. <version>${ant.version}</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.apache.ant</groupId>
  159. <artifactId>ant-junitlauncher</artifactId>
  160. <version>${ant.version}</version>
  161. </dependency>
  162. <dependency>
  163. <groupId>org.junit.jupiter</groupId>
  164. <artifactId>junit-jupiter-api</artifactId>
  165. <version>${junit-jupiter-api.version}</version>
  166. </dependency>
  167. <dependency>
  168. <groupId>org.junit.vintage</groupId>
  169. <artifactId>junit-vintage-engine</artifactId>
  170. <version>${junit-vintage-engine.version}</version>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.hamcrest</groupId>
  174. <artifactId>hamcrest-core</artifactId>
  175. <version>${hamcrest.version}</version>
  176. </dependency>
  177. </dependencies>
  178. <executions>
  179. <!-- Disabled osgi tests given current OSGi/ServiceLoader integration failure -->
  180. <!--
  181. <execution>
  182. <id>ant-osgi-test</id>
  183. <phase>package</phase>
  184. <configuration>
  185. <target>
  186. <property name="currentVersion" value="${project.version}"/>
  187. <property name="slf4j.version" value="${slf4j.version}"/>
  188. <property name="basedir" value="${basedir}"/>
  189. <ant antfile="${basedir}/osgi-build.xml"/>
  190. </target>
  191. </configuration>
  192. <goals>
  193. <goal>run</goal>
  194. </goals>
  195. </execution>
  196. -->
  197. <execution>
  198. <id>ant-integration-test</id>
  199. <phase>package</phase>
  200. <configuration>
  201. <target>
  202. <property name="slf4j.version" value="${slf4j.version}"/>
  203. <ant antfile="${basedir}/integration.xml"/>
  204. </target>
  205. </configuration>
  206. <goals>
  207. <goal>run</goal>
  208. </goals>
  209. </execution>
  210. </executions>
  211. </plugin>
  212. <!--
  213. <plugin>
  214. <groupId>org.apache.maven.plugins</groupId>
  215. <artifactId>maven-compiler-plugin</artifactId>
  216. <configuration combine.self="append">
  217. <compilerArgs>
  218. <arg>add-reads</arg>
  219. <arg>ch.qos.logback.core=ch.qos.logback.core=org.codehaus.janino.commons.compiler,org.codehaus.janino.janino</arg>
  220. </compilerArgs>
  221. </configuration>
  222. </plugin>
  223. -->
  224. <plugin>
  225. <groupId>org.apache.maven.plugins</groupId>
  226. <artifactId>maven-surefire-plugin</artifactId>
  227. <executions>
  228. <execution>
  229. <id>default-test</id>
  230. <configuration>
  231. <!-- x-show-module-resolution -->
  232. <argLine>
  233. --add-modules jakarta.mail
  234. --add-modules jakarta.servlet
  235. --add-opens ch.qos.logback.core/ch.qos.logback.core.testUtil=java.naming
  236. --add-opens ch.qos.logback.classic/ch.qos.logback.classic.testUtil=ch.qos.logback.core
  237. </argLine>
  238. <parallel>classes</parallel>
  239. <threadCount>8</threadCount>
  240. <!--<useUnlimitedThreads>false</useUnlimitedThreads>-->
  241. <forkCount>1C</forkCount>
  242. <reuseForks>true</reuseForks>
  243. <reportFormat>plain</reportFormat>
  244. <trimStackTrace>false</trimStackTrace>
  245. <!-- See https://issues.apache.org/jira/browse/SUREFIRE-1265 -->
  246. <!--<childDelegation>true</childDelegation>-->
  247. <useModulePath>true</useModulePath>
  248. <excludes>
  249. <exclude>**/test_osgi/BundleTest.java</exclude>
  250. <exclude>org.slf4j.implTest.MultithreadedInitializationTest.java</exclude>
  251. <exclude>org.slf4j.implTest.InitializationOutputTest.java</exclude>
  252. <exclude>ch.qos.logback.classic.util.ContextInitializerTest.java</exclude>
  253. <exclude>ch.qos.logback.classic.spi.InvocationTest.java</exclude>
  254. </excludes>
  255. </configuration>
  256. </execution>
  257. <execution>
  258. <id>singleJVM</id>
  259. <goals>
  260. <goal>test</goal>
  261. </goals>
  262. <configuration>
  263. <forkCount>4</forkCount>
  264. <reuseForks>false</reuseForks>
  265. <includes>
  266. <include>org.slf4j.implTest.MultithreadedInitializationTest.java</include>
  267. <include>org.slf4j.implTest.InitializationOutputTest.java</include>
  268. <include>ch.qos.logback.classic.util.ContextInitializerTest.java</include>
  269. <include>ch.qos.logback.classic.spi.InvocationTest.java</include>
  270. </includes>
  271. </configuration>
  272. </execution>
  273. </executions>
  274. </plugin>
  275. <plugin>
  276. <groupId>org.apache.felix</groupId>
  277. <artifactId>maven-bundle-plugin</artifactId>
  278. <extensions>true</extensions>
  279. <executions>
  280. <execution>
  281. <id>bundle-manifest</id>
  282. <phase>process-classes</phase>
  283. <goals>
  284. <goal>manifest</goal>
  285. </goals>
  286. </execution>
  287. </executions>
  288. <configuration>
  289. <instructions>
  290. <_noee>true</_noee> <!-- Jigsaw -->
  291. <_failok>true</_failok> <!-- Jigsaw -->
  292. <Export-Package>ch.qos.logback.classic*, org.slf4j.impl;version=${slf4j.version}</Export-Package>
  293. <!-- LB-CLASSIC It is necessary to specify the rolling
  294. file packages as classes are created via IOC (xml
  295. config files). They won't be found by Bnd's analysis
  296. of java code. -->
  297. <Import-Package>
  298. sun.reflect;resolution:=optional,
  299. jakarta.*;resolution:=optional,
  300. org.xml.*;resolution:=optional,
  301. org.slf4j,
  302. org.slf4j.spi,
  303. org.slf4j.event,
  304. ch.qos.logback.core.rolling,
  305. ch.qos.logback.core.rolling.helper,
  306. ch.qos.logback.core.util,
  307. ch.qos.logback.core.read,
  308. *
  309. </Import-Package>
  310. <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
  311. <!-- Needed to integrate ServiceLoader mechanism with OSGi -->
  312. <Require-Capability>osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"</Require-Capability>
  313. <Provide-Capability>osgi.serviceloader;osgi.serviceloader=org.slf4j.spi.SLF4JServiceProvider</Provide-Capability>
  314. </instructions>
  315. </configuration>
  316. </plugin>
  317. </plugins>
  318. <pluginManagement>
  319. <plugins>
  320. </plugins>
  321. </pluginManagement>
  322. </build>
  323. </project>