Eclipse maven only manages dependencies and no more

Is it possible that the maven plugin only manages dependencies and nothing more.

I work with a "strange" maven project and want the Eclipse / maven plugin to only read pom.xml dependencies and add it to the project class path. And nothing more.

I do not want it to set exclusion filters, source folders and output folders or overwrite other dependencies.

In addition, pom.xml is not located in the source folder of the Eclipse project. I know that I can use mvn eclipse: eclipse task manually, but this is a mess with my .classpath and .project files that I don’t want to merge manually.

In summary, I want all the dependencies on pom.xml to be automatically controlled by the plugin, but nothing was affected for the plugin.

EDIT: The problem is that whenever something in pom.xml changes, the maven plugin changes the configuration of my project.

EDIT: it should be maven, since there is already pom.xml, which I can replace with sbt or ivy, or lein or anything eles.

+6
source share
2 answers

Does it need to be maven? If you don't need any of the plugins or project organization, you can use apache ivy instead.

0
source

Or you could use an even simpler one like SBT

if you need to use maven, just cross out the plugins from the pom.xml file and add only the dependencies and repositories and use the IDE to run the application or create a banner.

you will need to run mvn commands if you change the dependencies.

0
source

Source: https://habr.com/ru/post/901103/


All Articles