You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Coleman <jo...@eurobase.com> on 2008/12/10 12:20:40 UTC
Dependency version in manifest
Is there a way to inject the dependency version info of a project into
the JARs manifest?
TIA
John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Dependency version in manifest
Posted by Brett Porter <br...@apache.org>.
the POM (both in XML and properties form) are already included in the
JAR by default, so you can retrieve the version from those.
Also see: http://maven.apache.org/guides/mini/guide-manifest.html for
how to add the version to the manifest itself.
- Brett
On 11/12/2008, at 4:10 AM, John Coleman wrote:
> I didn't want a classpath entry, so I decided to include the pom in
> the
> JAR as a workaround.
>
> Thanks,
> John
>
>
>> -----Original Message-----
>> From: Richard Chamberlain [mailto:richard.chamberlain@caplin.com]
>> Sent: 10 December 2008 13:36
>> To: Maven Users List
>> Subject: RE: Dependency version in manifest
>>
>> You can specify the dependencies on the classpath of a manifest:
>>
>> <plugins>
>> <plugin>
>> <artifactId>maven-jar-plugin</artifactId>
>> <configuration>
>> <archive>
>> <manifest>
>> <addClasspath>true</addClasspath>
>> </manifest>
>> </archive>
>> </configuration>
>> </plugin>
>> <plugin>
>>
>> See the Jar Plugin documentation:
>> http://maven.apache.org/plugins/maven-jar-plugin/
>>
>> Is that what you were after?
>>
>> Regards,
>>
>> Richard
>>
>> -----Original Message-----
>> From: John Coleman [mailto:john.coleman@eurobase.com]
>> Sent: 10 December 2008 11:21
>> To: Maven Users List
>> Subject: Dependency version in manifest
>>
>> Is there a way to inject the dependency version info of a
>> project into the JARs manifest?
>>
>> TIA
>> John
>>
>> ---------------------------------------------------------------------
>> 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
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Brett Porter
brett@apache.org
http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Dependency version in manifest
Posted by John Coleman <jo...@eurobase.com>.
I didn't want a classpath entry, so I decided to include the pom in the
JAR as a workaround.
Thanks,
John
> -----Original Message-----
> From: Richard Chamberlain [mailto:richard.chamberlain@caplin.com]
> Sent: 10 December 2008 13:36
> To: Maven Users List
> Subject: RE: Dependency version in manifest
>
> You can specify the dependencies on the classpath of a manifest:
>
> <plugins>
> <plugin>
> <artifactId>maven-jar-plugin</artifactId>
> <configuration>
> <archive>
> <manifest>
> <addClasspath>true</addClasspath>
> </manifest>
> </archive>
> </configuration>
> </plugin>
> <plugin>
>
> See the Jar Plugin documentation:
> http://maven.apache.org/plugins/maven-jar-plugin/
>
> Is that what you were after?
>
> Regards,
>
> Richard
>
> -----Original Message-----
> From: John Coleman [mailto:john.coleman@eurobase.com]
> Sent: 10 December 2008 11:21
> To: Maven Users List
> Subject: Dependency version in manifest
>
> Is there a way to inject the dependency version info of a
> project into the JARs manifest?
>
> TIA
> John
>
> ---------------------------------------------------------------------
> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Dependency version in manifest
Posted by Richard Chamberlain <ri...@caplin.com>.
You can specify the dependencies on the classpath of a manifest:
<plugins>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
See the Jar Plugin documentation:
http://maven.apache.org/plugins/maven-jar-plugin/
Is that what you were after?
Regards,
Richard
-----Original Message-----
From: John Coleman [mailto:john.coleman@eurobase.com]
Sent: 10 December 2008 11:21
To: Maven Users List
Subject: Dependency version in manifest
Is there a way to inject the dependency version info of a project into
the JARs manifest?
TIA
John
---------------------------------------------------------------------
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