You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jeremy Boynes (JIRA)" <ji...@codehaus.org> on 2006/05/25 15:57:40 UTC
[jira] Created: (MJAR-42) Add LICENCE and NOTICE files to the jar
Add LICENCE and NOTICE files to the jar
---------------------------------------
Key: MJAR-42
URL: http://jira.codehaus.org/browse/MJAR-42
Project: Maven 2.x Jar Plugin
Type: Improvement
Versions: 2.1
Reporter: Jeremy Boynes
Attachments: mvn-jar-patch.txt
Patch attached that adds project LICENSE and NOTICE files into the output jar. By default it will add LICENSE.txt and NOTICE.txt files from the project's basedir (if they are present) into the META-INF directory of the jar.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
Re: [jira] Created: (MJAR-42) Add LICENCE and NOTICE files to the
jar
Posted by Jeremy Boynes <jb...@apache.org>.
David Jencks wrote:
>
> On Jun 8, 2006, at 12:57 PM, Jeremy Boynes wrote:
>
>> Any comments on this issue or patch? Is it possible to have it applied?
>
>
> Doesn't the lack of this functionality pretty much preclude the use of
> m2 to build jars that can be released by apache? Maybe I don't
> understand the issues but I don't see how we can completely switch
> geronimo to m2 without this.
>
We did it by adding the files to META-INF in src/main/resources but it
was a PITA doing it for each module.
--
Jeremy
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [jira] Created: (MJAR-42) Add LICENCE and NOTICE files to the
jar
Posted by Dennis Lundberg <de...@apache.org>.
David Jencks wrote:
>
> On Jun 8, 2006, at 12:57 PM, Jeremy Boynes wrote:
>
>> Any comments on this issue or patch? Is it possible to have it applied?
>
> Doesn't the lack of this functionality pretty much preclude the use of
> m2 to build jars that can be released by apache? Maybe I don't
> understand the issues but I don't see how we can completely switch
> geronimo to m2 without this.
>
> thanks
> david jencks
This is something that we need over at Jakarta Commons as well, to be
able to switch to Maven 2.
--
Dennis Lundberg
</snip>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [jira] Created: (MJAR-42) Add LICENCE and NOTICE files to the jar
Posted by David Jencks <da...@yahoo.com>.
On Jun 8, 2006, at 12:57 PM, Jeremy Boynes wrote:
> Any comments on this issue or patch? Is it possible to have it
> applied?
Doesn't the lack of this functionality pretty much preclude the use
of m2 to build jars that can be released by apache? Maybe I don't
understand the issues but I don't see how we can completely switch
geronimo to m2 without this.
thanks
david jencks
> Thanks
> --
> Jeremy
>
> Jeremy Boynes (JIRA) wrote:
>> Add LICENCE and NOTICE files to the jar
>> ---------------------------------------
>>
>> Key: MJAR-42
>> URL: http://jira.codehaus.org/browse/MJAR-42
>> Project: Maven 2.x Jar Plugin
>> Type: Improvement
>>
>> Versions: 2.1
>> Reporter: Jeremy Boynes
>> Attachments: mvn-jar-patch.txt
>>
>> Patch attached that adds project LICENSE and NOTICE files into the
>> output jar. By default it will add LICENSE.txt and NOTICE.txt files
>> from the project's basedir (if they are present) into the META-INF
>> directory of the jar.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [jira] Created: (MJAR-42) Add LICENCE and NOTICE files to the
jar
Posted by Brett Porter <br...@apache.org>.
Isn't a better workaround just to use the resources mechanism until
something more flexible is in place?
Jeremy Boynes wrote:
> Any comments on this issue or patch? Is it possible to have it applied?
> Thanks
> --
> Jeremy
>
> Jeremy Boynes (JIRA) wrote:
>> Add LICENCE and NOTICE files to the jar
>> ---------------------------------------
>>
>> Key: MJAR-42
>> URL: http://jira.codehaus.org/browse/MJAR-42
>> Project: Maven 2.x Jar Plugin
>> Type: Improvement
>>
>> Versions: 2.1
>> Reporter: Jeremy Boynes
>> Attachments: mvn-jar-patch.txt
>>
>> Patch attached that adds project LICENSE and NOTICE files into the
>> output jar. By default it will add LICENSE.txt and NOTICE.txt files
>> from the project's basedir (if they are present) into the META-INF
>> directory of the jar.
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
> For additional commands, e-mail: dev-help@maven.apache.org
>
--
Brett Porter <br...@apache.org>
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
Re: [jira] Created: (MJAR-42) Add LICENCE and NOTICE files to the
jar
Posted by Jeremy Boynes <jb...@apache.org>.
Any comments on this issue or patch? Is it possible to have it applied?
Thanks
--
Jeremy
Jeremy Boynes (JIRA) wrote:
> Add LICENCE and NOTICE files to the jar
> ---------------------------------------
>
> Key: MJAR-42
> URL: http://jira.codehaus.org/browse/MJAR-42
> Project: Maven 2.x Jar Plugin
> Type: Improvement
>
> Versions: 2.1
> Reporter: Jeremy Boynes
> Attachments: mvn-jar-patch.txt
>
> Patch attached that adds project LICENSE and NOTICE files into the
> output jar. By default it will add LICENSE.txt and NOTICE.txt files
> from the project's basedir (if they are present) into the META-INF
> directory of the jar.
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MJAR-42) Add LICENCE and NOTICE files to the jar
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJAR-42?page=comments#action_67235 ]
Brett Porter commented on MJAR-42:
----------------------------------
- default values should be given with default-value instead of an initialising value (the basedir won't be correctly aligned otherwise)
- this technique won't work especially well with multiple modules projects
- I'm not sure we want the Apache-specific NOTICE file in here. Perhaps it should be a part of the license specification.
Isn't a better workaround just to use the <resources> mechanism for this?
> Add LICENCE and NOTICE files to the jar
> ---------------------------------------
>
> Key: MJAR-42
> URL: http://jira.codehaus.org/browse/MJAR-42
> Project: Maven 2.x Jar Plugin
> Type: Improvement
> Versions: 2.1
> Reporter: Jeremy Boynes
> Attachments: mvn-jar-patch.txt
>
>
> Patch attached that adds project LICENSE and NOTICE files into the output jar. By default it will add LICENSE.txt and NOTICE.txt files from the project's basedir (if they are present) into the META-INF directory of the jar.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (MJAR-42) Add LICENCE and NOTICE files to the jar
Posted by "Jochen Wiedmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJAR-42?page=comments#action_72130 ]
Jochen Wiedmann commented on MJAR-42:
-------------------------------------
I'd like to recall that Maven is an Apache project. In other words, if there is something like "Apache-specific", then the "Maven standard" should at least make it possible to follow.
Additionally, I'd like to point out a problem with Bretts suggestion to use the <resource> mechanism: If I do specify a resource, which lives in the base directory, then I'll encounter problems while building a source jar: The maven-source-plugin will include my whole project into the jar file. (This may be a bug in the maven-source-plugin, I am unsure what to think of it.)
> Add LICENCE and NOTICE files to the jar
> ---------------------------------------
>
> Key: MJAR-42
> URL: http://jira.codehaus.org/browse/MJAR-42
> Project: Maven 2.x Jar Plugin
> Issue Type: Improvement
> Affects Versions: 2.1
> Reporter: Jeremy Boynes
> Attachments: mvn-jar-patch.txt
>
>
> Patch attached that adds project LICENSE and NOTICE files into the output jar. By default it will add LICENSE.txt and NOTICE.txt files from the project's basedir (if they are present) into the META-INF directory of the jar.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MJAR-42) Add LICENCE and NOTICE files to the jar
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJAR-42?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy closed MJAR-42.
----------------------------
Resolution: Won't Fix
This is now dealt with by the remote resources plugin.
> Add LICENCE and NOTICE files to the jar
> ---------------------------------------
>
> Key: MJAR-42
> URL: http://jira.codehaus.org/browse/MJAR-42
> Project: Maven 2.x Jar Plugin
> Issue Type: Improvement
> Affects Versions: 2.1
> Reporter: Jeremy Boynes
> Attachments: mvn-jar-patch.txt
>
>
> Patch attached that adds project LICENSE and NOTICE files into the output jar. By default it will add LICENSE.txt and NOTICE.txt files from the project's basedir (if they are present) into the META-INF directory of the jar.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MJAR-42) Add LICENCE and NOTICE files to the jar
Posted by "Mike Perham (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MJAR-42?page=comments#action_68037 ]
Mike Perham commented on MJAR-42:
---------------------------------
The license and notice files in the root of a project isn't a Maven standard (is it?) and plus I don't think it's a great idea anyways as it becomes repetitive in systems with large numbers of modules, all under the same license.
I think a better idea is to add an element to the MANIFEST.MF with the value(s) of project.licenses.license:
License-1-Name: Apache License, 2.0
License-1-Url: http://apache.org/APL-2.0.txt
License-2-Name: GNU Lesser General Public License, 1.1
License-2-Url: http://gnu.org/LGPL-1.1.txt
This way all modules can inherit their licenses via parent and have the manifest populated automatically.
> Add LICENCE and NOTICE files to the jar
> ---------------------------------------
>
> Key: MJAR-42
> URL: http://jira.codehaus.org/browse/MJAR-42
> Project: Maven 2.x Jar Plugin
> Type: Improvement
> Versions: 2.1
> Reporter: Jeremy Boynes
> Attachments: mvn-jar-patch.txt
>
>
> Patch attached that adds project LICENSE and NOTICE files into the output jar. By default it will add LICENSE.txt and NOTICE.txt files from the project's basedir (if they are present) into the META-INF directory of the jar.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira