Hi Tom,
Only dependencies with scope "runtime" are added to the classpath.
Cheers
Jo
On 5/11/07, Tom Lambrechts <[EMAIL PROTECTED]> wrote:
When enabling addClasspath the manifest does not contain classpath.
Neither for runtime or compile scope:
Main class and other parameters do work.
Manifest:
---------
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: TOLA
Build-Jdk: 1.5.0_07
POM:
--------
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
</manifest>
</archive>
</configuration>
</plugin>
Log
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-jar-plugin:2.1:jar' -->
[DEBUG] (f) addClasspath = true
[DEBUG] (s) manifest =
[EMAIL PROTECTED]
[DEBUG] (f) archive =
[EMAIL PROTECTED]
[DEBUG] (f) classesDirectory =
D:\Data\workspace_maven\util.telindus.be\target\classes
[DEBUG] (f) finalName = be.telindus.util-1.0-SNAPSHOT
[DEBUG] (f) forceCreation = false
[DEBUG] (f) outputDirectory =
D:\Data\workspace_maven\util.telindus.be\target
[DEBUG] (f) project = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [jar:jar]
[DEBUG] isUp2date: false (Input file
D:\Data\workspace_maven\util.telindus.be\pom.properties is newer.)
[INFO] Building jar:
D:\Data\workspace_maven\util.telindus.be\target\be.telindus.util-1.0-SNA
PSHOT.jar
[DEBUG] adding directory META-INF/
[DEBUG] adding entry META-INF/MANIFEST.MF
[DEBUG] adding directory be/
ETC........