Search code examples
javaeclipsemaveneclipse-pluginmaven-eclipse-plugin

using maven-eclipse-plugin for to specifiy depedency jar files from a folder into eclipse project, not M2_REPO variable


I would like that the JAR build-path (or jar files in the build-path) of and eclipse project pointed to a local directory into eclipse project named "lib", not pointed to M2_REPO variable (my maven local repository path)

In lib directory, there are jar files copied through overriding 'copy-dependencies' goal in 'mave-dependency-plugin' My intention is that eclipse project were self-contained.

I tried overriding goals configure-workspace and from maven-eclipse-plugin, but it don't works.

¿is there way for to do this?


Solution

  • I suggest to try one of the following ways:

    • Use a Maven Repository Manager such as Nexus and deploy any jar you have which are not in an available repository. Then use "normal" Maven dependencies.
    • Use system Maven dependencies.