これは、StackOverflow での 2 番目の質問です。1枚目はちょっと長かった。今回は要点を切り詰めることができれば幸いです:)
Eclipse プラグイン プロジェクト P が Require-Bundle を介してプラグイン R に依存しているとします。したがって、Eclipse ワークスペースには 2 つのプロジェクトがあります。
また、Eclipse プラグイン プロジェクト P は、Bundle-Classpath を介して通常の A.jar に依存しています。
最後に、A.jar はその POM を含む Maven リポジトリーにあり、B.jar に依存しています。
A.jar と B.jar を P のローカル lib フォルダーにコピーする必要がありますが、R.jar はコピーしません。
POM ファイルでは、P と R の GroupId は G です。A と B の GroupId は異なりますが、G ではありません。
理由はわかりませんが、copy-dependencies の目標は R.jar を検索し、見つからない場合は失敗し、A.jar または B.jar をコピーしません。excludeGroupIds を使用しようとしましたが、成功しません:
<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>
Eclipse プラグインの依存関係を除外する方法はありますか?