Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] [m2e-wtp] WAR classes dependency is missing

Are you using war overlays or just expect the war classes, packaged as a jar, to be deployed in the other war's web-inf/lib?
First case *should* work, 2nd case  (using the <attachClasses> and  <classifier>classes</classifier> combo) is not supported due to m2e not supporting classifiers when workspace resolution is active. might help getting the classpath working in the workspace but not during deployment.

Your best solution would be to move the "common" classes to a separate maven module, with jar packaging, referenced by both wars.

If you can't do that, you can still disable workspace resolution (right click on project Maven -> Disable Workspace Resolution), but then, you'll have to install your war dependency to your local repo whenever you modify its classes.


Fred Bricon

On Thu, Jun 14, 2012 at 9:46 AM, Harald Wellmann <> wrote:
I have two WAR projects foo and bar where foo depends on the classes
artifact of bar. When running foo on Tomcat using Eclipse WTP + m2e +
m2e-wtp, the bar-classes.jar is missing from WEB-INF/lib.

Does m2e-wtp support this scenario at all? If so, what could be
missing in my setup?

Best regards,
m2e-users mailing list

"Have you tried turning it off and on again" - The IT Crowd

Back to the top