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.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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.8.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. <!-- generate event collector models -->
  53. <plugin>
  54. <groupId>org.apache.maven.plugins</groupId>
  55. <artifactId>maven-antrun-plugin</artifactId>
  56. <version>${antrun.plugin.version}</version>
  57. <executions>
  58. <execution>
  59. <id>codegen-test-events</id>
  60. <phase>process-test-classes</phase>
  61. <goals>
  62. <goal>run</goal>
  63. </goals>
  64. <configuration>
  65. <target>
  66. <taskdef name="collectEvents" classname="org.apache.fop.tools.EventProducerCollectorTask">
  67. <classpath>
  68. <path refid="maven.compile.classpath"/>
  69. <path refid="maven.test.classpath"/>
  70. </classpath>
  71. </taskdef>
  72. <collectEvents destdir="${project.build.testOutputDirectory}">
  73. <fileset dir="${project.basedir}/src/test/java">
  74. <include name="**/events/TestEventProducer.java"/>
  75. </fileset>
  76. </collectEvents>
  77. </target>
  78. </configuration>
  79. </execution>
  80. </executions>
  81. </plugin>
  82. <!-- junit testing -->
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-surefire-plugin</artifactId>
  86. <configuration>
  87. <includes>
  88. <include>**/*TestCase.java</include>
  89. </includes>
  90. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  91. </configuration>
  92. </plugin>
  93. <!-- code analysis - checkstyle -->
  94. <plugin>
  95. <artifactId>maven-checkstyle-plugin</artifactId>
  96. <configuration>
  97. <configLocation>${project.baseUri}../fop-core/src/tools/resources/checkstyle/checkstyle.xml</configLocation>
  98. <headerLocation>${project.baseUri}../fop-core/src/tools/resources/checkstyle/LICENSE.txt</headerLocation>
  99. <includeResources>false</includeResources>
  100. <includeTestResources>false</includeTestResources>
  101. <linkXRef>false</linkXRef>
  102. <logViolationsToConsole>true</logViolationsToConsole>
  103. <suppressionsLocation>${project.baseUri}../fop-core/src/tools/resources/checkstyle/suppressions.xml</suppressionsLocation>
  104. <violationSeverity>warning</violationSeverity>
  105. </configuration>
  106. </plugin>
  107. <!-- code analysis - findbugs -->
  108. <plugin>
  109. <groupId>org.codehaus.mojo</groupId>
  110. <artifactId>findbugs-maven-plugin</artifactId>
  111. <version>${findbugs.plugin.version}</version>
  112. <configuration>
  113. <excludeFilterFile>../fop-core/src/tools/resources/findbugs/exclusions.xml</excludeFilterFile>
  114. <effort>Max</effort>
  115. <threshold>Low</threshold>
  116. </configuration>
  117. </plugin>
  118. </plugins>
  119. <resources>
  120. <resource>
  121. <directory>src/main/resources</directory>
  122. </resource>
  123. <resource>
  124. <directory>${basedir}/..</directory>
  125. <includes>
  126. <include>LICENSE</include>
  127. <include>NOTICE</include>
  128. </includes>
  129. <targetPath>META-INF</targetPath>
  130. </resource>
  131. </resources>
  132. <testResources>
  133. <testResource>
  134. <directory>src/test/resources</directory>
  135. <includes>
  136. <include>**/*</include>
  137. </includes>
  138. </testResource>
  139. </testResources>
  140. </build>
  141. </project>