This is odd... I checked both the sources of jar and assembly plugin, and found that both are using getArtifacts().getFile() which should point to the same file.
What version of the plugins are you using? Stephen Duncan wrote:
I noticed this when a coworker was having touble with the Netbeans IDE plugin. In order to run a project, the Netbeans plugin sets up custom profile that's sets the runtime information in the manifest (classpath, main class, etc.) & also runs an assembly to put the dependent jars in the right place, etc. The problem is with SNAPSHOT dependencies: the <addClasspath>true</addClasspath> option in the jar plugin causes entries such as myutility-1.0-SNAPSHOT.jar to be added to the manifest. However, the assembly plugin resolves these dependencies as myutility-1.0-20060212.050059-12.jar. This mismatch leads to NoClassDefFound errors, of course. My temporary workaround was to use the dependency plugin to copy the dependencies, which does use the SNAPSHOT version (this is just lucky that it works though, due to: http://jira.codehaus.org/browse/MDEP-5 ) Is there another option? Should this be considered a bug in the assembly plugin?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
