Précédent: Component
Usage scenarios - an overview |
Haut: Background |
The contents of this document are a work in progress
By default Maven expects all Maven plugin artifacts:
To do this, we add the following to our pom.xml under the <project> element.
<?xml version="1.0" encoding="UTF-8"?>
<project>
.
.
.
<build>
<plugins>
<plugin>
<artifactId>maven-plugin-plugin</artifactId>
<configuration>
<goalPrefix>website</goalPrefix>
</configuration>
</plugin>
</plugins>
</build>
</project>
This tells Maven to use website as a plugin prefix or a 'short-hand' to allow invoking available Mojo(s) from our plugin.
<settings>
.
.
.
<pluginGroups>
<pluginGroup>org.codehaus.plexus</pluginGroup>
</pluginGroups>
</settings>
mvn website:monitor
We will come back to configuring the MonitorMojo but before we do that we'll look at setting up unit tests for it.
Précédent: Component
Usage scenarios - an overview |
Haut: Background |