Can some one please shine some light on the following scenario..
I have parent pom and 2 modules.
Module A produces a jar file
Module B has Module A's jar as dependency, but it uses the dependency
plugin to unpack it.
If I run mvn package from the parent. Module B's dependency plugin is
always trying to take the jar from the repository, not from Module A's
target
So my build fails with [INFO] Unable to find artifact.
I always have to run mvn install on Module A before using Module B.
Quite tedious..
And I do have the jar listed in Module B as a dependency and then again
in he plugin like so:
<dependency>
<groupId>foo.bar</groupId>
<artifactId>myjar</artifactId>
<version>1.0.0-SNAPSHOT</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.0</version>
<executions>
<execution>
<id>getjar</id>
<phase>generate-sources</phase>
<goals>
<goal>unpack</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>foo.bar</groupId>
<artifactId>myjar</artifactId>
<type>jar</type>
<overWrite>true</overWrite>
<outputDirectory>
target/tmp
</outputDirectory>
</artifactItem>
</artifactItems>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
</configuration>
</execution>
</executions>
</plugin>
Any thoughts?
Thanks!
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]