This is my second question in StackOverflow. First one was a bit long. I hope this time I can cut right to the point :)
Say Eclipse plugin project P depends on plugin R via Require-Bundle. So we have 2 projects in our Eclipse workspace.
And again, Eclipse plugin project P depends on a regular A.jar via Bundle-Classpath.
Finally, A.jar is in a maven repo with its POM and depends on B.jar.
I need to copy A.jar and B.jar to the local lib folder of P, but NOT R.jar.
In POM files GroupId of P and R is G. GroupIds of A and B is different but NOT G.
I don't understand why but copy-dependencies goal is searching for R.jar, fails when it cannot find it and does not copy A.jar or B.jar. I try to use excludeGroupIds but cannot succeed:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<excludeGroupIds>G</excludeGroupIds>
<outputDirectory>lib</outputDirectory>
<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
<stripVersion>true</stripVersion>
</configuration>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>validate</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
</execution>
</executions>
</plugin>
<dependencies>
<dependency>
<groupId>X</groupId>
<artifactId>A</artifactId>
<version>SNAPSHOT</version>
</dependency>
</dependencies>
Is there a way to exclude eclipse-plugin dependencies?