You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Daniel Kulp (JIRA)" <ji...@codehaus.org> on 2007/02/16 02:06:04 UTC

[jira] Commented: (MRRESOURCES-12) It should be possible to use something other than "project.name" for the header

    [ http://jira.codehaus.org/browse/MRRESOURCES-12?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_87671 ] 

Daniel Kulp commented on MRRESOURCES-12:
----------------------------------------


Forgot to mention, this is technically a problem in the apache-jar-resource-bundle, not maven-remote-resources-plugin.   Just not sure where to log the bug.

The fix is to change the template to allow an optional project_name property:
===================================================================
--- src/main/resources/META-INF/NOTICE.vm       (revision 507977)
+++ src/main/resources/META-INF/NOTICE.vm       (working copy)
@@ -1,9 +1,11 @@
 // ------------------------------------------------------------------
 // NOTICE file corresponding to the section 4d of The Apache License,
-// Version 2.0, in this case for ${project.name}
+// Version 2.0, in this case for #if ($project_name)$project_name#else${project.name}#end
+
 // ------------------------------------------------------------------

-${project.name}
+#if ($project_name)$project_name#else${project.name}#end
+
 Copyright ${projectTimespan} The Apache Software Foundation

 This product includes software developed at


> It should be possible to use something other than  "project.name" for the header
> --------------------------------------------------------------------------------
>
>                 Key: MRRESOURCES-12
>                 URL: http://jira.codehaus.org/browse/MRRESOURCES-12
>             Project: Maven 2.x Remote Resources Plugin
>          Issue Type: Improvement
>    Affects Versions: 1.0-alpha-1, 1.0-alpha-2
>            Reporter: Daniel Kulp
>         Assigned To: Daniel Kulp
>
> "Adam Lally" <al...@alum.rpi.edu>:
> However, is there a way to override the name of
> the project that is written to the NOTICES and DISCLAIMER files?
> Currently each jar file uses its own artifact name (e.g. "Apache UIMA
> Java Framework Core") when really we want just the name of our project
> ("Apache UIMA").

-- 
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