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-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to