You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pom.xml 5.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>org.apache.xmlgraphics</groupId>
  5. <artifactId>fop-events</artifactId>
  6. <name>Apache FOP Events</name>
  7. <description>XML Graphics Format Object Processor Events</description>
  8. <parent>
  9. <groupId>org.apache.xmlgraphics</groupId>
  10. <artifactId>fop-parent</artifactId>
  11. <version>2.9.0-SNAPSHOT</version>
  12. </parent>
  13. <dependencies>
  14. <!-- fop deps -->
  15. <dependency>
  16. <groupId>${project.groupId}</groupId>
  17. <artifactId>fop-util</artifactId>
  18. <version>${project.version}</version>
  19. </dependency>
  20. <!-- external deps -->
  21. <dependency>
  22. <groupId>com.thoughtworks.qdox</groupId>
  23. <artifactId>qdox</artifactId>
  24. <version>1.12</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>commons-io</groupId>
  28. <artifactId>commons-io</artifactId>
  29. <version>${commons.io.version}</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.apache.ant</groupId>
  33. <artifactId>ant</artifactId>
  34. <version>${ant.version}</version>
  35. <scope>provided</scope>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.xmlgraphics</groupId>
  39. <artifactId>xmlgraphics-commons</artifactId>
  40. <version>${xmlgraphics.commons.version}</version>
  41. </dependency>
  42. <!-- test-only deps -->
  43. <dependency>
  44. <groupId>junit</groupId>
  45. <artifactId>junit</artifactId>
  46. <version>${junit.version}</version>
  47. <scope>test</scope>
  48. </dependency>
  49. </dependencies>
  50. <build>
  51. <plugins>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-jar-plugin</artifactId>
  55. <configuration>
  56. <archive>
  57. <manifestEntries>
  58. <Automatic-Module-Name>org.apache.xmlgraphics.fop.events</Automatic-Module-Name>
  59. </manifestEntries>
  60. </archive>
  61. </configuration>
  62. </plugin>
  63. <!-- generate event collector models -->
  64. <plugin>
  65. <groupId>org.apache.maven.plugins</groupId>
  66. <artifactId>maven-antrun-plugin</artifactId>
  67. <version>${antrun.plugin.version}</version>
  68. <executions>
  69. <execution>
  70. <id>codegen-test-events</id>
  71. <phase>process-test-classes</phase>
  72. <goals>
  73. <goal>run</goal>
  74. </goals>
  75. <configuration>
  76. <target>
  77. <taskdef name="collectEvents" classname="org.apache.fop.eventtools.EventProducerCollectorTask">
  78. <classpath>
  79. <path refid="maven.compile.classpath"/>
  80. <path refid="maven.test.classpath"/>
  81. </classpath>
  82. </taskdef>
  83. <collectEvents destdir="${project.build.testOutputDirectory}">
  84. <fileset dir="${project.basedir}/src/test/java">
  85. <include name="**/events/TestEventProducer.java"/>
  86. </fileset>
  87. </collectEvents>
  88. </target>
  89. </configuration>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. <!-- junit testing -->
  94. <plugin>
  95. <groupId>org.apache.maven.plugins</groupId>
  96. <artifactId>maven-surefire-plugin</artifactId>
  97. <configuration>
  98. <includes>
  99. <include>**/*TestCase.java</include>
  100. </includes>
  101. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  102. </configuration>
  103. </plugin>
  104. <!-- code analysis - checkstyle -->
  105. <plugin>
  106. <artifactId>maven-checkstyle-plugin</artifactId>
  107. <configuration>
  108. <configLocation>${project.baseUri}../fop-core/src/tools/resources/checkstyle/checkstyle.xml</configLocation>
  109. <headerLocation>${project.baseUri}../fop-core/src/tools/resources/checkstyle/LICENSE.txt</headerLocation>
  110. <includeResources>false</includeResources>
  111. <includeTestResources>false</includeTestResources>
  112. <linkXRef>false</linkXRef>
  113. <logViolationsToConsole>true</logViolationsToConsole>
  114. <suppressionsLocation>${project.baseUri}../fop-core/src/tools/resources/checkstyle/suppressions.xml</suppressionsLocation>
  115. <violationSeverity>warning</violationSeverity>
  116. </configuration>
  117. </plugin>
  118. <!-- code analysis - findbugs -->
  119. <plugin>
  120. <groupId>com.github.spotbugs</groupId>
  121. <artifactId>spotbugs-maven-plugin</artifactId>
  122. <version>${findbugs.plugin.version}</version>
  123. <configuration>
  124. <excludeFilterFile>../fop-core/src/tools/resources/findbugs/exclusions.xml</excludeFilterFile>
  125. <effort>Max</effort>
  126. <threshold>Low</threshold>
  127. </configuration>
  128. </plugin>
  129. </plugins>
  130. <resources>
  131. <resource>
  132. <directory>src/main/resources</directory>
  133. </resource>
  134. <resource>
  135. <directory>${basedir}/..</directory>
  136. <includes>
  137. <include>LICENSE</include>
  138. <include>NOTICE</include>
  139. </includes>
  140. <targetPath>META-INF</targetPath>
  141. </resource>
  142. </resources>
  143. <testResources>
  144. <testResource>
  145. <directory>src/test/resources</directory>
  146. <includes>
  147. <include>**/*</include>
  148. </includes>
  149. </testResource>
  150. </testResources>
  151. </build>
  152. </project>