This is a very quick tutorial about how to manage the project license with Maven.

Tested with Maven 3.3.

Show the available licenses:

mvn license:license-list

Insert parameters in the configuration of the project (pom.xml):

<properties>
		<license.licenseName>lgpl_v3</license.licenseName>
		<license.organizationName>Luciano caladyon Boschi</license.organizationName>
		<license.inceptionYear>2015</license.inceptionYear>
</properties>

Create the license text file (LICENSE.txt):

license:update-project-license

Insert copyright header in source files:

license:update-file-header

That’s all folks. 🙂

Annunci