Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Maven Integration for Web Tools Platform » Eclipse maven multi module project issues(Eclipse maven multi module project issues)
Eclipse maven multi module project issues [message #1689285] Mon, 23 March 2015 08:00 Go to next message
krishna Mising name is currently offline krishna Mising nameFriend
Messages: 12
Registered: July 2009
Junior Member
Most developers I know moved on to IntelliJ for just one reason: better support for development and reload/hot deployment of multi module maven projects and its resources. All of these problems keep happening in the case of nested/hierarchical multi module maven projects which is >90% of maven use cases:

1. Every time a multi module project is imported, sometimes there are both referenced libraries and maven dependencies in some projects. We have to manually remove referenced libraries from appearing. How can stop this from happening?

2. Changes made to resource updates are not always refreshed and require full clean, using eclipse:clean eclipse:eclipse commands and even a maven project refresh using Alt+F5? Why should we do this and not let Eclipse figure out what's wrong? Also, Eclipse updates to dependency projects are slow when fixing any compile time issues from dependencies.

3. Maven sometimes import dependency projects and its resources into its classpath and sometimes imports final artifact or jar from local repository as its dependency. This is a major problem just because jars excludes specific resources, say, from its src/main/resources. Is there a way in Maven to ask it to use resources of final artifact or exclude files that are not part of the its dependency packaging, typically excluded in the the dependent pom by <exclude>resource... without manually updating classpath?

4. When deploying a multi module project to an Eclipse Tomcat container, resources are not deployed randomly. Say a dependency src/main/resources has dep1-config.xml and you want to specify a custom file dep1-config.xml runtime, there is currently no way to say override from the main project being deployed or from custom folders added to classpath of project being deployed. Guess this is a problem with the container classloader and not really a maven issue.

5. There isn't a single multi module project deployment tutorial with best practices of managing classpath resources anywhere.

How hard is it to make a stable maven support just like IntelliJ?
Re: Eclipse maven multi module project issues [message #1704261 is a reply to message #1689285] Sun, 09 August 2015 23:11 Go to previous messageGo to next message
Mickael Istria - away until August 14th is currently offline Mickael Istria - away until August 14thFriend
Messages: 833
Registered: July 2009
Location: Grenoble, France
Senior Member

Please do not use the maven-eclipse-plugin (mvn.eclipse:eclipse) and m2e simultaneously, they're not very compatible. Instead, when issues happen, clean your project in the m2e way, using the "Maven > Update configuration" context menus on your project(s).
Re: Eclipse maven multi module project issues [message #1719446 is a reply to message #1704261] Fri, 08 January 2016 02:33 Go to previous message
krishna Mising name is currently offline krishna Mising nameFriend
Messages: 12
Registered: July 2009
Junior Member
You should put this as the first line in M2E documentation and in the plugin, I mean how hard is to remove the referenced libraries that use M2_REPO convention whereas you guys use maven dependencies, just an alert message that mvn eclipse:eclipse should not be used would save all our times.

What about other issues above?

And what about the issue in Eclipse where you add a dependency module project, it does not update the parent maven project classpath with this dependency module as a project dependency but still keeps the dependency module it as a jar dependency?

[Updated on: Mon, 11 January 2016 07:06]

Report message to a moderator

Previous Topic:Uninstall a feature through a Maven Plugin
Next Topic:Is there a way to make Eclipse do "Maven > Update Project" whenever it can?
Goto Forum:

Current Time: Sat Nov 17 12:38:17 GMT 2018

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

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

Back to the top