You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Rotick <pc...@gmail.com> on 2010/11/05 14:23:56 UTC

maven-dependency-plugin still misbehaving

I am experiencing the same problem as documented in
MDEP-257<http://jira.codehaus.org/browse/MDEP-257>whereby the
includedClassifiers is ignored. I am having trouble making the
suggested fix work.

I have added a dependency so

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <executions>
                    <execution>
                        <id>unpack-runbeans</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>unpack-dependencies</goal>
                        </goals>
                        <configuration>

<includeClassifiers>runbeans</includeClassifiers>
                            <includeTypes>tar.gz</includeTypes>

<outputDirectory>target/copied/runbeans</outputDirectory>
                            <stripVersion>true</stripVersion>
                            <excludeTransitive>false</excludeTransitive>
                        </configuration>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.shared</groupId>

<artifactId>maven-common-artifact-filters</artifactId>
                        <version>1.2</version>
                    </dependency>
                </dependencies>
            </plugin>

but this results in

ClassNotFoundException:
org.apache.maven.shared.artifact.filter.collection.TransitivityFilter

in both Maven 2.2.1 and 3.0.

Please couild someone give me a hint as to what I do next. Also, is there a
real fix for this or will I have to live with the workaround.

Many thanks.