To rephrase my question most simply, how can I configure the plugin to use a license resolver that can use a file other than license.text?

On 08/23/2011 12:13 PM, Farrukh Najmi wrote:
Hi Tony,

Thanks for the help but it did not work as I expected. It just generated a a file under my project with a directory named "file:" with somedir/license.html under it. The content of the file was based on content of /somdir2/license/license.txt.

Here is the config I used... I am not getting how this plugin is supposed to be used and therefor quite confused.

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
<configuration>
<verbose>false</verbose>
<addSvnKeyWords>false</addSvnKeyWords>
<licenseName>my_license</licenseName>
<licenseFile>file:///somedir/license.html</licenseFile>
<licenseResolver>file:///somdir2/license</licenseResolver>
<missingFile>${basedir}/../src/license/THIRD-PARTY.properties</missingFile>
<useMissingFile>true</useMissingFile>
<generateBundle>true</generateBundle>
<encoding>UTF-8</encoding>
</configuration>
</plugin>

Note that I had tried to add my project's proprietary license using the example at:

http://mojo.codehaus.org/license-maven-plugin/examples/example-add-license.html

This example doe snot show how to reference a license.html file somewhere outside the project tree. This is probably the center of my confusion. Is this doable for the config to reference a license.html file outside the project tree?



On 08/23/2011 11:53 AM, Tony Chemit wrote:
On Tue, 23 Aug 2011 11:44:51 -0400
Farrukh Najmi<farr...@wellfleetsoftware.com>  wrote:

Hi Guys,

I am having trouble getting the license-maven-plugin
<http://mojo.codehaus.org/license-maven-plugin>  configured so that it
can bundle a<some directory>/lincense.html with the output jar of
the project.

The goal license:update-project-license
<http://mojo.codehaus.org/license-maven-plugin/update-project-license-mojo.html>
of the license-maven-plugin
<http://mojo.codehaus.org/license-maven-plugin>   seems to only deal
with a license.txt file when in my case the file is an html file.
What do I need to change to get the desired effect?

Thank you for your help.

Using the parameter licenseFile [1] can help you I think :)

<configuration>
<licenseFile>license.html</licenseFile>
</configuration>

[1]
http://mojo.codehaus.org/license-maven-plugin/update-project-license-mojo.html#licenseFile






--
Regards,
Farrukh Najmi

Web: http://www.wellfleetsoftware.com



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to