Skip to main content



      Home
Home » Archived » Maven Integration for Web Tools Platform » Can't execute copy-dependencies goal inside Eclipse("copy-dependencies" goal not working inside Eclipse IDE)
Can't execute copy-dependencies goal inside Eclipse [message #1807413] Wed, 29 May 2019 07:47
Eclipse UserFriend
Hi,
I have the following plugin element in my pom.xml of my app:
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-dependency-plugin</artifactId>
  <version>3.1.1</version>
  <executions>
    <execution>
      <id>copy-dependencies</id>
      <phase>compile</phase>
      <goals>
        <goal>copy-dependencies</goal>
      </goals>
      <configuration>
        <outputDirectory>${project.build.directory}/dependencies</outputDirectory>
        <overWriteReleases>false</overWriteReleases>
        <overWriteSnapshots>false</overWriteSnapshots>
        <overWriteIfNewer>true</overWriteIfNewer>
      </configuration>
    </execution>
  </executions>
</plugin>


It works fine in the shell command - (when I execute "mvn compile") but inside Eclipse IDE it displays the following error (showing the element "execution" as underlined red - why? ):
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-dependency-plugin:3.1.1:copy-dependencies (execution: copy-dependencies, phase: compile)


What am I doing wrong?

Regards,
Janusz
Previous Topic:I cant install m2e
Next Topic:Debugging maven web-app
Goto Forum:
  


Current Time: Thu Jul 10 14:35:10 EDT 2025

Powered by FUDForum. Page generated in 0.05047 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top