Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

pom.xml 15KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419
  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.9.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. <exclusions>
  23. <exclusion>
  24. <groupId>xalan</groupId>
  25. <artifactId>xalan</artifactId>
  26. </exclusion>
  27. </exclusions>
  28. </dependency>
  29. <dependency>
  30. <groupId>${project.groupId}</groupId>
  31. <artifactId>batik-awt-util</artifactId>
  32. <version>${batik.version}</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>${project.groupId}</groupId>
  36. <artifactId>batik-bridge</artifactId>
  37. <version>${batik.version}</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>${project.groupId}</groupId>
  41. <artifactId>batik-extension</artifactId>
  42. <version>${batik.version}</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>${project.groupId}</groupId>
  46. <artifactId>batik-gvt</artifactId>
  47. <version>${batik.version}</version>
  48. </dependency>
  49. <dependency>
  50. <groupId>${project.groupId}</groupId>
  51. <artifactId>batik-transcoder</artifactId>
  52. <version>${batik.version}</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>${project.groupId}</groupId>
  56. <artifactId>batik-codec</artifactId>
  57. <version>${batik.version}</version>
  58. </dependency>
  59. <!-- fop deps -->
  60. <dependency>
  61. <groupId>${project.groupId}</groupId>
  62. <artifactId>fop-events</artifactId>
  63. <version>${project.version}</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>${project.groupId}</groupId>
  67. <artifactId>fop-util</artifactId>
  68. <version>${project.version}</version>
  69. </dependency>
  70. <!-- xgc deps -->
  71. <dependency>
  72. <groupId>${project.groupId}</groupId>
  73. <artifactId>xmlgraphics-commons</artifactId>
  74. <version>${xmlgraphics.commons.version}</version>
  75. </dependency>
  76. <!-- xmlgraphics external deps -->
  77. <dependency>
  78. <groupId>commons-io</groupId>
  79. <artifactId>commons-io</artifactId>
  80. <version>${commons.io.version}</version>
  81. </dependency>
  82. <dependency>
  83. <groupId>commons-logging</groupId>
  84. <artifactId>commons-logging</artifactId>
  85. <version>${commons.logging.version}</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>javax.servlet</groupId>
  89. <artifactId>servlet-api</artifactId>
  90. <version>2.2</version>
  91. <scope>provided</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.apache.ant</groupId>
  95. <artifactId>ant</artifactId>
  96. <version>${ant.version}</version>
  97. <scope>provided</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.apache.pdfbox</groupId>
  101. <artifactId>fontbox</artifactId>
  102. <version>2.0.27</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>javax.media</groupId>
  106. <artifactId>jai-core</artifactId>
  107. <version>1.1.3</version>
  108. <scope>provided</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.bouncycastle</groupId>
  112. <artifactId>bcpkix-jdk15to18</artifactId>
  113. <version>1.77</version>
  114. <scope>provided</scope>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.bouncycastle</groupId>
  118. <artifactId>bcprov-jdk15to18</artifactId>
  119. <version>1.77</version>
  120. <scope>provided</scope>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.sun.media</groupId>
  124. <artifactId>jai-codec</artifactId>
  125. <version>1.1.3</version>
  126. <scope>provided</scope>
  127. </dependency>
  128. <!-- test deps -->
  129. <dependency>
  130. <groupId>net.sf.offo</groupId>
  131. <artifactId>fop-hyph</artifactId>
  132. <version>${fop.hyph.version}</version>
  133. <scope>test</scope>
  134. </dependency>
  135. <dependency>
  136. <groupId>junit</groupId>
  137. <artifactId>junit</artifactId>
  138. <version>${junit.version}</version>
  139. <scope>test</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>org.mockito</groupId>
  143. <artifactId>mockito-core</artifactId>
  144. <version>2.28.2</version>
  145. <scope>test</scope>
  146. </dependency>
  147. <dependency>
  148. <groupId>xmlunit</groupId>
  149. <artifactId>xmlunit</artifactId>
  150. <version>${xmlunit.version}</version>
  151. <scope>test</scope>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.apache.pdfbox</groupId>
  155. <artifactId>pdfbox</artifactId>
  156. <version>2.0.27</version>
  157. <scope>test</scope>
  158. </dependency>
  159. </dependencies>
  160. <build>
  161. <plugins>
  162. <!-- generate base14 font class sources -->
  163. <plugin>
  164. <groupId>org.codehaus.mojo</groupId>
  165. <artifactId>xml-maven-plugin</artifactId>
  166. <version>${xml.plugin.version}</version>
  167. <executions>
  168. <execution>
  169. <id>generate-base14-fonts</id>
  170. <phase>generate-sources</phase>
  171. <goals>
  172. <goal>transform</goal>
  173. </goals>
  174. <configuration>
  175. <transformationSets>
  176. <transformationSet>
  177. <dir>${project.basedir}/src/main/codegen/fonts</dir>
  178. <fileMappers>
  179. <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
  180. <targetExtension>.java</targetExtension>
  181. </fileMapper>
  182. </fileMappers>
  183. <includes>
  184. <include>Courier*.xml</include>
  185. <include>Helvetica*.xml</include>
  186. <include>Times*.xml</include>
  187. </includes>
  188. <parameters>
  189. <parameter>
  190. <name>encoding</name>
  191. <value>WinAnsiEncoding</value>
  192. </parameter>
  193. </parameters>
  194. <outputDir>${project.build.directory}/generated-sources/main/java/org/apache/fop/fonts/base14</outputDir>
  195. <stylesheet>${project.basedir}/src/main/codegen/fonts/font-file.xsl</stylesheet>
  196. </transformationSet>
  197. <transformationSet>
  198. <dir>${project.basedir}/src/main/codegen/fonts</dir>
  199. <fileMappers>
  200. <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
  201. <targetExtension>.java</targetExtension>
  202. </fileMapper>
  203. </fileMappers>
  204. <includes>
  205. <include>Symbol.xml</include>
  206. <include>ZapfDingbats.xml</include>
  207. </includes>
  208. <outputDir>${project.build.directory}/generated-sources/main/java/org/apache/fop/fonts/base14</outputDir>
  209. <stylesheet>${project.basedir}/src/main/codegen/fonts/font-file.xsl</stylesheet>
  210. </transformationSet>
  211. </transformationSets>
  212. </configuration>
  213. </execution>
  214. <execution>
  215. <id>codegen-fonts-encodings</id>
  216. <phase>generate-sources</phase>
  217. <goals>
  218. <goal>transform</goal>
  219. </goals>
  220. <configuration>
  221. <transformationSets>
  222. <transformationSet>
  223. <dir>${project.basedir}/src/main/codegen/fonts</dir>
  224. <fileMappers>
  225. <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.MergeFileMapper">
  226. <targetName>CodePointMapping.java</targetName>
  227. </fileMapper>
  228. </fileMappers>
  229. <includes>
  230. <include>encodings.xml</include>
  231. </includes>
  232. <outputDir>${project.build.directory}/generated-sources/main/java/org/apache/fop/fonts</outputDir>
  233. <stylesheet>${project.basedir}/src/main/codegen/fonts/code-point-mapping.xsl</stylesheet>
  234. </transformationSet>
  235. </transformationSets>
  236. </configuration>
  237. </execution>
  238. </executions>
  239. <dependencies>
  240. <dependency>
  241. <groupId>net.sf.saxon</groupId>
  242. <artifactId>saxon</artifactId>
  243. <version>8.7</version>
  244. </dependency>
  245. </dependencies>
  246. </plugin>
  247. <!-- add generate base14 font class sources to source set -->
  248. <plugin>
  249. <groupId>org.codehaus.mojo</groupId>
  250. <artifactId>build-helper-maven-plugin</artifactId>
  251. <version>${build.helper.plugin.version}</version>
  252. <executions>
  253. <execution>
  254. <id>add-generated-sources</id>
  255. <phase>generate-sources</phase>
  256. <goals>
  257. <goal>add-source</goal>
  258. </goals>
  259. <configuration>
  260. <sources>
  261. <source>${project.build.directory}/generated-sources/main/java</source>
  262. </sources>
  263. </configuration>
  264. </execution>
  265. </executions>
  266. </plugin>
  267. <!-- generate event collector models -->
  268. <plugin>
  269. <groupId>org.apache.maven.plugins</groupId>
  270. <artifactId>maven-antrun-plugin</artifactId>
  271. <version>${antrun.plugin.version}</version>
  272. <executions>
  273. <execution>
  274. <id>codegen-events</id>
  275. <phase>process-classes</phase>
  276. <goals>
  277. <goal>run</goal>
  278. </goals>
  279. <configuration>
  280. <target>
  281. <taskdef name="collectEvents" classname="org.apache.fop.tools.EventProducerCollectorTask" classpathref="maven.compile.classpath"/>
  282. <collectEvents destdir="${project.build.outputDirectory}">
  283. <fileset dir="${project.basedir}/src/main/java">
  284. <include name="**/accessibility/AccessibilityEventProducer.java"/>
  285. <include name="**/afp/AFPEventProducer.java"/>
  286. <include name="**/area/AreaEventProducer.java"/>
  287. <include name="**/fo/flow/table/TableEventProducer.java"/>
  288. <include name="**/fo/FOValidationEventProducer.java"/>
  289. <include name="**/fonts/FontEventProducer.java"/>
  290. <include name="**/layoutmgr/BlockLevelEventProducer.java"/>
  291. <include name="**/layoutmgr/inline/InlineLevelEventProducer.java"/>
  292. <include name="**/render/bitmap/BitmapRendererEventProducer.java"/>
  293. <include name="**/render/pcl/PCLEventProducer.java"/>
  294. <include name="**/render/pdf/extensions/PDFExtensionEventProducer.java"/>
  295. <include name="**/render/pdf/PDFEventProducer.java"/>
  296. <include name="**/render/ps/PSEventProducer.java"/>
  297. <include name="**/render/RendererEventProducer.java"/>
  298. <include name="**/render/rtf/RTFEventProducer.java"/>
  299. <include name="**/ResourceEventProducer.java"/>
  300. <include name="**/svg/SVGEventProducer.java"/>
  301. </fileset>
  302. </collectEvents>
  303. </target>
  304. </configuration>
  305. </execution>
  306. </executions>
  307. </plugin>
  308. <!-- junit testing -->
  309. <plugin>
  310. <artifactId>maven-surefire-plugin</artifactId>
  311. <version>${surefire.plugin.version}</version><!--$NO-MVN-MAN-VER$-->
  312. <configuration>
  313. <includes>
  314. <include>**/*TestCase.java</include>
  315. </includes>
  316. <redirectTestOutputToFile>true</redirectTestOutputToFile>
  317. <workingDirectory>../fop</workingDirectory>
  318. </configuration>
  319. </plugin>
  320. <!-- code analysis - checkstyle -->
  321. <plugin>
  322. <groupId>org.apache.maven.plugins</groupId>
  323. <artifactId>maven-checkstyle-plugin</artifactId>
  324. <configuration>
  325. <configLocation>${project.baseUri}src/tools/resources/checkstyle/checkstyle.xml</configLocation>
  326. <headerLocation>${project.baseUri}src/tools/resources/checkstyle/LICENSE.txt</headerLocation>
  327. <includeResources>false</includeResources>
  328. <includeTestResources>false</includeTestResources>
  329. <includeTestSourceDirectory>true</includeTestSourceDirectory>
  330. <linkXRef>false</linkXRef>
  331. <logViolationsToConsole>true</logViolationsToConsole>
  332. <suppressionsLocation>${project.baseUri}src/tools/resources/checkstyle/suppressions.xml</suppressionsLocation>
  333. <violationSeverity>warning</violationSeverity>
  334. </configuration>
  335. </plugin>
  336. <!-- code analysis - checkstyle -->
  337. <plugin>
  338. <groupId>com.github.spotbugs</groupId>
  339. <artifactId>spotbugs-maven-plugin</artifactId>
  340. <version>${findbugs.plugin.version}</version>
  341. <configuration>
  342. <excludeFilterFile>src/tools/resources/findbugs/exclusions.xml</excludeFilterFile>
  343. <effort>Max</effort>
  344. <threshold>Low</threshold>
  345. </configuration>
  346. </plugin>
  347. <plugin>
  348. <groupId>org.apache.maven.plugins</groupId>
  349. <artifactId>maven-jar-plugin</artifactId>
  350. <configuration>
  351. <archive>
  352. <manifest>
  353. <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
  354. </manifest>
  355. <manifestEntries>
  356. <Automatic-Module-Name>org.apache.xmlgraphics.fop.core</Automatic-Module-Name>
  357. </manifestEntries>
  358. </archive>
  359. </configuration>
  360. </plugin>
  361. </plugins>
  362. <resources>
  363. <resource>
  364. <directory>src/main/resources</directory>
  365. </resource>
  366. <resource>
  367. <directory>${basedir}/..</directory>
  368. <includes>
  369. <include>LICENSE</include>
  370. <include>NOTICE</include>
  371. </includes>
  372. <targetPath>META-INF</targetPath>
  373. </resource>
  374. </resources>
  375. <testResources>
  376. <testResource>
  377. <directory>src/test/resources</directory>
  378. <includes>
  379. <include>**/*</include>
  380. </includes>
  381. </testResource>
  382. </testResources>
  383. </build>
  384. <profiles>
  385. <profile>
  386. <id>runFindbugs</id>
  387. <build>
  388. <plugins>
  389. <plugin>
  390. <groupId>com.github.spotbugs</groupId>
  391. <artifactId>spotbugs-maven-plugin</artifactId>
  392. <version>${findbugs.plugin.version}</version>
  393. <configuration>
  394. <excludeFilterFile>src/tools/resources/findbugs/exclusions.xml</excludeFilterFile>
  395. <effort>Max</effort>
  396. <threshold>Low</threshold>
  397. </configuration>
  398. <executions>
  399. <execution>
  400. <id>verify</id>
  401. <phase>verify</phase>
  402. <goals>
  403. <goal>check</goal>
  404. </goals>
  405. </execution>
  406. </executions>
  407. </plugin>
  408. </plugins>
  409. </build>
  410. </profile>
  411. </profiles>
  412. </project>