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?

--
Stephen Duncan Jr
www.stephenduncanjr.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to