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 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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</artifactId>
  6. <name>${project.groupId}:${project.artifactId}</name>
  7. <description>XML Graphics Format Object Processor</description>
  8. <parent>
  9. <groupId>org.apache.xmlgraphics</groupId>
  10. <artifactId>fop-parent</artifactId>
  11. <version>2.2.0-SNAPSHOT</version>
  12. </parent>
  13. <properties>
  14. <fop.hyph.version>2.0</fop.hyph.version>
  15. </properties>
  16. <dependencies>
  17. <!-- compile deps -->
  18. <dependency>
  19. <groupId>commons-io</groupId>
  20. <artifactId>commons-io</artifactId>
  21. <version>1.3.2</version>
  22. </dependency>
  23. <dependency>
  24. <groupId>commons-logging</groupId>
  25. <artifactId>commons-logging</artifactId>
  26. <version>1.2</version>
  27. </dependency>
  28. <dependency>
  29. <groupId>javax.servlet</groupId>
  30. <artifactId>servlet-api</artifactId>
  31. <version>2.2</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.apache.ant</groupId>
  35. <artifactId>ant</artifactId>
  36. <version>1.8.2</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>org.apache.avalon.framework</groupId>
  40. <artifactId>avalon-framework-api</artifactId>
  41. <version>4.3.1</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.apache.avalon.framework</groupId>
  45. <artifactId>avalon-framework-impl</artifactId>
  46. <version>4.3.1</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.apache.pdfbox</groupId>
  50. <artifactId>fontbox</artifactId>
  51. <version>1.8.5</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>${project.groupId}</groupId>
  55. <artifactId>batik-anim</artifactId>
  56. <version>${batik.version}</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>${project.groupId}</groupId>
  60. <artifactId>batik-awt-util</artifactId>
  61. <version>${batik.version}</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>${project.groupId}</groupId>
  65. <artifactId>batik-bridge</artifactId>
  66. <version>${batik.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>${project.groupId}</groupId>
  70. <artifactId>batik-extension</artifactId>
  71. <version>${batik.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>${project.groupId}</groupId>
  75. <artifactId>batik-gvt</artifactId>
  76. <version>${batik.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>${project.groupId}</groupId>
  80. <artifactId>batik-transcoder</artifactId>
  81. <version>${batik.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>${project.groupId}</groupId>
  85. <artifactId>xmlgraphics-commons</artifactId>
  86. <version>${xmlgraphics.commons.version}</version>
  87. </dependency>
  88. <!-- provided deps -->
  89. <dependency>
  90. <groupId>com.thoughtworks.qdox</groupId>
  91. <artifactId>qdox</artifactId>
  92. <version>1.12</version>
  93. <scope>provided</scope>
  94. </dependency>
  95. <!-- test deps -->
  96. <dependency>
  97. <groupId>net.sf.offo</groupId>
  98. <artifactId>fop-hyph</artifactId>
  99. <version>${fop.hyph.version}</version>
  100. <scope>test</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>junit</groupId>
  104. <artifactId>junit</artifactId>
  105. <version>${junit.version}</version>
  106. <scope>test</scope>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.mockito</groupId>
  110. <artifactId>mockito-core</artifactId>
  111. <version>1.8.5</version>
  112. <scope>test</scope>
  113. </dependency>
  114. <dependency>
  115. <groupId>xmlunit</groupId>
  116. <artifactId>xmlunit</artifactId>
  117. <version>${xmlunit.version}</version>
  118. <scope>test</scope>
  119. </dependency>
  120. </dependencies>
  121. <build>
  122. <plugins>
  123. <!-- generate base14 font class sources -->
  124. <plugin>
  125. <groupId>org.codehaus.mojo</groupId>
  126. <artifactId>xml-maven-plugin</artifactId>
  127. <version>${xml.plugin.version}</version>
  128. <executions>
  129. <execution>
  130. <id>generate-base14-fonts</id>
  131. <phase>generate-sources</phase>
  132. <goals>
  133. <goal>transform</goal>
  134. </goals>
  135. <configuration>
  136. <transformationSets>
  137. <transformationSet>
  138. <dir>${project.basedir}/src/main/codegen/fonts</dir>
  139. <fileMappers>
  140. <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
  141. <targetExtension>.java</targetExtension>
  142. </fileMapper>
  143. </fileMappers>
  144. <includes>
  145. <include>Courier*.xml</include>
  146. <include>Helvetica*.xml</include>
  147. <include>Symbol.xml</include>
  148. <include>Times*.xml</include>
  149. <include>ZapfDingbats.xml</include>
  150. </includes>
  151. <outputDir>${project.build.directory}/generated-sources/main/java/org/apache/fop/fonts/base14</outputDir>
  152. <stylesheet>${project.basedir}/src/main/codegen/fonts/font-file.xsl</stylesheet>
  153. </transformationSet>
  154. </transformationSets>
  155. </configuration>
  156. </execution>
  157. <execution>
  158. <id>codegen-fonts-encodings</id>
  159. <phase>generate-sources</phase>
  160. <goals>
  161. <goal>transform</goal>
  162. </goals>
  163. <configuration>
  164. <transformationSets>
  165. <transformationSet>
  166. <dir>${project.basedir}/src/main/codegen/fonts</dir>
  167. <fileMappers>
  168. <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.MergeFileMapper">
  169. <targetName>CodePointMapping.java</targetName>
  170. </fileMapper>
  171. </fileMappers>
  172. <includes>
  173. <include>encodings.xml</include>
  174. </includes>
  175. <outputDir>${project.build.directory}/generated-sources/main/java/org/apache/fop/fonts</outputDir>
  176. <stylesheet>${project.basedir}/src/main/codegen/fonts/code-point-mapping.xsl</stylesheet>
  177. </transformationSet>
  178. </transformationSets>
  179. </configuration>
  180. </execution>
  181. </executions>
  182. <dependencies>
  183. <dependency>
  184. <groupId>net.sf.saxon</groupId>
  185. <artifactId>saxon</artifactId>
  186. <version>8.7</version>
  187. </dependency>
  188. </dependencies>
  189. </plugin>
  190. <!-- add generate base14 font class sources to source set -->
  191. <plugin>
  192. <groupId>org.codehaus.mojo</groupId>
  193. <artifactId>build-helper-maven-plugin</artifactId>
  194. <version>${build.helper.plugin.version}</version>
  195. <executions>
  196. <execution>
  197. <id>add-generated-sources</id>
  198. <phase>generate-sources</phase>
  199. <goals>
  200. <goal>add-source</goal>
  201. </goals>
  202. <configuration>
  203. <sources>
  204. <source>${project.build.directory}/generated-sources/main/java</source>
  205. </sources>
  206. </configuration>
  207. </execution>
  208. </executions>
  209. </plugin>
  210. <!-- compile -->
  211. <plugin>
  212. <groupId>org.apache.maven.plugins</groupId>
  213. <artifactId>maven-compiler-plugin</artifactId>
  214. <configuration>
  215. <excludes>
  216. <exclude>org/apache/fop/util/bitmap/JAIMonochromeBitmapConverter.java</exclude>
  217. </excludes>
  218. </configuration>
  219. </plugin>
  220. <!-- generate event collector models -->
  221. <plugin>
  222. <groupId>org.apache.maven.plugins</groupId>
  223. <artifactId>maven-antrun-plugin</artifactId>
  224. <version>${antrun.plugin.version}</version>
  225. <executions>
  226. <execution>
  227. <id>codegen-events</id>
  228. <phase>process-classes</phase>
  229. <goals>
  230. <goal>run</goal>
  231. </goals>
  232. <configuration>
  233. <target>
  234. <taskdef name="collectEvents" classname="org.apache.fop.tools.EventProducerCollectorTask" classpathref="maven.compile.classpath"/>
  235. <collectEvents destdir="${project.build.outputDirectory}">
  236. <fileset dir="${project.basedir}/src/main/java">
  237. <include name="**/accessibility/AccessibilityEventProducer.java"/>
  238. <include name="**/afp/AFPEventProducer.java"/>
  239. <include name="**/area/AreaEventProducer.java"/>
  240. <include name="**/fo/flow/table/TableEventProducer.java"/>
  241. <include name="**/fo/FOValidationEventProducer.java"/>
  242. <include name="**/fonts/FontEventProducer.java"/>
  243. <include name="**/layoutmgr/BlockLevelEventProducer.java"/>
  244. <include name="**/layoutmgr/inline/InlineLevelEventProducer.java"/>
  245. <include name="**/render/bitmap/BitmapRendererEventProducer.java"/>
  246. <include name="**/render/pcl/PCLEventProducer.java"/>
  247. <include name="**/render/pdf/extensions/PDFExtensionEventProducer.java"/>
  248. <include name="**/render/pdf/PDFEventProducer.java"/>
  249. <include name="**/render/ps/PSEventProducer.java"/>
  250. <include name="**/render/RendererEventProducer.java"/>
  251. <include name="**/render/rtf/RTFEventProducer.java"/>
  252. <include name="**/ResourceEventProducer.java"/>
  253. <include name="**/svg/SVGEventProducer.java"/>
  254. </fileset>
  255. </collectEvents>
  256. </target>
  257. </configuration>
  258. </execution>
  259. <execution>
  260. <id>codegen-test-events</id>
  261. <phase>process-test-classes</phase>
  262. <goals>
  263. <goal>run</goal>
  264. </goals>
  265. <configuration>
  266. <target>
  267. <taskdef name="collectEvents" classname="org.apache.fop.tools.EventProducerCollectorTask">
  268. <classpath>
  269. <path refid="maven.compile.classpath"/>
  270. <path refid="maven.test.classpath"/>
  271. </classpath>
  272. </taskdef>
  273. <collectEvents destdir="${project.build.testOutputDirectory}">
  274. <fileset dir="${project.basedir}/src/test/java">
  275. <include name="**/events/TestEventProducer.java"/>
  276. </fileset>
  277. </collectEvents>
  278. </target>
  279. </configuration>
  280. </execution>
  281. </executions>
  282. </plugin>
  283. <!-- junit testing -->
  284. <plugin>
  285. <artifactId>maven-surefire-plugin</artifactId>
  286. <version>${surefire.plugin.version}</version><!--$NO-MVN-MAN-VER$-->
  287. <configuration>
  288. <includes>
  289. <include>**/*TestCase.java</include>
  290. </includes>
  291. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  292. </configuration>
  293. </plugin>
  294. <!-- jar packaging -->
  295. <plugin>
  296. <groupId>org.apache.maven.plugins</groupId>
  297. <artifactId>maven-jar-plugin</artifactId>
  298. <version>${jar.plugin.version}</version>
  299. <configuration>
  300. <excludes>
  301. <exclude>**/tools/Event*.class</exclude>
  302. <exclude>**/tools/*.xsl</exclude>
  303. </excludes>
  304. </configuration>
  305. </plugin>
  306. <!-- code analysis - checkstyle -->
  307. <plugin>
  308. <groupId>org.apache.maven.plugins</groupId>
  309. <artifactId>maven-checkstyle-plugin</artifactId>
  310. <version>${checkstyle.plugin.version}</version>
  311. <configuration>
  312. <configLocation>${project.baseUri}src/tools/resources/checkstyle/checkstyle.xml</configLocation>
  313. <headerLocation>${project.baseUri}src/tools/resources/checkstyle/LICENSE.txt</headerLocation>
  314. <includeResources>false</includeResources>
  315. <includeTestResources>false</includeTestResources>
  316. <linkXRef>false</linkXRef>
  317. <logViolationsToConsole>true</logViolationsToConsole>
  318. <suppressionsLocation>${project.baseUri}src/tools/resources/checkstyle/suppressions.xml</suppressionsLocation>
  319. <violationSeverity>warning</violationSeverity>
  320. </configuration>
  321. </plugin>
  322. <!-- code analysis - findbugs -->
  323. <plugin>
  324. <groupId>org.codehaus.mojo</groupId>
  325. <artifactId>findbugs-maven-plugin</artifactId>
  326. <version>${findbugs.plugin.version}</version>
  327. <configuration>
  328. <excludeFilterFile>src/tools/resources/findbugs/exclusions.xml</excludeFilterFile>
  329. <effort>Max</effort>
  330. <threshold>Low</threshold>
  331. </configuration>
  332. </plugin>
  333. </plugins>
  334. <resources>
  335. <resource>
  336. <directory>src/main/resources</directory>
  337. </resource>
  338. <resource>
  339. <directory>${basedir}/..</directory>
  340. <includes>
  341. <include>LICENSE</include>
  342. <include>NOTICE</include>
  343. </includes>
  344. <targetPath>META-INF</targetPath>
  345. </resource>
  346. </resources>
  347. <testResources>
  348. <testResource>
  349. <directory>src/test/resources</directory>
  350. <includes>
  351. <include>**/*</include>
  352. </includes>
  353. </testResource>
  354. </testResources>
  355. </build>
  356. </project>