logback-classic-1.5.18.pom 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  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.5.18</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. <execution>
  186. <id>ant-integration-test</id>
  187. <phase>package</phase>
  188. <configuration>
  189. <target>
  190. <property name="slf4j.version" value="${slf4j.version}"/>
  191. <ant antfile="${basedir}/integration.xml"/>
  192. </target>
  193. </configuration>
  194. <goals>
  195. <goal>run</goal>
  196. </goals>
  197. </execution>
  198. </executions>
  199. </plugin>
  200. <!--
  201. <plugin>
  202. <groupId>org.apache.maven.plugins</groupId>
  203. <artifactId>maven-compiler-plugin</artifactId>
  204. <configuration combine.self="append">
  205. <compilerArgs>
  206. <arg>add-reads</arg>
  207. <arg>ch.qos.logback.core=ch.qos.logback.core=org.codehaus.janino.commons.compiler,org.codehaus.janino.janino</arg>
  208. </compilerArgs>
  209. </configuration>
  210. </plugin>
  211. -->
  212. <plugin>
  213. <groupId>org.apache.maven.plugins</groupId>
  214. <artifactId>maven-surefire-plugin</artifactId>
  215. <executions>
  216. <execution>
  217. <id>default-test</id>
  218. <configuration>
  219. <!-- x-show-module-resolution -->
  220. <argLine>
  221. --add-modules jakarta.mail
  222. --add-modules jakarta.servlet
  223. --add-opens ch.qos.logback.core/ch.qos.logback.core.testUtil=java.naming
  224. --add-opens ch.qos.logback.classic/ch.qos.logback.classic.issue.github450=ch.qos.logback.core
  225. --add-opens ch.qos.logback.classic/ch.qos.logback.classic.testUtil=ch.qos.logback.core
  226. --add-opens ch.qos.logback.classic/ch.qos.logback.classic.jsonTest=ALL-UNNAMED
  227. </argLine>
  228. <parallel>classes</parallel>
  229. <threadCount>8</threadCount>
  230. <forkCount>1C</forkCount>
  231. <reuseForks>true</reuseForks>
  232. <reportFormat>plain</reportFormat>
  233. <trimStackTrace>false</trimStackTrace>
  234. <!-- See https://issues.apache.org/jira/browse/SUREFIRE-1265 -->
  235. <!--<childDelegation>true</childDelegation>-->
  236. <useModulePath>true</useModulePath>
  237. <excludes>
  238. <exclude>**/test_osgi/BundleTest.java</exclude>
  239. <exclude>org.slf4j.implTest.MultithreadedInitializationTest.java</exclude>
  240. <exclude>org.slf4j.implTest.InitializationOutputTest.java</exclude>
  241. <exclude>ch.qos.logback.classic.util.ContextInitializerTest.java</exclude>
  242. <exclude>ch.qos.logback.classic.spi.InvocationTest.java</exclude>
  243. <exclude>ch.qos.logback.classic.issue.github450.SLF4JIssue450Test</exclude>
  244. </excludes>
  245. </configuration>
  246. </execution>
  247. <execution>
  248. <id>singleJVM</id>
  249. <goals>
  250. <goal>test</goal>
  251. </goals>
  252. <configuration>
  253. <forkCount>4</forkCount>
  254. <reuseForks>false</reuseForks>
  255. <argLine>
  256. --add-opens ch.qos.logback.classic/ch.qos.logback.classic.issue.github450=ch.qos.logback.core
  257. </argLine>
  258. <includes>
  259. <include>org.slf4j.implTest.MultithreadedInitializationTest.java</include>
  260. <include>org.slf4j.implTest.InitializationOutputTest.java</include>
  261. <include>ch.qos.logback.classic.util.ContextInitializerTest.java</include>
  262. <include>ch.qos.logback.classic.spi.InvocationTest.java</include>
  263. <include>ch.qos.logback.classic.issue.github450.SLF4JIssue450Test</include>
  264. </includes>
  265. </configuration>
  266. </execution>
  267. </executions>
  268. </plugin>
  269. <plugin>
  270. <groupId>org.apache.felix</groupId>
  271. <artifactId>maven-bundle-plugin</artifactId>
  272. <executions>
  273. <execution>
  274. <id>bundle-manifest</id>
  275. <phase>process-classes</phase>
  276. <goals>
  277. <goal>manifest</goal>
  278. </goals>
  279. </execution>
  280. </executions>
  281. <configuration>
  282. <instructions>
  283. <Export-Package>ch.qos.logback.classic*</Export-Package>
  284. <!-- LB-CLASSIC It is necessary to specify the rolling
  285. file packages as classes are created via IOC (xml
  286. config files). They won't be found by Bnd's analysis
  287. of java code. -->
  288. <Import-Package>
  289. ch.qos.logback.classic*;version="${range;[==,+);${version_cleanup;${project.version}}}",
  290. sun.reflect;resolution:=optional,
  291. jakarta.*;resolution:=optional,
  292. org.xml.*;resolution:=optional,
  293. ch.qos.logback.core.rolling,
  294. ch.qos.logback.core.rolling.helper,
  295. ch.qos.logback.core.read,
  296. *
  297. </Import-Package>
  298. <!-- Needed to integrate ServiceLoader mechanism with OSGi -->
  299. <Require-Capability><![CDATA[
  300. osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.processor)(version>=1.0.0)(!(version>=2.0.0)))";resolution:=optional,
  301. osgi.extender;filter:="(&(osgi.extender=osgi.serviceloader.registrar)(version>=1.0.0)(!(version>=2.0.0)))",
  302. osgi.serviceloader;filter:="(osgi.serviceloader=ch.qos.logback.classic.spi.Configurator)";osgi.serviceloader="ch.qos.logback.classic.spi.Configurator";resolution:=optional;cardinality:=multiple
  303. ]]></Require-Capability>
  304. <Provide-Capability><![CDATA[
  305. osgi.service;objectClass:List<String>="jakarta.servlet.ServletContainerInitializer";effective:=active,
  306. osgi.service;objectClass:List<String>="org.slf4j.spi.SLF4JServiceProvider";effective:=active,
  307. osgi.serviceloader;osgi.serviceloader="jakarta.servlet.ServletContainerInitializer";register:="ch.qos.logback.classic.servlet.LogbackServletContainerInitializer",
  308. osgi.serviceloader;osgi.serviceloader="org.slf4j.spi.SLF4JServiceProvider";register:="ch.qos.logback.classic.spi.LogbackServiceProvider"
  309. ]]></Provide-Capability>
  310. </instructions>
  311. </configuration>
  312. </plugin>
  313. </plugins>
  314. <pluginManagement>
  315. <plugins>
  316. </plugins>
  317. </pluginManagement>
  318. </build>
  319. </project>