Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Is m2e ignoring output location set in Eclipse?

Actually i was not subscribed before so could not reply properly. Here is the story:

in m2e-android, we have to setup the JUnit test launcher classpath a little bit differently than simple java projects:

* we have to add all platform-provided deps from our special container
* use bin/classes instead of target/classes (this is due to the limitation of the Android Development Tool (ADT) plugin)

We have problems with the second step. Although we can easily add the bin/classes folder, we do no remove target/classes which takes precedence, hence resulting in the issue.

Igor suggested to use a classifierClassPathProvider to sort that out. With that, we can easily tell m2e to use the proper folder. Unfortunately i found a problem about that, which i tried to explain in my previous post. So basically it seems since we have no classifier (""), and both the default and our provider applies to the project, m2e cannot decide and uses a NOOP one.

I hope the issue problem is clear now, if not, i try to add more details. Thanks for your help guys!

Back to the top