logback-classic-1.2.9.pom 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  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.2.9</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. <dependencies>
  16. <dependency>
  17. <groupId>ch.qos.logback</groupId>
  18. <artifactId>logback-core</artifactId>
  19. <scope>compile</scope>
  20. </dependency>
  21. <dependency>
  22. <groupId>org.slf4j</groupId>
  23. <artifactId>slf4j-api</artifactId>
  24. <version>${slf4j.version}</version>
  25. <scope>compile</scope>
  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>log4j</groupId>
  63. <artifactId>log4j</artifactId>
  64. <version>1.2.17</version>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>dom4j</groupId>
  69. <artifactId>dom4j</artifactId>
  70. <scope>test</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>javax.mail</groupId>
  74. <artifactId>mail</artifactId>
  75. <scope>compile</scope>
  76. <optional>true</optional>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.codehaus.janino</groupId>
  80. <artifactId>janino</artifactId>
  81. <scope>compile</scope>
  82. <optional>true</optional>
  83. </dependency>
  84. <dependency>
  85. <groupId>ch.qos.logback</groupId>
  86. <artifactId>logback-core</artifactId>
  87. <type>test-jar</type>
  88. <scope>test</scope>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.slf4j</groupId>
  92. <artifactId>integration</artifactId>
  93. <version>${slf4j.version}</version>
  94. <scope>test</scope>
  95. </dependency>
  96. <dependency>
  97. <groupId>javax.servlet</groupId>
  98. <artifactId>javax.servlet-api</artifactId>
  99. <scope>compile</scope>
  100. <optional>true</optional>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.icegreen</groupId>
  104. <artifactId>greenmail</artifactId>
  105. <version>1.3</version>
  106. <scope>test</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.subethamail</groupId>
  110. <artifactId>subethasmtp</artifactId>
  111. <version>2.1.0</version>
  112. <scope>test</scope>
  113. <exclusions>
  114. <exclusion>
  115. <groupId>org.slf4j</groupId>
  116. <artifactId>slf4j-api</artifactId>
  117. </exclusion>
  118. </exclusions>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.apache.felix</groupId>
  122. <artifactId>org.apache.felix.main</artifactId>
  123. <version>2.0.2</version>
  124. <scope>test</scope>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.mockito</groupId>
  128. <artifactId>mockito-core</artifactId>
  129. <scope>test</scope>
  130. </dependency>
  131. </dependencies>
  132. <build>
  133. <resources>
  134. <resource>
  135. <directory>src/main/resources</directory>
  136. </resource>
  137. </resources>
  138. <plugins>
  139. <plugin>
  140. <groupId>org.apache.maven.plugins</groupId>
  141. <artifactId>maven-jar-plugin</artifactId>
  142. <configuration>
  143. <archive>
  144. <manifestFile>
  145. ${project.build.outputDirectory}/META-INF/MANIFEST.MF
  146. </manifestFile>
  147. </archive>
  148. </configuration>
  149. <executions>
  150. <execution>
  151. <id>bundle-test-jar</id>
  152. <phase>package</phase>
  153. <goals>
  154. <goal>jar</goal>
  155. <goal>test-jar</goal>
  156. </goals>
  157. </execution>
  158. </executions>
  159. </plugin>
  160. <plugin>
  161. <groupId>org.apache.maven.plugins</groupId>
  162. <artifactId>maven-antrun-plugin</artifactId>
  163. <version>1.8</version>
  164. <dependencies>
  165. <dependency>
  166. <groupId>org.apache.ant</groupId>
  167. <artifactId>ant-junit</artifactId>
  168. <version>1.8.1</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>junit</groupId>
  172. <artifactId>junit</artifactId>
  173. <version>${junit.version}</version>
  174. </dependency>
  175. </dependencies>
  176. <executions>
  177. <execution>
  178. <id>ant-osgi-test</id>
  179. <phase>package</phase>
  180. <configuration>
  181. <target>
  182. <property name="currentVersion" value="${project.version}"/>
  183. <property name="slf4j.version" value="${slf4j.version}"/>
  184. <property name="basedir" value="${basedir}"/>
  185. <ant antfile="${basedir}/osgi-build.xml"/>
  186. </target>
  187. </configuration>
  188. <goals>
  189. <goal>run</goal>
  190. </goals>
  191. </execution>
  192. <execution>
  193. <id>ant-integration-test</id>
  194. <phase>package</phase>
  195. <configuration>
  196. <target>
  197. <property name="slf4j.version" value="${slf4j.version}"/>
  198. <ant antfile="${basedir}/integration.xml"/>
  199. </target>
  200. </configuration>
  201. <goals>
  202. <goal>run</goal>
  203. </goals>
  204. </execution>
  205. </executions>
  206. </plugin>
  207. <plugin>
  208. <groupId>org.apache.maven.plugins</groupId>
  209. <artifactId>maven-surefire-plugin</artifactId>
  210. <configuration>
  211. <!-- once, never, pertest, always -->
  212. <!--<forkMode>once</forkMode>-->
  213. <forkCount>1C</forkCount>
  214. <reuseForks>false</reuseForks>
  215. <reportFormat>plain</reportFormat>
  216. <trimStackTrace>false</trimStackTrace>
  217. <excludes>
  218. <exclude>**/AllClassicTest.java</exclude>
  219. <exclude>**/PackageTest.java</exclude>
  220. <exclude>**/TestConstants.java</exclude>
  221. <exclude>**/test_osgi/BundleTest.java</exclude>
  222. <exclude>**/ch/qos/logback/classic/util/InitializationIntegrationTest.java</exclude>
  223. <!-- skip performance tests -->
  224. <exclude>**/*PerfTest.java</exclude>
  225. </excludes>
  226. </configuration>
  227. </plugin>
  228. <plugin>
  229. <groupId>org.apache.felix</groupId>
  230. <artifactId>maven-bundle-plugin</artifactId>
  231. <extensions>true</extensions>
  232. <executions>
  233. <execution>
  234. <id>bundle-manifest</id>
  235. <phase>process-classes</phase>
  236. <goals>
  237. <goal>manifest</goal>
  238. </goals>
  239. </execution>
  240. </executions>
  241. <configuration>
  242. <instructions>
  243. <Export-Package>ch.qos.logback.classic*, org.slf4j.impl;version=${slf4j.version}</Export-Package>
  244. <!-- LB-CLASSIC It is necessary to specify the rolling
  245. file packages as classes are created via IOC (xml
  246. config files). They won't be found by Bnd's analysis
  247. of java code. -->
  248. <Import-Package>
  249. sun.reflect;resolution:=optional,
  250. javax.*;resolution:=optional,
  251. org.xml.*;resolution:=optional,
  252. org.slf4j,
  253. org.slf4j.event,
  254. ch.qos.logback.core.rolling,
  255. ch.qos.logback.core.rolling.helper,
  256. ch.qos.logback.core.util,
  257. ch.qos.logback.core.read,
  258. *
  259. </Import-Package>
  260. <Bundle-RequiredExecutionEnvironment>JavaSE-1.6</Bundle-RequiredExecutionEnvironment>
  261. </instructions>
  262. </configuration>
  263. </plugin>
  264. </plugins>
  265. <pluginManagement>
  266. <plugins>
  267. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  268. <plugin>
  269. <groupId>org.eclipse.m2e</groupId>
  270. <artifactId>lifecycle-mapping</artifactId>
  271. <version>1.0.0</version>
  272. <configuration>
  273. <lifecycleMappingMetadata>
  274. <pluginExecutions>
  275. </pluginExecutions>
  276. </lifecycleMappingMetadata>
  277. </configuration>
  278. </plugin>
  279. </plugins>
  280. </pluginManagement>
  281. </build>
  282. </project>