Tuesday, 15 June 2010

licensing - generate lincense report using maven -


I am trying to create a license file using a plugin from Maven, but it does not work, it's mine Part is palm, no suggestion.

  & lt; Reporting & gt; & Lt; OutputDirectory & gt; Target / site & lt; / OutputDirectory & gt; & Lt; Plugins & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven-site-plugin & lt; / ArtifactId> & Lt; Configuration & gt; & Lt; ReportPlugins & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven- Project information-reports-plugin & lt; / ArtifactId> & Lt; Version & gt; 2.8 & lt; / Edition & gt; & Lt; Reports & gt; & Lt; Report & gt; License & lt; / Report & gt; & Lt; / Reports & gt; & Lt; / Plugin & gt; & Lt; / ReportPlugins & gt; & Lt; / Configuration & gt; & Lt; / Plugin & gt; & Lt; / Plugins & gt; & Lt; / Reporting & gt; Try a minimal approach  reporting>  

Add code> maven-project-info-report-plugin to your pom.xml :

  ... & lt; Reporting & gt; & Lt; OutputDirectory & gt; Target / site & lt; / OutputDirectory & gt; & Lt; Plugins & gt; & Lt; Plugin & gt; & Lt; Group & gt; Org.apache.maven.plugins & lt; / Group & gt; & Lt; ArtifactId & gt; Maven- Project information-reports-plugin & lt; / ArtifactId> & Lt; Version & gt; 2.6 & lt; / Edition & gt; & Lt; ReportSets & gt; & Lt; ReportSet & gt; & Lt; Reports & gt; & Lt; Report & gt; License & lt; / Report & gt; & Lt; / Reports & gt; & Lt; / ReportSet> & Lt; / ReportSets & gt; & Lt; / Plugin & gt; & Lt; / Plugins & gt; & Lt; / Reporting & gt; ...  

look at the mvn clean site and target / site / license.html .


No comments:

Post a Comment