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

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