Maven ant タスクを使い始めたばかりですが、今日見つけた問題の 1 つは、pom に野生の除外が含まれている場合、アーティファクトが除外されないように見えることでした。
以下の私のスクリプトスニペット:
蟻:
<artifact:dependencies filesetId="ls.jar.all">
<pom file="ls-jar-all.pom.xml" />
</artifact:dependencies>
Ls-jar-all.pom.xml:
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-bundle</artifactId>
<version>2.1</version>
<exclusions>
<exclusion>
<groupId>org.apache.abdera</groupId>
<artifactId>*</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.geronimo.specs</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
</dependency>
ワイルドカードを個々の artifactIds に変更すると、除外が機能します。(mavenを使用するとワイルドワードポンが機能します)
任意の提案、ありがとう