Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Maven Integration for Web Tools Platform » WAR project that uses overlays: Class not found
WAR project that uses overlays: Class not found [message #907947] Tue, 04 September 2012 13:34 Go to next message
David Vree is currently offline David VreeFriend
Messages: 48
Registered: July 2010
Member
Eclipse: Indigo SR2
M2E: 1.1.0
M2E-WTP: 0.15.3

I have a multi-module Maven project with several JAR modules, a WAR module (that is used as an overlay), and another WAR module that is used as the final WAR.

These projects haven't changed in a few months, but I recently updated my Eclipse plugins and started seeing "Class not found" errors in Eclipse in the final WAR module project. The Java classes that are "not found" are inside the WAR overlay module project.

The system builds and runs without error, both from within Eclipse and the command line.

My question is this: Is M2E-WTP supposed to help the final WAR module project in Eclipse understand it will be receiving classes from the WAR overlay project in Eclipse?

If so, then perhaps I have something misconfigured. If not, then is this a defect?

[Updated on: Tue, 04 September 2012 13:38]

Report message to a moderator

Re: WAR project that uses overlays: Class not found [message #907953 is a reply to message #907947] Tue, 04 September 2012 13:40 Go to previous messageGo to next message
David Vree is currently offline David VreeFriend
Messages: 48
Registered: July 2010
Member
(deleted)

[Updated on: Tue, 04 September 2012 14:15]

Report message to a moderator

Re: WAR project that uses overlays: Class not found [message #907967 is a reply to message #907947] Tue, 04 September 2012 13:40 Go to previous messageGo to next message
David Vree is currently offline David VreeFriend
Messages: 48
Registered: July 2010
Member
(deleted)

[Updated on: Tue, 04 September 2012 14:15]

Report message to a moderator

Re: WAR project that uses overlays: Class not found [message #908296 is a reply to message #907947] Wed, 05 September 2012 05:28 Go to previous message
David Vree is currently offline David VreeFriend
Messages: 48
Registered: July 2010
Member
ok - found out here:

http://wiki.eclipse.org/M2E-WTP_FAQ#How_do_I_add_my_web_project_classes_to_another_project.27s_classpath.3F

that what I want to do cannot be done! Going to move the classes to a new maven module packaged as a JAR and make that a dependency of both WARs.
Previous Topic:Deployed Resources folder
Next Topic:configuring jars dependencies in pom
Goto Forum:
  


Current Time: Fri Sep 21 00:50:12 GMT 2018

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

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

Back to the top