1) Add LICENSE.txt to the root directory of your project...
%YOUR_PROJECT% pom.xml
LICENSE.txt
src site ...
2) Copy your license into LICENSE.txt
3) Include the <licenses> element in the pom.xml...
%YOUR_PROJECT%\pom.xml:
<project>
...
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>LICENSE.txt</url>
</license>
</licenses>
</project>
4) Inculde project ${reports} in site.xml
%YOUR_PROJECT%\src\site\site.xml:
<project>
...
${reports}
</body>
</project>
4 comments:
Three years after you posted this, let me say - thanks! This was useful information that I couldn't find elsewhere. I happened on your blog based on a Google search for "maven2 license file site.xml".
-Tim
Same here, This was very useful info. Thanks again.
Awesome, finally FINALLY I found it! Thank you very much.
Still useful nearly 6 years later!
Thanks,
- Greg
Post a Comment