Re: Plugin testing (WAS: MNG-2571 - weird exception using the embedder)

2006-10-04 Thread Vincent Siveton
Thanks Kenney, I reopen it. My understanding is that we have several artifacts to test plugin/component. - maven-plugin-testing-harness: Mojo unit testing in test phase (deployed on snapshot-repository) - maven-it-plugin: Integration test plugin for integration-test phase (not deployed yet) - mav

Re: Plugin testing (WAS: MNG-2571 - weird exception using the embedder)

2006-10-04 Thread Kenney Westerhof
Vincent Siveton wrote: Hi Kenney and others, Background: I added more tests for the antlr plugin. One of them is to call "mvn site" to generate reports. Because I was unable to play with maven-embedder and to specify the correct classloader for the archive and it's dependencies (doxia classes

Plugin testing (WAS: MNG-2571 - weird exception using the embedder)

2006-10-03 Thread Vincent Siveton
Hi Kenney and others, Background: I added more tests for the antlr plugin. One of them is to call "mvn site" to generate reports. Because I was unable to play with maven-embedder and to specify the correct classloader for the archive and it's dependencies (doxia classes problems!), I decided to c

Re: MNG-2571 - weird exception using the embedder

2006-10-02 Thread Stephane Nicoll
Kenney and all, On 10/2/06, Kenney Westerhof <[EMAIL PROTECTED]> wrote: Hi, Stephane, I'm trying to reproduce this but I'm having trouble. First, the dependency on maven-plugin-testing-harness is missing. Secondly, even though the localRepoDir is correct, the ejb-sample-one and -two can't be fo

Re: MNG-2571 - weird exception using the embedder

2006-10-02 Thread Stephane Nicoll
Kenney, On 10/2/06, Kenney Westerhof <[EMAIL PROTECTED]> wrote: All that's missing is pre/post conditions, but usually post conditions are done in normal unit tests in the nested project. You just have to configure it to run after your mojo, in those nested projects. Mmm OK. This will pro

Re: MNG-2571 - weird exception using the embedder

2006-10-02 Thread Kenney Westerhof
Hi Stéphane, Anyway, the problem is with the setClassLoader(). That one already contains the EjbModule (and EarMojo) classes since they're in src/main/java. So they're also available to plexus. The embedder tries to configure another EarMojo in a new plugin classloader, and instantiates the

Re: MNG-2571 - weird exception using the embedder

2006-10-02 Thread Stephane Nicoll
Kenney, On 10/2/06, Kenney Westerhof <[EMAIL PROTECTED]> wrote: Hi, Stephane, I'm trying to reproduce this Thanks ;-) but I'm having trouble. First, the dependency on maven-plugin-testing-harness is missing. Secondly, even though the localRepoDir is correct, the ejb-sample-one and -two can'

Re: MNG-2571 - weird exception using the embedder

2006-10-02 Thread Kenney Westerhof
Hi, Stephane, I'm trying to reproduce this but I'm having trouble. First, the dependency on maven-plugin-testing-harness is missing. Secondly, even though the localRepoDir is correct, the ejb-sample-one and -two can't be found. Anyway, the problem is with the setClassLoader(). That one already c

Re: MNG-2571 - weird exception using the embedder

2006-10-01 Thread Stephane Nicoll
On 10/1/06, Stephane Nicoll <[EMAIL PROTECTED]> wrote: On 10/1/06, David Jencks <[EMAIL PROTECTED]> wrote: > > > The classes are in different classloaders. Hopefully the > classloaders' toString() will give you enough info about which ones > they are if you add that to the debugging. You're rig

Re: MNG-2571 - weird exception using the embedder

2006-10-01 Thread Stephane Nicoll
On 10/1/06, David Jencks <[EMAIL PROTECTED]> wrote: The classes are in different classloaders. Hopefully the classloaders' toString() will give you enough info about which ones they are if you add that to the debugging. You're right. The interface and the actual implementation are in differe

Re: MNG-2571 - weird exception using the embedder

2006-10-01 Thread David Jencks
On Oct 1, 2006, at 2:04 AM, Stephane Nicoll wrote: Hi, I think I've discovered a weird bug[1] in plexus and/or the maven embedder and I am unable to find what's wrong. I am using the embedder to create a test suite for the Ear Plugin ; it has a 'modules' complex configuration section which is

MNG-2571 - weird exception using the embedder

2006-10-01 Thread Stephane Nicoll
Hi, I think I've discovered a weird bug[1] in plexus and/or the maven embedder and I am unable to find what's wrong. I am using the embedder to create a test suite for the Ear Plugin ; it has a 'modules' complex configuration section which is an array of EarModules[2]. When running the plugin wi