Re: MavenEmbedder says "cannot lookup required component"

2007-10-14 Thread Jason van Zyl
You have a findResource( resource) in that implementation but not an implementation of findResources( resource ) which is the method that Plexus uses to find the components.xml files. You extends ClassLoader which I believe returns an empty Enumeration: http://www.docjar.org/html/api/java/

MavenEmbedder says "cannot lookup required component"

2007-10-14 Thread Tom Huybrechts
I'm trying to integrate Maven into a STAF [1] service using the embedder (the latest 2.1 snapshot). During startup, the embedder gives me this exception: org.apache.maven.embedder.MavenEmbedderException: Cannot lookup required component. at org.apache.maven.embedder.MavenEmbedder.start(Ma

Re: Maven WAR plugin

2007-10-14 Thread nicolas de loof
Great ! I'll make test on my side for integrating my plugin with the war plugin for webapp packaging, and report succes/failure/suggest on this list. Nico 2007/10/14, Stephane Nicoll <[EMAIL PROTECTED]>: > > Hi Nico, > > Yes the packaging task is *exactly* meant to provide this > functionality.

Re: Maven WAR plugin

2007-10-14 Thread Stephane Nicoll
I had a look to this one already and I'm a bit confused actually. I'll reproduce the issue with your sample project. The tests use testing harness so there is no real way to launch multi projects builds actually. This is something we should address, plugins such as assembly and others have an IT s

RE: Maven WAR plugin

2007-10-14 Thread Timothy Reilly
Stephane, Any thoughts on http://jira.codehaus.org/browse/MWAR-114 I am okay with postponing this to a later alpha release (I'll try to keep updating the patches if needed), but I haven't heard from anyone in my pass posts if the patch is acceptable? if I can provide more on this? This is a big d

Re: Maven WAR plugin

2007-10-14 Thread Stephane Nicoll
Hi Nico, Yes the packaging task is *exactly* meant to provide this functionality. I was about to add this to the war plugin actually but I wanted a first alpha released first because the packaging code has so much changed that I expect regressions. I'll have a look to the issue you've opened. Ch

Re: Maven WAR plugin

2007-10-14 Thread nicolas de loof
I've just created http://jira.codehaus.org/browse/MWAR-124 for this. Please review ;-) Nico. 2007/10/14, nicolas de loof <[EMAIL PROTECTED]>: > > To be more precise, the change on the war plugin would be : > > final List packagingTasks = getPackagingTasks( overlayManager ); > if ( getContext()

Re: Maven WAR plugin

2007-10-14 Thread nicolas de loof
To be more precise, the change on the war plugin would be : final List packagingTasks = getPackagingTasks( overlayManager ); if ( getContext().contains( WarPackagingTask.CUSTOM_TASKS ) ) { packagingTasks.addAll( (Collection) getContext().get( WarPackagingTask.CUSTOM_TASKS ) ); } ... fina

Re: Maven WAR plugin

2007-10-14 Thread nicolas de loof
Hello, I'm looking for a clean way to plug into the war packaging process. I'd like to add some custom Taks to the pacaking, before the .WAR archive is created. The war plugin extends AbstractMojo, so implements ContextEnabled. Based on this, it may be possible for plugins to share some configura

Re: Maven WAR plugin

2007-10-14 Thread Stephane Nicoll
We need to patch/Release plexus utils first. This is a first alpha, I expect others to be released very soon. Stéphane On 10/14/07, Tomasz Pik <[EMAIL PROTECTED]> wrote: > On 10/14/07, Stephane Nicoll <[EMAIL PROTECTED]> wrote: > > I have identified an issue in the latest changes (zip overlays).

Re: Maven WAR plugin

2007-10-14 Thread Tomasz Pik
On 10/14/07, Stephane Nicoll <[EMAIL PROTECTED]> wrote: > I have identified an issue in the latest changes (zip overlays). I > have reopened the issue (MWAR-104). As soon as we address this, we > can call a vote. What about MWAR-123? I've tested maven-war-plugin with plexus-utils containing patch

Re: Maven WAR plugin

2007-10-14 Thread Stephane Nicoll
I have identified an issue in the latest changes (zip overlays). I have reopened the issue (MWAR-104). As soon as we address this, we can call a vote. Thanks, Stéphane On 10/10/07, Timothy Reilly <[EMAIL PROTECTED]> wrote: > >>> I wrote: > >>> I get test failures errors from trunk... ? > >>> I'