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

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