[ 
https://jira.codehaus.org/browse/MJAR-155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Osipov closed MJAR-155.
-------------------------------

    Resolution: Not A Bug

You cannot always overrid with 
[{{-Duser.name=<any>}}|http://maven.apache.org/shared/maven-archiver/examples/manifest.html].

> provide property to override Built-By attribute in the manifest
> ---------------------------------------------------------------
>
>                 Key: MJAR-155
>                 URL: https://jira.codehaus.org/browse/MJAR-155
>             Project: Maven JAR Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.4
>            Reporter: Jae Gangemi
>            Priority: Minor
>
> i would like to override the Built-By attribute that gets injected into my 
> manifest when the jar is packaged.
> according to this page: 
>   http://maven.apache.org/maven-1.x/plugins/jar/properties.html
> the user.name property is used as a default value but i am unable to override 
> that property anywhere in my pom.
> instead, i have to do this:
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-jar-plugin</artifactId>
>         <version>2.4</version>
>         <configuration>
>           <archive>
>             <manifestFile>${basedir}/META-INF/MANIFEST.MF</manifestFile>
>             <manifestEntries>
>               <Built-By>${jar.packaged.by}</Built-By>
>             </manifestEntries>
>           </archive>
>         </configuration>
>       </plugin>
> inside the project's pom so i can override the value (jar.packaged.by is 
> defined in my setting.xml file) which is rather annoying b/c i need to make 
> that change for multiple projects (they are all independent of each other so 
> i don't want a parent pom then can inherit from).
> it would be great if there was a simple property exposed instead of having to 
> alter the plugin configuration.
> thanks!!



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Reply via email to