maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: [jar-plugin] properties not properly expanded in manifestEntries
Date Tue, 23 Aug 2011 10:18:46 GMT
Hello,
IHMO not possible currently for the archiver, this need some changes
in maven-archiver component.

Could you open a feature request in
http://jira.codehaus.org/browse/MSHARED/ ? .
This need to add some interpolation in maven-archiver lib.

Thanks
-- 
Olivier Lamy
Talend : http://talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

2011/8/22 Simone Tripodi <simonetripodi@apache.org>:
> Hi all guys,
> in my pom I added the buildnumber-plugin and defined a set of
> properties which contain:
>
>  <properties>
>    ...
>    <maven.build.timestamp.format>yyyy-MM-dd
> HH:mm:ssZ</maven.build.timestamp.format>
>    <implementation.build>r${buildNumber};
> ${maven.build.timestamp}</implementation.build>
>    ...
>  </properties>
>
> Problem is that when filtering any textual resource,
> ${implementation.build} is correctly expanded, i.e. in the README I
> put
>
>   MyCompany ${project.name} (${implementation.build})
>
> it is expanded as
>
>    MyCompany MyProduct (r14934; 2011-08-22 17:23:04+0200)
>
> But when expanding the same property in the jar plugin:
>
>      <plugin>
>        <groupId>org.apache.maven.plugins</groupId>
>        <artifactId>maven-jar-plugin</artifactId>
>        <version>2.3.2</version>
>        <configuration>
>          <archive>
>            <manifest>
>              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
>              <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
>            </manifest>
>            <manifestEntries>
>              <Implementation-Build>${implementation.build}</Implementation-Build>
>              <X-Compile-Source-JDK>${javac.src.version}</X-Compile-Source-JDK>
>              <X-Compile-Target-JDK>${javac.target.version}</X-Compile-Target-JDK>
>            </manifestEntries>
>          </archive>
>        </configuration>
>      </plugin>
>
> The Implementation-Build entry in the MANIFEST.MF is expanded as
>
>    Implementation-Build: r${buildNumber}; 2011-08-22 17:23:04+0200
>
> Does someone have an idea why? Any suggestion?
> Many thanks in advance, all the best!!!
> Simo
>
> http://people.apache.org/~simonetripodi/
> http://www.99soft.org/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message