Hi,

I'm trying to use maven-dependency-plugin with <excludes> tag in my
configuration part:
 <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>get-resources</id>
                        <phase>process-resources</phase>
                        <goals>
                            <goal>copy</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>my.company.groupid</groupId>
                                    <artifactId>myartifact</artifactId>
                                    <version>${my.version}</version>
                                    <excludes>**/*.class</excludes>
                                    <classifier>foo</classifier>
                                    <destFileName>my-foo.zip</destFileName>
                                    <type>zip</type>
                                </artifactItem>
...
</plugin>
But, I get this error:
[INFO] Using default encoding to copy filtered resources.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-4



Cause: Cannot find setter nor field in
org.apache.maven.plugin.dependency.fromConfiguration.ArtifactItem for
'excludes'


Looking at javadoc and sources of maven-dependency-plugin I can see
setExcludes(String excludes).
In which version does "excludes" cofniguration is available and how
can I get it?

Thanks,
Erez.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to