Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] M2E problems with maven-dependency-plugin copy goal

Dependency plugin is not supported by m2e. Just forcing m2e to run the
plugin during incremental build is not enough to make it supported (as
you've found out). Somebody has to understand what exact behaviour you
want, which is trickier than you might expect, and make necessary
changes to the dependency plugin or write m2e project configurator to
make this work.

--
Regards,
Igor

On 12-12-06 4:10 AM, Flavio Campana wrote:
Hello everyone,
i'm having some trouble with m2e and maven-dependency-plugin and its
copy goal.
i have configured the maven plugin to copy the jars needed for an applet
in the correct directory,
and it works wonders from the command line:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
                 <version>2.4</version>
                 <executions>
                     <execution>
                         <id>copy-dependencies</id>
<phase>generate-resources</phase>
                         <goals>
                             <goal>copy</goal>
                         </goals>
                         <configuration>
                             <artifactItems>
                                 <!-- CUT -->
                             </artifactItems>
<outputDirectory>${project.build.directory}/TestProject/applets</outputDirectory>

<overWriteReleases>true</overWriteReleases>
<overWriteSnapshots>true</overWriteSnapshots>
<overWriteIfNewer>true</overWriteIfNewer>
                         </configuration>
                     </execution>
                 </executions>
             </plugin>
I configured the lifecycle mappings for m2e like this:
<pluginExecution>
                                     <pluginExecutionFilter>
                                         <groupId>
                                             org.apache.maven.plugins
                                         </groupId>
                                         <artifactId>
                                             maven-dependency-plugin
                                         </artifactId>
                                         <versionRange>
                                             [2.1,)
                                         </versionRange>
                                         <goals>
                                             <goal>
                                                 copy
                                             </goal>
                                         </goals>
                                     </pluginExecutionFilter>
                                     <action>
                                         <execute>
<runOnIncremental>true</runOnIncremental>
                                         </execute>
                                     </action>
                                 </pluginExecution>

but the jars are not copied in the webapp for debug in the internal
eclipse server.
What can i do?
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top