FYI, I added the workaround description to m2eclipse-wtp's wiki :
https://github.com/sonatype/m2eclipse-wtp/wiki/How-do-I-add-my-web-project-classes-to-another-project-classpath%3F

Regards,

Fred Bricon

On Wed, Nov 16, 2011 at 6:04 PM, Fred Bricon <[email protected]> wrote:

> See my replies inline.
>
> On Wed, Nov 16, 2011 at 5:45 PM, Miguel Almeida <[email protected]
> > wrote:
>
>> Hi Fred,
>>
>> On Wed, Nov 16, 2011 at 4:33 PM, Fred Bricon <[email protected]> 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-113
> We'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 ;-P
>
>
>>  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 :
>>>
>>> Wicket. 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).
>>
> It's a big hack indeed
>
>
>>
>> Cheers,
>>
>> Miguel Almeida
>>
>> _______________________________________________
>> m2e-users mailing list
>> [email protected]
>> https://dev.eclipse.org/mailman/listinfo/m2e-users
>>
>>
>
>
> --
> "Have you tried turning it off and on again" - The IT Crowd
>



-- 
"Have you tried turning it off and on again" - The IT Crowd
_______________________________________________
m2e-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to