<plugin> <artifactId>docs-maven-plugin</artifactId> <groupId>org.neo4j.build.plugins</groupId> <version>1</version> <!-- the directories below will be added by default, using the config element will _replace_ the defaults. <configuration> <sourceDirectories> <sourceDirectory>${basedir}/src/docs</sourceDirectory> <sourceDirectory>${project.build.directory}/docs</sourceDirectory> </sourceDirectories> </configuration> --> </plugin>
Tip
|
Make sure to add the configuration to the plugin element and not to an execution, unless you want Maven builds and CLI invocations of the plugin to behave differently! |
Note
|
If it’s not added to the project configuration, you need to invoke it like for example mvn org.neo4j.build.plugins:docs-maven-plugin:1:assemble
|
mvn docs:assemble
-
creates the docs.jar
-
attaches the created jar to the project
-
mostly interesting for use in the pom.xml
-
mvn2 and mvn3