This will do:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
-Tim
Denis Bessmertniy schrieb:
I have a promlem with this.
Now I use <addClasspath/> and maven adds all jars enumeration to
manifest.mf this way,
for example, Class-Path: log4j-1.0.jar
But my in lib dir and I need to have this in manifest lib/log4j-1.0.jar.
How I may have it?
-----Original Message-----
From: Tim Kettler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 3:50 PM
To: Maven Users List
Subject: Re: Generating manifest file
What do you expect to happen with the specified artifact names?
The extra entries defined in the <manifestEntries/> tag are copied verbatim
(with expressions like ${project.version} interpolated) to the manifest. So
if you specify a artifact name (groupId:artifactId:version for example) it
will appear as is in the manifest.
Why do you need to explicitly specify the classpath? Is <addClasspath/> not
working for you?
It would be better if you would describe the problem you want to solve, then
someone can propose a solution.
-Tim
Denis Bessmertniy schrieb:
<archive>
<manifestEntries>
<Class-Path>....here I want
-----Original Message-----
From: Tim Kettler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 2:55 PM
To: Maven Users List
Subject: Re: Generating manifest file
What exactly do you mean? Where do you want to specify artifact names?
Denis Bessmertniy schrieb:
And can I specify someway not jar file names, but artifact names?
-----Original Message-----
From: Denis Bessmertniy
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 2:16 PM
To: 'Maven Users List'
Subject: RE: Generating manifest file
Why it is not well documented. I can see only archive option. But
what does it mean for me, if I'm newbie?
-----Original Message-----
From: Tim Kettler [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 25, 2007 2:10 PM
To: Maven Users List
Subject: Re: Generating manifest file
Hi,
the ejb-plugin accepts the same <archive/> configuration as the
jar-plugin:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ejb-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
-Tim
Denis Bessmertniy schrieb:
Hi folks,
I have artifact with packaging <packaging>ejb</packaging>.
I need to add Class-path entries to generated manifest.mf file.
How I may do it?
As I understand I may do it with maven-jar-plugin, but I have ejb
packaging.
May you help me with example, please.
Thnx)
--------------------------------------------------------------------
- To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]