Download Apache Maven Doxia - The Apache Software Foundation!
Transcript
17 Integration With Maven
50
17 Integration With Maven
.......................................................................................................................................
17.1 Integration With Maven
This page presents how to use Doxia 1.1 under Maven 2.0.x and 2.1.x with a Maven reporting plugin.
Its goal is to help the Maven reporting plugin developer to integrate it.
17.1.1 Maven 2.0.x
Doxia 1.0 API is embedded in Maven 2.0.x (see MNG-3402), so your Maven reporting plugin needs
to shade Doxia 1.1 API and Logging to be backward compatible with Maven 2.0.x.
<project>
...
<build>
...
<plugins>
<plugin>
<artifactId>maven-shade-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>${project.build.finalName}</finalName>
<createDependencyReducedPom>false</createDependencyReducedPom>
<keepDependenciesWithProvidedScope>true</keepDependenciesWithProvidedS
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource
</transformers>
<artifactSet>
<includes>
<include>org.apache.maven.doxia:doxia-sink-api</include>
<include>org.apache.maven.doxia:doxia-logging-api</include>
</includes>
</artifactSet>
</configuration>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
...
</project>
©2015, The Apache Software Foundation • ALL RIGHTS RESERVED.