Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Excerpt

Handling of project and 3rd party licenses


You can use the Maven-License-Plugin to help you handle licenses consistently in your project. The plugin provides functionlity for:

Example configuration

Code Block
<plugins>
  <plugin>
    <groupId>org.nuiton</groupId>
      <artifactId>maven-license-plugin</artifactId>
      <version>2.4</version>
      <configuration>
        <verbose>false</verbose>
        <addSvnKeyWords>true</addSvnKeyWords>
      </configuration>
    <executions>
      <execution>
        <id>first</id>
        <goals>
          <goal>update-file-header</goal>
        </goals>
        <phase>process-sources</phase>
        <configuration>
        <licenseName>gpl_v3</licenseName>
          <roots>
             <root>src/main/java</root>
             <root>src/test</root>
          </roots>
        </configuration>
      </execution>
    </executions>
  </plugin>
</plugins>