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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  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.4.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>2.0.7</version>
  100. </dependency>
  101. <dependency>
  102. <groupId>javax.media</groupId>
  103. <artifactId>jai-core</artifactId>
  104. <version>1.1.3</version>
  105. </dependency>
  106. <dependency>
  107. <groupId>com.sun.media</groupId>
  108. <artifactId>jai-codec</artifactId>
  109. <version>1.1.3</version>
  110. </dependency>
  111. <!-- test deps -->
  112. <dependency>
  113. <groupId>net.sf.offo</groupId>
  114. <artifactId>fop-hyph</artifactId>
  115. <version>${fop.hyph.version}</version>
  116. <scope>test</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>junit</groupId>
  120. <artifactId>junit</artifactId>
  121. <version>${junit.version}</version>
  122. <scope>test</scope>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.mockito</groupId>
  126. <artifactId>mockito-core</artifactId>
  127. <version>1.8.5</version>
  128. <scope>test</scope>
  129. </dependency>
  130. <dependency>
  131. <groupId>xmlunit</groupId>
  132. <artifactId>xmlunit</artifactId>
  133. <version>${xmlunit.version}</version>
  134. <scope>test</scope>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.apache.pdfbox</groupId>
  138. <artifactId>pdfbox</artifactId>
  139. <version>2.0.3</version>
  140. <scope>test</scope>
  141. </dependency>
  142. </dependencies>
  143. <build>
  144. <plugins>
  145. <!-- generate base14 font class sources -->
  146. <plugin>
  147. <groupId>org.codehaus.mojo</groupId>
  148. <artifactId>xml-maven-plugin</artifactId>
  149. <version>${xml.plugin.version}</version>
  150. <executions>
  151. <execution>
  152. <id>generate-base14-fonts</id>
  153. <phase>generate-sources</phase>
  154. <goals>
  155. <goal>transform</goal>
  156. </goals>
  157. <configuration>
  158. <transformationSets>
  159. <transformationSet>
  160. <dir>${project.basedir}/src/main/codegen/fonts</dir>
  161. <fileMappers>
  162. <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
  163. <targetExtension>.java</targetExtension>
  164. </fileMapper>
  165. </fileMappers>
  166. <includes>
  167. <include>Courier*.xml</include>
  168. <include>Helvetica*.xml</include>
  169. <include>Times*.xml</include>
  170. </includes>
  171. <parameters>
  172. <parameter>
  173. <name>encoding</name>
  174. <value>WinAnsiEncoding</value>
  175. </parameter>
  176. </parameters>
  177. <outputDir>${project.build.directory}/generated-sources/main/java/org/apache/fop/fonts/base14</outputDir>
  178. <stylesheet>${project.basedir}/src/main/codegen/fonts/font-file.xsl</stylesheet>
  179. </transformationSet>
  180. <transformationSet>
  181. <dir>${project.basedir}/src/main/codegen/fonts</dir>
  182. <fileMappers>
  183. <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
  184. <targetExtension>.java</targetExtension>
  185. </fileMapper>
  186. </fileMappers>
  187. <includes>
  188. <include>Symbol.xml</include>
  189. <include>ZapfDingbats.xml</include>
  190. </includes>
  191. <outputDir>${project.build.directory}/generated-sources/main/java/org/apache/fop/fonts/base14</outputDir>
  192. <stylesheet>${project.basedir}/src/main/codegen/fonts/font-file.xsl</stylesheet>
  193. </transformationSet>
  194. </transformationSets>
  195. </configuration>
  196. </execution>
  197. <execution>
  198. <id>codegen-fonts-encodings</id>
  199. <phase>generate-sources</phase>
  200. <goals>
  201. <goal>transform</goal>
  202. </goals>
  203. <configuration>
  204. <transformationSets>
  205. <transformationSet>
  206. <dir>${project.basedir}/src/main/codegen/fonts</dir>
  207. <fileMappers>
  208. <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.MergeFileMapper">
  209. <targetName>CodePointMapping.java</targetName>
  210. </fileMapper>
  211. </fileMappers>
  212. <includes>
  213. <include>encodings.xml</include>
  214. </includes>
  215. <outputDir>${project.build.directory}/generated-sources/main/java/org/apache/fop/fonts</outputDir>
  216. <stylesheet>${project.basedir}/src/main/codegen/fonts/code-point-mapping.xsl</stylesheet>
  217. </transformationSet>
  218. </transformationSets>
  219. </configuration>
  220. </execution>
  221. </executions>
  222. <dependencies>
  223. <dependency>
  224. <groupId>net.sf.saxon</groupId>
  225. <artifactId>saxon</artifactId>
  226. <version>8.7</version>
  227. </dependency>
  228. </dependencies>
  229. </plugin>
  230. <!-- add generate base14 font class sources to source set -->
  231. <plugin>
  232. <groupId>org.codehaus.mojo</groupId>
  233. <artifactId>build-helper-maven-plugin</artifactId>
  234. <version>${build.helper.plugin.version}</version>
  235. <executions>
  236. <execution>
  237. <id>add-generated-sources</id>
  238. <phase>generate-sources</phase>
  239. <goals>
  240. <goal>add-source</goal>
  241. </goals>
  242. <configuration>
  243. <sources>
  244. <source>${project.build.directory}/generated-sources/main/java</source>
  245. </sources>
  246. </configuration>
  247. </execution>
  248. </executions>
  249. </plugin>
  250. <!-- generate event collector models -->
  251. <plugin>
  252. <groupId>org.apache.maven.plugins</groupId>
  253. <artifactId>maven-antrun-plugin</artifactId>
  254. <version>${antrun.plugin.version}</version>
  255. <executions>
  256. <execution>
  257. <id>codegen-events</id>
  258. <phase>process-classes</phase>
  259. <goals>
  260. <goal>run</goal>
  261. </goals>
  262. <configuration>
  263. <target>
  264. <taskdef name="collectEvents" classname="org.apache.fop.tools.EventProducerCollectorTask" classpathref="maven.compile.classpath"/>
  265. <collectEvents destdir="${project.build.outputDirectory}">
  266. <fileset dir="${project.basedir}/src/main/java">
  267. <include name="**/accessibility/AccessibilityEventProducer.java"/>
  268. <include name="**/afp/AFPEventProducer.java"/>
  269. <include name="**/area/AreaEventProducer.java"/>
  270. <include name="**/fo/flow/table/TableEventProducer.java"/>
  271. <include name="**/fo/FOValidationEventProducer.java"/>
  272. <include name="**/fonts/FontEventProducer.java"/>
  273. <include name="**/layoutmgr/BlockLevelEventProducer.java"/>
  274. <include name="**/layoutmgr/inline/InlineLevelEventProducer.java"/>
  275. <include name="**/render/bitmap/BitmapRendererEventProducer.java"/>
  276. <include name="**/render/pcl/PCLEventProducer.java"/>
  277. <include name="**/render/pdf/extensions/PDFExtensionEventProducer.java"/>
  278. <include name="**/render/pdf/PDFEventProducer.java"/>
  279. <include name="**/render/ps/PSEventProducer.java"/>
  280. <include name="**/render/RendererEventProducer.java"/>
  281. <include name="**/render/rtf/RTFEventProducer.java"/>
  282. <include name="**/ResourceEventProducer.java"/>
  283. <include name="**/svg/SVGEventProducer.java"/>
  284. </fileset>
  285. </collectEvents>
  286. </target>
  287. </configuration>
  288. </execution>
  289. </executions>
  290. </plugin>
  291. <!-- junit testing -->
  292. <plugin>
  293. <artifactId>maven-surefire-plugin</artifactId>
  294. <version>${surefire.plugin.version}</version><!--$NO-MVN-MAN-VER$-->
  295. <configuration>
  296. <includes>
  297. <include>**/*TestCase.java</include>
  298. </includes>
  299. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  300. <workingDirectory>../fop</workingDirectory>
  301. </configuration>
  302. </plugin>
  303. <!-- code analysis - checkstyle -->
  304. <plugin>
  305. <groupId>org.apache.maven.plugins</groupId>
  306. <artifactId>maven-checkstyle-plugin</artifactId>
  307. <configuration>
  308. <configLocation>${project.baseUri}src/tools/resources/checkstyle/checkstyle.xml</configLocation>
  309. <headerLocation>${project.baseUri}src/tools/resources/checkstyle/LICENSE.txt</headerLocation>
  310. <includeResources>false</includeResources>
  311. <includeTestResources>false</includeTestResources>
  312. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  313. <linkXRef>false</linkXRef>
  314. <logViolationsToConsole>true</logViolationsToConsole>
  315. <suppressionsLocation>${project.baseUri}src/tools/resources/checkstyle/suppressions.xml</suppressionsLocation>
  316. <violationSeverity>warning</violationSeverity>
  317. </configuration>
  318. </plugin>
  319. <!-- code analysis - checkstyle -->
  320. <plugin>
  321. <groupId>org.codehaus.mojo</groupId>
  322. <artifactId>findbugs-maven-plugin</artifactId>
  323. <version>${findbugs.plugin.version}</version>
  324. <configuration>
  325. <excludeFilterFile>src/tools/resources/findbugs/exclusions.xml</excludeFilterFile>
  326. <effort>Max</effort>
  327. <threshold>Low</threshold>
  328. </configuration>
  329. </plugin>
  330. </plugins>
  331. <resources>
  332. <resource>
  333. <directory>src/main/resources</directory>
  334. </resource>
  335. <resource>
  336. <directory>${basedir}/..</directory>
  337. <includes>
  338. <include>LICENSE</include>
  339. <include>NOTICE</include>
  340. </includes>
  341. <targetPath>META-INF</targetPath>
  342. </resource>
  343. </resources>
  344. <testResources>
  345. <testResource>
  346. <directory>src/test/resources</directory>
  347. <includes>
  348. <include>**/*</include>
  349. </includes>
  350. </testResource>
  351. </testResources>
  352. </build>
  353. <profiles>
  354. <profile>
  355. <id>runFindbugs</id>
  356. <build>
  357. <plugins>
  358. <plugin>
  359. <groupId>org.codehaus.mojo</groupId>
  360. <artifactId>findbugs-maven-plugin</artifactId>
  361. <version>${findbugs.plugin.version}</version>
  362. <configuration>
  363. <excludeFilterFile>src/tools/resources/findbugs/exclusions.xml</excludeFilterFile>
  364. <effort>Max</effort>
  365. <threshold>Low</threshold>
  366. </configuration>
  367. <executions>
  368. <execution>
  369. <id>verify</id>
  370. <phase>verify</phase>
  371. <goals>
  372. <goal>check</goal>
  373. </goals>
  374. </execution>
  375. </executions>
  376. </plugin>
  377. </plugins>
  378. </build>
  379. </profile>
  380. </profiles>
  381. </project>