The goals for the MLVP are bound to their respective phases in the build lifecycle.
The default binding is to run the MLVP at the prepare-package phase. If you like to change this you have to make an appropriate configuration.
<project>
...
<build>
<plugins>
<plugin>
<groupId>com.soebes.maven.plugins.mlv</groupId>
<artifactId>maven-license-verifier-plugin</artifactId>
<version>0.4</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>verify</goal>
</goals>
<execution>
<executions>
</plugin>
</plugins>
</build>
...
</project>The most important thing you have to do is to create a licenses.xml file which contains the different categories. The default location where the MLVP will check if a licenses.xml exists is in the src/licenses folder. It can be configured if you need to.
<project>
...
<build>
<plugins>
<plugin>
<groupId>com.soebes.maven.plugins.mlv</groupId>
<artifactId>maven-license-verifier-plugin</artifactId>
<version>0.4</version>
<configuration>
<!-- Optional you can put your configurations here -->
</configuration>
</plugin>
</plugins>
</build>
...
</project>