[
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.
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.
HIH
Fred Bricon
On Thu, Jun 14, 2012 at 9:46 AM, Harald Wellmann
<hwellmann.de@xxxxxxxxxxxxxx> 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,
Harald
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
--
"Have you tried turning it off and on again" - The IT Crowd