logback-classic-1.4.11.pom 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  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.11</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. <dependency>
  118. <groupId>com.fasterxml.jackson.core</groupId>
  119. <artifactId>jackson-databind</artifactId>
  120. <version>${jackson.version}</version>
  121. <scope>test</scope>
  122. </dependency>
  123. </dependencies>
  124. <build>
  125. <resources>
  126. <resource>
  127. <directory>src/main/resources</directory>
  128. </resource>
  129. </resources>
  130. <plugins>
  131. <plugin>
  132. <groupId>org.apache.maven.plugins</groupId>
  133. <artifactId>maven-jar-plugin</artifactId>
  134. <configuration>
  135. <archive>
  136. <manifestEntries>
  137. </manifestEntries>
  138. <manifestFile>
  139. ${project.build.outputDirectory}/META-INF/MANIFEST.MF
  140. </manifestFile>
  141. </archive>
  142. </configuration>
  143. <executions>
  144. <execution>
  145. <id>bundle-test-jar</id>
  146. <phase>package</phase>
  147. <goals>
  148. <goal>test-jar</goal>
  149. </goals>
  150. </execution>
  151. </executions>
  152. </plugin>
  153. <plugin>
  154. <groupId>org.apache.maven.plugins</groupId>
  155. <artifactId>maven-antrun-plugin</artifactId>
  156. <version>${maven-antrun-plugin.version}</version>
  157. <dependencies>
  158. <dependency>
  159. <groupId>org.apache.ant</groupId>
  160. <artifactId>ant-junit</artifactId>
  161. <version>${ant.version}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.apache.ant</groupId>
  165. <artifactId>ant-junitlauncher</artifactId>
  166. <version>${ant.version}</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.junit.jupiter</groupId>
  170. <artifactId>junit-jupiter-api</artifactId>
  171. <version>${junit-jupiter-api.version}</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.junit.vintage</groupId>
  175. <artifactId>junit-vintage-engine</artifactId>
  176. <version>${junit-vintage-engine.version}</version>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.hamcrest</groupId>
  180. <artifactId>hamcrest-core</artifactId>
  181. <version>${hamcrest.version}</version>
  182. </dependency>
  183. </dependencies>
  184. <executions>
  185. <!-- Disabled osgi tests given current OSGi/ServiceLoader integration failure -->
  186. <!--
  187. <execution>
  188. <id>ant-osgi-test</id>
  189. <phase>package</phase>
  190. <configuration>
  191. <target>
  192. <property name="currentVersion" value="${project.version}"/>
  193. <property name="slf4j.version" value="${slf4j.version}"/>
  194. <property name="basedir" value="${basedir}"/>
  195. <ant antfile="${basedir}/osgi-build.xml"/>
  196. </target>
  197. </configuration>
  198. <goals>
  199. <goal>run</goal>
  200. </goals>
  201. </execution>
  202. -->
  203. <execution>
  204. <id>ant-integration-test</id>
  205. <phase>package</phase>
  206. <configuration>
  207. <target>
  208. <property name="slf4j.version" value="${slf4j.version}"/>
  209. <ant antfile="${basedir}/integration.xml"/>
  210. </target>
  211. </configuration>
  212. <goals>
  213. <goal>run</goal>
  214. </goals>
  215. </execution>
  216. </executions>
  217. </plugin>
  218. <!--
  219. <plugin>
  220. <groupId>org.apache.maven.plugins</groupId>
  221. <artifactId>maven-compiler-plugin</artifactId>
  222. <configuration combine.self="append">
  223. <compilerArgs>
  224. <arg>add-reads</arg>
  225. <arg>ch.qos.logback.core=ch.qos.logback.core=org.codehaus.janino.commons.compiler,org.codehaus.janino.janino</arg>
  226. </compilerArgs>
  227. </configuration>
  228. </plugin>
  229. -->
  230. <plugin>
  231. <groupId>org.apache.maven.plugins</groupId>
  232. <artifactId>maven-surefire-plugin</artifactId>
  233. <executions>
  234. <execution>
  235. <id>default-test</id>
  236. <configuration>
  237. <!-- x-show-module-resolution -->
  238. <argLine>
  239. --add-modules jakarta.mail
  240. --add-modules jakarta.servlet
  241. --add-opens ch.qos.logback.core/ch.qos.logback.core.testUtil=java.naming
  242. --add-opens ch.qos.logback.classic/ch.qos.logback.classic.testUtil=ch.qos.logback.core
  243. --add-opens ch.qos.logback.classic/ch.qos.logback.classic.jsonTest=ALL-UNNAMED
  244. </argLine>
  245. <parallel>classes</parallel>
  246. <threadCount>8</threadCount>
  247. <!--<useUnlimitedThreads>false</useUnlimitedThreads>-->
  248. <forkCount>1C</forkCount>
  249. <reuseForks>true</reuseForks>
  250. <reportFormat>plain</reportFormat>
  251. <trimStackTrace>false</trimStackTrace>
  252. <!-- See https://issues.apache.org/jira/browse/SUREFIRE-1265 -->
  253. <!--<childDelegation>true</childDelegation>-->
  254. <useModulePath>true</useModulePath>
  255. <excludes>
  256. <exclude>**/test_osgi/BundleTest.java</exclude>
  257. <exclude>org.slf4j.implTest.MultithreadedInitializationTest.java</exclude>
  258. <exclude>org.slf4j.implTest.InitializationOutputTest.java</exclude>
  259. <exclude>ch.qos.logback.classic.util.ContextInitializerTest.java</exclude>
  260. <exclude>ch.qos.logback.classic.spi.InvocationTest.java</exclude>
  261. </excludes>
  262. </configuration>
  263. </execution>
  264. <execution>
  265. <id>singleJVM</id>
  266. <goals>
  267. <goal>test</goal>
  268. </goals>
  269. <configuration>
  270. <forkCount>4</forkCount>
  271. <reuseForks>false</reuseForks>
  272. <includes>
  273. <include>org.slf4j.implTest.MultithreadedInitializationTest.java</include>
  274. <include>org.slf4j.implTest.InitializationOutputTest.java</include>
  275. <include>ch.qos.logback.classic.util.ContextInitializerTest.java</include>
  276. <include>ch.qos.logback.classic.spi.InvocationTest.java</include>
  277. </includes>
  278. </configuration>
  279. </execution>
  280. </executions>
  281. </plugin>
  282. <plugin>
  283. <groupId>org.apache.felix</groupId>
  284. <artifactId>maven-bundle-plugin</artifactId>
  285. <executions>
  286. <execution>
  287. <id>bundle-manifest</id>
  288. <phase>process-classes</phase>
  289. <goals>
  290. <goal>manifest</goal>
  291. </goals>
  292. </execution>
  293. </executions>
  294. <configuration>
  295. <instructions>
  296. <Export-Package>ch.qos.logback.classic*</Export-Package>
  297. <!-- LB-CLASSIC It is necessary to specify the rolling
  298. file packages as classes are created via IOC (xml
  299. config files). They won't be found by Bnd's analysis
  300. of java code. -->
  301. <Import-Package>
  302. ch.qos.logback.classic*;version="${range;[==,+);${version_cleanup;${project.version}}}",
  303. sun.reflect;resolution:=optional,
  304. jakarta.*;resolution:=optional,
  305. org.xml.*;resolution:=optional,
  306. ch.qos.logback.core.rolling,
  307. ch.qos.logback.core.rolling.helper,
  308. ch.qos.logback.core.read,
  309. *
  310. </Import-Package>
  311. <!-- Needed to integrate ServiceLoader mechanism with OSGi -->
  312. <Require-Capability><![CDATA[
  313. osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
  314. osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.registrar)(version>=1.0.0)(!(version>=2.0.0)))",
  315. osgi.serviceloader;filter:="(osgi.serviceloader=ch.qos.logback.classic.spi.Configurator)";osgi.serviceloader="ch.qos.logback.classic.spi.Configurator";resolution:=optional;cardinality:=multiple
  316. ]]></Require-Capability>
  317. <Provide-Capability><![CDATA[
  318. osgi.service;objectClass:List<String>="jakarta.servlet.ServletContainerInitializer";effective:=active,
  319. osgi.service;objectClass:List<String>="org.slf4j.spi.SLF4JServiceProvider";effective:=active,
  320. osgi.serviceloader;osgi.serviceloader="jakarta.servlet.ServletContainerInitializer";register:="ch.qos.logback.classic.servlet.LogbackServletContainerInitializer",
  321. osgi.serviceloader;osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider";register:="ch.qos.logback.classic.spi.LogbackServiceProvider"
  322. ]]></Provide-Capability>
  323. </instructions>
  324. </configuration>
  325. </plugin>
  326. </plugins>
  327. <pluginManagement>
  328. <plugins>
  329. </plugins>
  330. </pluginManagement>
  331. </build>
  332. </project>