[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2e-users] example of tests for m2e plugin based on BuildContext
|
I haven't worked actively on the new stuff, but I think you should be able to model a separate maven module on a test bundle of a plugin using the connector approach.
It would probably be best to move the conversation to m2e-dev
On 16 October 2012 16:09, Steven Bethard
<steven.bethard@xxxxxxxxxxxx> wrote:
Yeah, the problem is that those are all based off of the m2e-connector approach (http://wiki.eclipse.org/M2E/Extension_Development), not the new BuildContext approach (http://wiki.eclipse.org/M2E_compatible_maven_plugins).
I already have a working m2e-connector approach based off the m2eclipse-extras examples. I was just hoping to migrate to the BuildContext approach because then there's only the Maven plugin to maintain, not both a Maven plugin and an Eclipse plugin.
Steve
On Oct 15, 2012, at 4:52 PM, Steven Bethard <Steven.Bethard@xxxxxxxxxxxx> wrote:
> I've been updating a code-generation plugin to use BuildContext as suggested in the instructions here:
>
>
http://wiki.eclipse.org/M2E_compatible_maven_plugins
>
> Is there an example anywhere of testing a Maven plugin like this?
>
> In particular, I'm wondering how to migrate tests written in the m2e connector style (where you subclass org.eclipse.m2e.tests.common.AbstractMavenProjectTestCase and use Tycho to configure dependencies) to the normal Maven style (where tests go in src/test/java and Maven configures the dependencies). Has anyone done this?