Goals available for this plugin:
Goal | Description |
---|---|
license:add-third-party | The gola to generate the third-party file. This file contains for all dependencies of the project a line giving the license used by the dependency. It will also copy it in the class-path (says add the generated directory as a resource of the build). |
license:aggregate-add-third-party | This aggregator goal (will be executed only once and only on pom
projects) executed the add-third-party on all his
modules (in a parellel build cycle) then aggreates all the
third-party files in final one in the pom project. |
license:comment-style-list | Displays all the available comment style to box file headers. |
license:help | Display help information on maven-license-plugin. Call mvn license:help -Ddetail=true -Dgoal=<goal-name>to display parameter details. |
license:license-list | Display all available licenses. |
license:update-file-header | The goal to update (or add) the header on project source files.
This goal replace the update-header goal which
can not deal with Copyright.
This goal use a specific project file descriptor
project.xml to describe all files to update for a
whole project. |
license:update-project-license | Updates (or creates) the main project license file according to the
given license defines as licenseName .
Can also generate a bundled license file (to avoid collision
names in class-path). This file is by default generated in
META-INF class-path directory .
Note: this goal replace add-license one
(which does not use license project descriptor). |
The following specifies the minimum requirements to run this Maven plugin:
Maven | 2.0 |
JDK | 1.1 |
Memory | No minimum requirement. |
Disk Space | No minimum requirement. |
You should specify the version in your project's plugin configuration:
<project> ... <build> <!-- To define the plugin version in your parent POM --> <pluginManagement> <plugins> <plugin> <groupId>org.nuiton</groupId> <artifactId>maven-license-plugin</artifactId> <version>3.0</version> </plugin> ... </plugins> </pluginManagement> <!-- To use the plugin goals in your POM or parent POM --> <plugins> <plugin> <groupId>org.nuiton</groupId> <artifactId>maven-license-plugin</artifactId> <version>3.0</version> </plugin> ... </plugins> </build> ... </project>
For more information, see "Guide to Configuring Plug-ins"