summaryrefslogtreecommitdiffstats
path: root/fop/pom.xml
diff options
context:
space:
mode:
authorGlenn Adams <gadams@apache.org>2016-03-12 05:39:53 +0000
committerGlenn Adams <gadams@apache.org>2016-03-12 05:39:53 +0000
commit6a719897d6f98ba89aa08e2f97b2b801be066cbf (patch)
treebcce1bb7e9c6bde85e1167cff6218948f5be9f0a /fop/pom.xml
parent2184238c210288138b6703bd63ccb2c8c40300f0 (diff)
downloadxmlgraphics-fop-6a719897d6f98ba89aa08e2f97b2b801be066cbf.tar.gz
xmlgraphics-fop-6a719897d6f98ba89aa08e2f97b2b801be066cbf.zip
Configure fop-{sandbox,servlet,transcoder}, checkstyle, findbugs; fixups for ant targets.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/maven@1734671 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop/pom.xml')
-rw-r--r--fop/pom.xml343
1 files changed, 30 insertions, 313 deletions
diff --git a/fop/pom.xml b/fop/pom.xml
index c43ad23c4..ec01857c1 100644
--- a/fop/pom.xml
+++ b/fop/pom.xml
@@ -4,8 +4,8 @@
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>fop</artifactId>
- <name>${project.groupId}:${project.artifactId}</name>
- <description>XML Graphics Format Object Processor</description>
+ <name>Apache FOP All-In-One</name>
+ <description>XML Graphics Format Object Processor All-In-One</description>
<parent>
<groupId>org.apache.xmlgraphics</groupId>
@@ -13,350 +13,67 @@
<version>2.2.0-SNAPSHOT</version>
</parent>
- <properties>
- <fop.hyph.version>2.0</fop.hyph.version>
- </properties>
-
<dependencies>
- <!-- compile deps -->
- <dependency>
- <groupId>commons-io</groupId>
- <artifactId>commons-io</artifactId>
- <version>1.3.2</version>
- </dependency>
- <dependency>
- <groupId>commons-logging</groupId>
- <artifactId>commons-logging</artifactId>
- <version>1.2</version>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>servlet-api</artifactId>
- <version>2.2</version>
- </dependency>
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant</artifactId>
- <version>1.8.2</version>
- </dependency>
- <dependency>
- <groupId>org.apache.avalon.framework</groupId>
- <artifactId>avalon-framework-api</artifactId>
- <version>4.3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.avalon.framework</groupId>
- <artifactId>avalon-framework-impl</artifactId>
- <version>4.3.1</version>
- </dependency>
- <dependency>
- <groupId>org.apache.pdfbox</groupId>
- <artifactId>fontbox</artifactId>
- <version>1.8.5</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>batik-anim</artifactId>
- <version>${batik.version}</version>
- </dependency>
+ <!-- fop deps -->
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>batik-awt-util</artifactId>
- <version>${batik.version}</version>
+ <artifactId>fop-util</artifactId>
+ <version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>batik-bridge</artifactId>
- <version>${batik.version}</version>
+ <artifactId>fop-events</artifactId>
+ <version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
- <artifactId>batik-extension</artifactId>
- <version>${batik.version}</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>batik-gvt</artifactId>
- <version>${batik.version}</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>batik-transcoder</artifactId>
- <version>${batik.version}</version>
- </dependency>
- <dependency>
- <groupId>${project.groupId}</groupId>
- <artifactId>xmlgraphics-commons</artifactId>
- <version>${xmlgraphics.commons.version}</version>
- </dependency>
- <!-- provided deps -->
- <dependency>
- <groupId>com.thoughtworks.qdox</groupId>
- <artifactId>qdox</artifactId>
- <version>1.12</version>
- <scope>provided</scope>
+ <artifactId>fop-core</artifactId>
+ <version>${project.version}</version>
</dependency>
<!-- test deps -->
<dependency>
- <groupId>net.sf.offo</groupId>
- <artifactId>fop-hyph</artifactId>
- <version>${fop.hyph.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
- <dependency>
- <groupId>org.mockito</groupId>
- <artifactId>mockito-core</artifactId>
- <version>1.8.5</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>xmlunit</groupId>
- <artifactId>xmlunit</artifactId>
- <version>${xmlunit.version}</version>
- <scope>test</scope>
- </dependency>
</dependencies>
<build>
<plugins>
- <!-- generate base14 font class sources -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>xml-maven-plugin</artifactId>
- <version>${xml.plugin.version}</version>
- <executions>
- <execution>
- <id>generate-base14-fonts</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>transform</goal>
- </goals>
- <configuration>
- <transformationSets>
- <transformationSet>
- <dir>${project.basedir}/src/main/codegen/fonts</dir>
- <fileMappers>
- <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
- <targetExtension>.java</targetExtension>
- </fileMapper>
- </fileMappers>
- <includes>
- <include>Courier*.xml</include>
- <include>Helvetica*.xml</include>
- <include>Symbol.xml</include>
- <include>Times*.xml</include>
- <include>ZapfDingbats.xml</include>
- </includes>
- <outputDir>${project.build.directory}/generated-sources/main/java/org/apache/fop/fonts/base14</outputDir>
- <stylesheet>${project.basedir}/src/main/codegen/fonts/font-file.xsl</stylesheet>
- </transformationSet>
- </transformationSets>
- </configuration>
- </execution>
- <execution>
- <id>codegen-fonts-encodings</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>transform</goal>
- </goals>
- <configuration>
- <transformationSets>
- <transformationSet>
- <dir>${project.basedir}/src/main/codegen/fonts</dir>
- <fileMappers>
- <fileMapper implementation="org.codehaus.plexus.components.io.filemappers.MergeFileMapper">
- <targetName>CodePointMapping.java</targetName>
- </fileMapper>
- </fileMappers>
- <includes>
- <include>encodings.xml</include>
- </includes>
- <outputDir>${project.build.directory}/generated-sources/main/java/org/apache/fop/fonts</outputDir>
- <stylesheet>${project.basedir}/src/main/codegen/fonts/code-point-mapping.xsl</stylesheet>
- </transformationSet>
- </transformationSets>
- </configuration>
- </execution>
- </executions>
- <dependencies>
- <dependency>
- <groupId>net.sf.saxon</groupId>
- <artifactId>saxon</artifactId>
- <version>8.7</version>
- </dependency>
- </dependencies>
- </plugin>
- <!-- add generate base14 font class sources to source set -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>${build.helper.plugin.version}</version>
- <executions>
- <execution>
- <id>add-generated-sources</id>
- <phase>generate-sources</phase>
- <goals>
- <goal>add-source</goal>
- </goals>
- <configuration>
- <sources>
- <source>${project.build.directory}/generated-sources/main/java</source>
- </sources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!-- compile -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <excludes>
- <exclude>org/apache/fop/util/bitmap/JAIMonochromeBitmapConverter.java</exclude>
- </excludes>
- </configuration>
- </plugin>
- <!-- generate event collector models -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>${antrun.plugin.version}</version>
+ <artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
- <id>codegen-events</id>
- <phase>process-classes</phase>
- <goals>
- <goal>run</goal>
- </goals>
- <configuration>
- <target>
- <taskdef name="collectEvents" classname="org.apache.fop.tools.EventProducerCollectorTask" classpathref="maven.compile.classpath"/>
- <collectEvents destdir="${project.build.outputDirectory}">
- <fileset dir="${project.basedir}/src/main/java">
- <include name="**/accessibility/AccessibilityEventProducer.java"/>
- <include name="**/afp/AFPEventProducer.java"/>
- <include name="**/area/AreaEventProducer.java"/>
- <include name="**/fo/flow/table/TableEventProducer.java"/>
- <include name="**/fo/FOValidationEventProducer.java"/>
- <include name="**/fonts/FontEventProducer.java"/>
- <include name="**/layoutmgr/BlockLevelEventProducer.java"/>
- <include name="**/layoutmgr/inline/InlineLevelEventProducer.java"/>
- <include name="**/render/bitmap/BitmapRendererEventProducer.java"/>
- <include name="**/render/pcl/PCLEventProducer.java"/>
- <include name="**/render/pdf/extensions/PDFExtensionEventProducer.java"/>
- <include name="**/render/pdf/PDFEventProducer.java"/>
- <include name="**/render/ps/PSEventProducer.java"/>
- <include name="**/render/RendererEventProducer.java"/>
- <include name="**/render/rtf/RTFEventProducer.java"/>
- <include name="**/ResourceEventProducer.java"/>
- <include name="**/svg/SVGEventProducer.java"/>
- </fileset>
- </collectEvents>
- </target>
- </configuration>
- </execution>
- <execution>
- <id>codegen-test-events</id>
- <phase>process-test-classes</phase>
+ <id>package-all</id>
+ <phase>package</phase>
<goals>
- <goal>run</goal>
+ <goal>single</goal>
</goals>
<configuration>
- <target>
- <taskdef name="collectEvents" classname="org.apache.fop.tools.EventProducerCollectorTask">
- <classpath>
- <path refid="maven.compile.classpath"/>
- <path refid="maven.test.classpath"/>
- </classpath>
- </taskdef>
- <collectEvents destdir="${project.build.testOutputDirectory}">
- <fileset dir="${project.basedir}/src/test/java">
- <include name="**/events/TestEventProducer.java"/>
- </fileset>
- </collectEvents>
- </target>
+ <addMavenDescriptor>false</addMavenDescriptor>
+ <appendAssemblyId>false</appendAssemblyId>
+ <archive>
+ <manifest>
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
+ <mainClass>org.apache.fop.cli.Main</mainClass>
+ </manifest>
+ <manifestEntries>
+ <SpecificationTitle>XSL-FO - Extensible Stylesheet Language</SpecificationTitle>
+ <SpecificationVersion>1.1</SpecificationVersion>
+ <SpecificationVendor>World Wide Web Consortium</SpecificationVendor>
+ <SpecificationURL>http://www.w3.org/TR/xsl</SpecificationURL>
+ </manifestEntries>
+ </archive>
+ <descriptors>
+ <descriptor>src/tools/resources/assembly/assembly.xml</descriptor>
+ </descriptors>
</configuration>
</execution>
</executions>
</plugin>
- <!-- junit testing -->
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>${surefire.plugin.version}</version><!--$NO-MVN-MAN-VER$-->
- <configuration>
- <includes>
- <include>**/*TestCase.java</include>
- </includes>
- <redirectTestOutputToFile>true</redirectTestOutputToFile>
- </configuration>
- </plugin>
- <!-- jar packaging -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>${jar.plugin.version}</version>
- <configuration>
- <excludes>
- <exclude>**/tools/Event*.class</exclude>
- <exclude>**/tools/*.xsl</exclude>
- </excludes>
- </configuration>
- </plugin>
- <!-- code analysis - checkstyle -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>${checkstyle.plugin.version}</version>
- <configuration>
- <configLocation>${project.baseUri}src/tools/resources/checkstyle/checkstyle.xml</configLocation>
- <headerLocation>${project.baseUri}src/tools/resources/checkstyle/LICENSE.txt</headerLocation>
- <includeResources>false</includeResources>
- <includeTestResources>false</includeTestResources>
- <linkXRef>false</linkXRef>
- <logViolationsToConsole>true</logViolationsToConsole>
- <suppressionsLocation>${project.baseUri}src/tools/resources/checkstyle/suppressions.xml</suppressionsLocation>
- <violationSeverity>warning</violationSeverity>
- </configuration>
- </plugin>
- <!-- code analysis - findbugs -->
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>findbugs-maven-plugin</artifactId>
- <version>${findbugs.plugin.version}</version>
- <configuration>
- <excludeFilterFile>src/tools/resources/findbugs/exclusions.xml</excludeFilterFile>
- <effort>Max</effort>
- <threshold>Low</threshold>
- </configuration>
- </plugin>
</plugins>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- </resource>
- <resource>
- <directory>${basedir}/..</directory>
- <includes>
- <include>LICENSE</include>
- <include>NOTICE</include>
- </includes>
- <targetPath>META-INF</targetPath>
- </resource>
- </resources>
- <testResources>
- <testResource>
- <directory>src/test/resources</directory>
- <includes>
- <include>**/*</include>
- </includes>
- </testResource>
- </testResources>
</build>
</project>