Maven ant任务通配符排除不起作用

时间:2014-09-15 11:25:36

标签: maven ant maven-ant-tasks

我刚刚开始使用maven ant任务,我今天发现的一个问题是,当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时,狂野的pom工作)

任何建议,谢谢

0 个答案:

没有答案
相关问题