[ http://jira.codehaus.org/browse/MDEP-23?page=comments#action_74535 ] Brian Fox commented on MDEP-23: -------------------------------
Can you paste your pom for this or even better, a test project that can reproduce it? I'm not sure I fully see what is happening. > unpack-dependencies unpacks the wrong dependencies > -------------------------------------------------- > > Key: MDEP-23 > URL: http://jira.codehaus.org/browse/MDEP-23 > Project: Maven 2.x Dependency Plugin > Issue Type: Bug > Affects Versions: 1.0 > Environment: WinXP Pro SP2 > Mustang b82 > NetBeans 5.5 > Reporter: Alex Lam S.L. > Priority: Blocker > > A parent POM has 3 modules - core, example. > dependency-maven-plugin with unpack-dependencies is declared with > outputDirectory set to ${project.build.outputDirectory}. > (antrun [echo]s are introduced to inspect the project variables here for > debugging purpose.) > The 1st module (core) builds with the correct dependencies (jdom) unpacked: > [INFO]Executing tasks > [echo] Runtime Dependencies: > [echo] [Dependency {groupId=jdom, artifactId=jdom, version=1.0, > type=jar}] > [echo] Compile Dependencies: > [echo] [Dependency {groupId=jdom, artifactId=jdom, version=1.0, > type=jar}] > [INFO]Executed tasks > [dependency:unpack-dependencies {execution: unpack-dependencies}] > [INFO]Expanding: F:\maven2-plugins\jdom\jdom\1.0\jdom-1.0.jar into > F:\projects\NapkinLAF\napkin\core\target\classes > The 2nd module (example) builds with the wrong dependencies (junit, jdom) > instead of the correct ones (core, jdom) unpacked: > [INFO]Executing tasks > [echo] Runtime Dependencies: > [echo] [Dependency {groupId=net.sourceforge.napkinlaf, > artifactId=napkinlaf, version=1.1-SNAPSHOT, type=jar}, Dependency > {groupId=jdom, artifactId=jdom, version=1.0, type=jar}] > [echo] Compile Dependencies: > [echo] [Dependency {groupId=net.sourceforge.napkinlaf, > artifactId=napkinlaf, version=1.1-SNAPSHOT, type=jar}, Dependency > {groupId=jdom, artifactId=jdom, version=1.0, type=jar}] > [INFO]Executed tasks > [dependency:unpack-dependencies {execution: unpack-dependencies}] > [INFO]Expanding: F:\maven2-plugins\junit\junit\3.8.1\junit-3.8.1.jar into > F:\projects\NapkinLAF\napkin\example\target\classes > [INFO]Expanding: F:\maven2-plugins\jdom\jdom\1.0\jdom-1.0.jar into > F:\projects\NapkinLAF\napkin\example\target\classes -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
