Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] Issue with maven-dependency-plugin's copy mojo and m2e

Hello,

I'm facing a problem with dependency-plugin copy mojo and m2e (latest Oxygen).

Instead of to copy the artifact's attached resource file (with type and classifier) it is copying the artifact's pom.xml.

This is strange, because it used to work about a year ago, last time I used eclipse ide.

When running out of eclipse or calling the maven launcher it is working as expected.

When I imported the project the dependency-plugin extension was installed.

I'm using this:

                    <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
                        <inherited>true</inherited>
                        <executions>
                            <execution>
                                <id>cp-neon</id>
<phase>validate</phase>
                                <goals>
                                    <goal>copy</goal>
                                </goals>
                                <configuration>
<overWriteIfNewer>true</overWriteIfNewer>
                                    <artifactItems>
                                        <artifactItem>
<groupId>com.c8tech.releng.maven</groupId>
<artifactId>fpom-node-equinox</artifactId>
<version>${com.c8tech.releng.version}</version>
<type>properties</type>
<classifier>equinox_neon</classifier>
<overWrite>true</overWrite>
<outputDirectory>${project.build.directory}</outputDirectory>
<destFileName>dependencies-neon.properties</destFileName>
                                        </artifactItem>
                                    </artifactItems>
                                </configuration>
                            </execution>
                        </executions>
                    </plugin>

Am I missing something ?

thanks,

Cristiano



Back to the top