Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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