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