Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Eclipse Web Tools Platform Project (WTP) » War not correctly assembled from Maven project structure?
War not correctly assembled from Maven project structure? [message #1847372] Mon, 25 October 2021 14:42 Go to next message
Florian Bonte is currently offline Florian BonteFriend
Messages: 2
Registered: October 2021
Junior Member
The application that is being developed by my company is composed of a number of sub-projects and (in-house) frameworks. The structure of the project is described in a number of Maven pom.xml files. Upon building, this results in a WAR file that will then be deployed to a Glassfish server. The company has been using Eclipse since its conception, without (until now) too much trouble.

Recently, we tried installing Eclipse on some new computers and we found that the assembled WAR is incorrect. Some subdirectories are in the wrong directory, dependencies are not included in the lib folder, resources are in the wrong place. It appears Eclipse has trouble interpreting the project structure from the Maven pom.xml files.

We are reasonably certain the Maven structure is correct, or at the least functional, since both Jenkins as Intellij IDEA have no trouble assembling the correct WAR.

We're at a loss at what the problem could be. Are we not importing Maven projects correctly?
Re: War not correctly assembled from Maven project structure? [message #1847377 is a reply to message #1847372] Mon, 25 October 2021 16:43 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4439
Registered: July 2009
Senior Member

Do you have the related M2E plug-ins installed in these new copies of Eclipse? After importing, is Maven still handling the WAR assembly, or is Eclipse?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: War not correctly assembled from Maven project structure? [message #1847461 is a reply to message #1847377] Thu, 28 October 2021 06:53 Go to previous message
Florian Bonte is currently offline Florian BonteFriend
Messages: 2
Registered: October 2021
Junior Member
The default Maven plugins are installed:
"Maven integration for Eclipse (Luna and newer) 1.5"
"Maven Integration for Eclipse (Luna) 1.5.0"

Eclipse is still handling building the .war. The reason for this is that we need to deploy to a locally running Glassfish server for testing/debugging. We currently do this by right clicking the project and selecting Run as.../Run on server.
Previous Topic:Java EE: web.xml Validation Error
Next Topic:Eclipselink3
Goto Forum:
  


Current Time: Mon May 06 09:38:20 GMT 2024

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

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

Back to the top