|Re: [m2e-users] WAR dependency not working in m2e|
See my replies inline.On Wed, Nov 16, 2011 at 5:45 PM, Miguel Almeida <migueldealmeida@xxxxxxxxx> wrote:
Hi Fred,On Wed, Nov 16, 2011 at 4:33 PM, Fred Bricon <fbricon@xxxxxxxxx> wrote:Attached classes are not supported in m2e-wtp.
- Is the attachedClasses configuration the correct one for this, though? I'm not very advanced in maven so this configuration seemed a bit "black magic".
- Would a different solution (like a shared module for resources) be better?Both solutions are perfectly supported in the maven world. The 2nd solution works OOTB in m2e-wtp, the first one requires the hack I showed you.- Will m2e-wtp support this, or is it unlikely due to one of the previous answers?
Possibly. But not in the near future. There's an open feature request about that : https://issues.sonatype.org/browse/MECLIPSEWTP-113We'd need to make m2e aware that war project + classes classifier is a valid combo in the workspace. I currently have no idea how to do it. I'll nag Igor about it, eventually ;-PWicket. Thanks for the "hack". I had thought that profiles could solve the problem, although I don't quite like to use them (seems hack-ish).However, you can workaround the issue by using the following trick :In your test project pom.xml, pick the proper classifier depending on whether you're inside m2e or not :It's a big hack indeed
m2e-users mailing list
"Have you tried turning it off and on again" - The IT Crowd
Back to the top