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

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