Re: Anyway to call a goal from a mojo?

2006-09-03 Thread Rahul Thakur
You can use MavenEmbedder to do this. Pretty sure there was some example code floating on the user@ or dev@ list. I wrote a delegate mojo a while ago that does something similar but don't have the code handy here, but I can dig later today if you are keen at looking at it. Cheers, Rahul Jas

Re: Using plexus to inject custom objects (and inject their parameters)?

2006-09-03 Thread Jason Dillon
Thanks, but I can wait until this is rolled up into a release. I think having this will really make it easier to create more powerful mojos... and to share commonly used configuration and logic objects w/ o needing to sub-class. --jason On Sep 3, 2006, at 6:12 PM, Jason van Zyl wrote:

Re: Using plexus to inject custom objects (and inject their parameters)?

2006-09-03 Thread Jason van Zyl
On 3 Sep 06, at 8:57 PM 3 Sep 06, Jason Dillon wrote: Hi, I asked about this in #maven a while ago, but I forgot what the answer was. How can I configure plexus to inject custom objects into my mojo, and have plexus inject parameters into that object? For example, say I have: public cl

Using plexus to inject custom objects (and inject their parameters)?

2006-09-03 Thread Jason Dillon
Hi, I asked about this in #maven a while ago, but I forgot what the answer was. How can I configure plexus to inject custom objects into my mojo, and have plexus inject parameters into that object? For example, say I have: public class ConntectionConfig { /** * The port number to

Re: Status of maven-surefire-plugin & TestNG

2006-09-03 Thread Jason Dillon
Anyway to diff the source used to build 2.8-SNAPSHOT to see what needs to be patched? --jason On Sep 3, 2006, at 8:52 AM, Jesse Kuhnert wrote: I changed things to make it work with jdk14 tests...I haven't sent any patches to maven to make these work again yet. On 9/3/06, Jason Dillon <[EMA

Re: build timeouts

2006-09-03 Thread Jesse McConnell
+1 plus I know that we would really like to be able to see the schedule of builds, I have a placeholder on the group summary page for Next Scheduled Build :) nice job kenney jesse On 9/3/06, Brett Porter <[EMAIL PROTECTED]> wrote: On 03/09/2006, at 12:08 AM, Kenney Westerhof wrote: > For now

Re: rbac role/operation/permission example allocation

2006-09-03 Thread Jesse McConnell
basically that first bit are the roles that can be assigned to user on a per repository or per project basis as indicated by the (per repo) and (per project) tags. below that are the operations that are inclosed in corresponding permissions for that repo/project. The roles were based off your pr

Anyway to call a goal from a mojo?

2006-09-03 Thread Jason Dillon
Is there any (easy) way to call a goal from a mojo? I've got a geronimo:install goal, that does some assembly unpacking, and a geronimo:start goal which starts up the server. geronimo:start really needs to call geronimo:install before it runs. Is there an easy way to do this? The only way

Hierarchy retrieval

2006-09-03 Thread Arnaud Bailly
Hello, An important question (to me of course :-)) may have been buried into irrelevant chatting in my previous post. I am reposting it free of excess fat: 1. Given that a plugin is bound in a parent pom, Is there one mojo instance for each project in the hierarchy ? I think this is the case bu

Re: Status of maven-surefire-plugin & TestNG

2006-09-03 Thread Jesse Kuhnert
I changed things to make it work with jdk14 tests...I haven't sent any patches to maven to make these work again yet. On 9/3/06, Jason Dillon <[EMAIL PROTECTED]> wrote: Nope :-( rm -rf ~/.m2/repository/org/apache/maven/surefire rm -rf ~/.m2/repository/org/apache/maven/plugins/maven-surefire-pl

Re: Status of maven-surefire-plugin & TestNG

2006-09-03 Thread Jason Dillon
Nope :-( rm -rf ~/.m2/repository/org/apache/maven/surefire rm -rf ~/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin w/2.3-SNAPSHOT: --- T E S T S --- Running org.apache.geronim

Re: Status of maven-surefire-plugin & TestNG

2006-09-03 Thread Fabrizio Giustina
On 9/3/06, Jason Dillon <[EMAIL PROTECTED]> wrote: rm -rf ~/.m2/repository/org/apache/maven/plugins/maven-surefire- plugin/ the bug is in surefire-booter, do a: rm -rf ~/.m2/repository/org/apache/maven/surefire/surefire-booter/ ... and it will work fabrizio ---

Re: Status of maven-surefire-plugin & TestNG

2006-09-03 Thread Jason Dillon
So, I just tried... and while it does not NPE like 2.2, it still does find any tests. Note, this is using testng 5.1 jdk14 on a 1.4 JVM. So, it looks like the published snap behaves just like the version I built. I did clean my local repo first to make sure that I pick up the published

Re: Status of maven-surefire-plugin & TestNG

2006-09-03 Thread Jason Dillon
Okay, I can test the deployed 2.3-SNAPSHOT tomorrow and see if it behaves. Thanks :-) --jason On Sep 3, 2006, at 5:23 AM, Fabrizio Giustina wrote: On 9/3/06, Jason Dillon <[EMAIL PROTECTED]> wrote: I dunno.. I built 2.3-SNAPSHOT from source today and it did not work at all... it was able

maven-invoker-plugin and child module profiles

2006-09-03 Thread Jason Dillon
Is there anyway to configure the maven-invoker-plugin to enable a list of profiles on the child modules it is invoking? I'd like to have my child modules extend from their parent to pick up config, but its also picking up the integration setup... starting servers and running the invoker:

Re: Status of maven-surefire-plugin & TestNG

2006-09-03 Thread Fabrizio Giustina
On 9/3/06, Jason Dillon <[EMAIL PROTECTED]> wrote: I dunno.. I built 2.3-SNAPSHOT from source today and it did not work at all... it was able to run and not NPE like 2.2 does, but it did not find any of my tests. The same build config with 2.8-SNAPSHOT works fine. If you build from source you

Re: Status of maven-surefire-plugin & TestNG

2006-09-03 Thread Jason Dillon
I dunno.. I built 2.3-SNAPSHOT from source today and it did not work at all... it was able to run and not NPE like 2.2 does, but it did not find any of my tests. The same build config with 2.8-SNAPSHOT works fine. --jason On Sep 3, 2006, at 12:14 AM, Fabrizio Giustina wrote: The 2.8 SN

Re: http://jira.codehaus.org/browse/SUREFIRE-53

2006-09-03 Thread Jesse Kuhnert
P.S. I'll try and send the latest set of patches in the next day or so. They make the jdk14 based javadoc tests work again. On 9/3/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: Great! Sorry for thinking your patch was the culprit then ;) The biggest issue seems to be that you can't allow a test

Re: http://jira.codehaus.org/browse/SUREFIRE-53

2006-09-03 Thread Jesse Kuhnert
Great! Sorry for thinking your patch was the culprit then ;) The biggest issue seems to be that you can't allow a test class to get loaded up into the class loader unless the provider (ie testng) classes are also loaded up first...This is because the test class may actually instantiate properly,

Re: Status of maven-surefire-plugin & TestNG

2006-09-03 Thread Fabrizio Giustina
The 2.8 SNAPSHOT version was just an unofficial release that was deployed while the testng support in official one (2.3-SNAPSHOT) was broken. Now the patches needed for testNg support have been incorporated and the "official" surefire plugin works *ehm worked* fine with TestNg. "Worked" because i

Re: http://jira.codehaus.org/browse/SUREFIRE-53

2006-09-03 Thread Fabrizio Giustina
Hi Jesse, first of all thanks for your patches for the surefire TestNG provider and for your help here... I recently moved to TestNG for a couple of projects and I will definitively try to make surefire support more robust. I committed a few long standing patches, but the commit for http://jira.