On 6/18/10 11:54 AM, Antonio Petrelli wrote:
> 2010/6/18 Varwig, Britta <[email protected]>:
>> I think there is a plugin which can copy the actual pom version to a 
>> target\resource-file, but I can not remember the name of plugin.
>> Thanks for your hint.
> 
> It is done by the jar plugin (or other packaging plugins) by
> configuring the manifest part:
> <plugin>
>       <groupId>org.apache.maven.plugins</groupId>
>       <artifactId>maven-jar-plugin</artifactId>
>       <version>2.3</version>
>       <configuration>
>               <archive>
>                               <manifest>
>                                       
> <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
>                               </manifest>
>                               </archive>
>       </configuration>
> </plugin>
> 
> So you can read "Implementation-Version" property it from the manifest itself.
> 
> Antonio
> 
An alternative to this is to use resource filtering to create a
properties (or other text) file in the target directory with
${pom.version} replaced with the version.

Justin

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to