Jae Gangemi created MJAR-155:
--------------------------------

             Summary: provide property to override Built-By attribute in the 
manifest
                 Key: MJAR-155
                 URL: https://jira.codehaus.org/browse/MJAR-155
             Project: Maven 2.x 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to