Skip to content

Instantly share code, notes, and snippets.

@AndreasDickow
Last active April 3, 2019 15:21
Show Gist options
  • Save AndreasDickow/f6c62248e232a1da0124aab68e17bbd3 to your computer and use it in GitHub Desktop.
Save AndreasDickow/f6c62248e232a1da0124aab68e17bbd3 to your computer and use it in GitHub Desktop.
Solves dependency issues when adding apache fop to maven project

If you get errors like serializer.jar (No such file or directory) or xbean.jar (No such file or directory) when running a maven project with Apache FOP Usage , then try to change

<dependency>
            <groupId>org.apache.xmlgraphics</groupId>
            <artifactId>fop</artifactId>
            <version>2.3</version>
</dependency>

to

<dependency>
            <groupId>org.apache.xmlgraphics</groupId>
            <artifactId>fop</artifactId>
            <version>2.3</version>
            <exclusions>
                <exclusion> 
                  <groupId>xalan</groupId>
                  <artifactId>serializer</artifactId>          
                </exclusion>
                 <exclusion>  
                  <groupId>xalan</groupId>
                  <artifactId>xalan</artifactId>          
                </exclusion>
              </exclusions> 
</dependency>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment