Re: binding goals to a phase
It shouldn't only apply to inherited projects - but you still have to include the plugin in your current project. Meaning - you can configure a plugin inside pluginManagement - but still must add it to the build/plugins list. FYI - that you had it defined under pluginManagement was a crucial piece of info - we could have resolved this yesterday ;) Eric On 3/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I figured out the issue. I had it under the pluginManagement tag, which apparently only applies to inherited projects. Why the separation? Kurt -Original Message- From: Walker, Kurtis (TH USA) Sent: Tuesday, March 06, 2007 3:29 PM To: users@maven.apache.org Subject: RE: binding goals to a phase Thanks Brad. I've tried that setup and it doesn't work either. -Original Message- From: Brad Szabo [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007 3:19 PM To: Maven Users List Subject: RE: binding goals to a phase Your configuration element with the task definition needs to be specified within the context of the execution 'someid', not the standard plugin configuration element. maven-antrun-plugin someid compile Hurray it Worked! run false Hope this helps, -Brad On Tue, 2007-03-06 at 14:43 -0500, [EMAIL PROTECTED] wrote: > Yes, it is in the pom that I am running. Here is the output. Thanks. > > C:\ BrightonCommon>mvn compile > [INFO] Scanning for projects... > [INFO] > > > [INFO] Building Unnamed - medstat:BrightonCommon:jar:1.0-SNAPSHOT > [INFO]task-segment: [compile] > [INFO] > > > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > Downloading: http://repo1.maven.org/maven2/jsr170/jcr/1.0/jcr-1.0.pom > [WARNING] Unable to get resource 'jsr170:jcr:pom:1.0' from repository > central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom > [WARNING] Unable to get resource 'axis:axis-jaxrpc:pom:1.4' from > repository central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/axis/axis-saaj/1.4/axis-saaj-1.4.pom > [WARNING] Unable to get resource 'axis:axis-saaj:pom:1.4' from > repository central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/com/google/gwt/user/1.2.22/user-1.2.22.pom > [WARNING] Unable to get resource 'com.google.gwt:user:pom:1.2.22' from > repository central (http://repo1.maven.org/maven2 > ) > [INFO] [compiler:compile] > [INFO] Nothing to compile - all classes are up to date > [INFO] > > [INFO] BUILD SUCCESSFUL > [INFO] > > [INFO] Total time: 2 seconds > [INFO] Finished at: Tue Mar 06 14:39:37 EST 2007 > [INFO] Final Memory: 3M/6M > [INFO] > ---------------- > > Kurt > > -Original Message- > From: Eric Redmond [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 06, 2007 2:16 PM > To: Maven Users List > Subject: Re: binding goals to a phase > > Is this description in the pom you are running, or in a parent pom? If > the > latter, you have "inherited" turned off so it won't work. If the former, > could you send the command-line args you use and the output? This > shouldn't > happen. > > Eric > > On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > I'm trying to get my build to execute goals of a plugin during a > phase. > > There is plenty of documentation available how to do this, but I can't > > get it to work. Is there a setting somewhere that I need to turn > > executions on? The XML below will run fine with "mvn antrun:run," > but > > when I run mvn compile, the antrun:run goal does not get executed. > Any > > ideas what I could be doing wrong? I'm using 2.0.5 > > > > > > > > > > > > maven-antrun-plugin > > > > > > > > > > > > Hurray it Worked! > > > > > > > >
RE: binding goals to a phase
I figured out the issue. I had it under the pluginManagement tag, which apparently only applies to inherited projects. Why the separation? Kurt -Original Message- From: Walker, Kurtis (TH USA) Sent: Tuesday, March 06, 2007 3:29 PM To: users@maven.apache.org Subject: RE: binding goals to a phase Thanks Brad. I've tried that setup and it doesn't work either. -Original Message- From: Brad Szabo [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007 3:19 PM To: Maven Users List Subject: RE: binding goals to a phase Your configuration element with the task definition needs to be specified within the context of the execution 'someid', not the standard plugin configuration element. maven-antrun-plugin someid compile Hurray it Worked! run false Hope this helps, -Brad On Tue, 2007-03-06 at 14:43 -0500, [EMAIL PROTECTED] wrote: > Yes, it is in the pom that I am running. Here is the output. Thanks. > > C:\ BrightonCommon>mvn compile > [INFO] Scanning for projects... > [INFO] > > > [INFO] Building Unnamed - medstat:BrightonCommon:jar:1.0-SNAPSHOT > [INFO]task-segment: [compile] > [INFO] > > > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > Downloading: http://repo1.maven.org/maven2/jsr170/jcr/1.0/jcr-1.0.pom > [WARNING] Unable to get resource 'jsr170:jcr:pom:1.0' from repository > central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom > [WARNING] Unable to get resource 'axis:axis-jaxrpc:pom:1.4' from > repository central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/axis/axis-saaj/1.4/axis-saaj-1.4.pom > [WARNING] Unable to get resource 'axis:axis-saaj:pom:1.4' from > repository central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/com/google/gwt/user/1.2.22/user-1.2.22.pom > [WARNING] Unable to get resource 'com.google.gwt:user:pom:1.2.22' from > repository central (http://repo1.maven.org/maven2 > ) > [INFO] [compiler:compile] > [INFO] Nothing to compile - all classes are up to date > [INFO] > > [INFO] BUILD SUCCESSFUL > [INFO] > > [INFO] Total time: 2 seconds > [INFO] Finished at: Tue Mar 06 14:39:37 EST 2007 > [INFO] Final Memory: 3M/6M > [INFO] > ------------ > > Kurt > > -Original Message- > From: Eric Redmond [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 06, 2007 2:16 PM > To: Maven Users List > Subject: Re: binding goals to a phase > > Is this description in the pom you are running, or in a parent pom? If > the > latter, you have "inherited" turned off so it won't work. If the former, > could you send the command-line args you use and the output? This > shouldn't > happen. > > Eric > > On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > I'm trying to get my build to execute goals of a plugin during a > phase. > > There is plenty of documentation available how to do this, but I can't > > get it to work. Is there a setting somewhere that I need to turn > > executions on? The XML below will run fine with "mvn antrun:run," > but > > when I run mvn compile, the antrun:run goal does not get executed. > Any > > ideas what I could be doing wrong? I'm using 2.0.5 > > > > > > > > > > > > maven-antrun-plugin > > > > > > > > > > > > Hurray it Worked! > > > > > > > > > > > > > > > > > > > > someid > > > > > > > > run > > > > > > > > compile > > > > false > > >
RE: binding goals to a phase
Thanks Brad. I've tried that setup and it doesn't work either. -Original Message- From: Brad Szabo [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007 3:19 PM To: Maven Users List Subject: RE: binding goals to a phase Your configuration element with the task definition needs to be specified within the context of the execution 'someid', not the standard plugin configuration element. maven-antrun-plugin someid compile Hurray it Worked! run false Hope this helps, -Brad On Tue, 2007-03-06 at 14:43 -0500, [EMAIL PROTECTED] wrote: > Yes, it is in the pom that I am running. Here is the output. Thanks. > > C:\ BrightonCommon>mvn compile > [INFO] Scanning for projects... > [INFO] > > > [INFO] Building Unnamed - medstat:BrightonCommon:jar:1.0-SNAPSHOT > [INFO]task-segment: [compile] > [INFO] > > > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > Downloading: http://repo1.maven.org/maven2/jsr170/jcr/1.0/jcr-1.0.pom > [WARNING] Unable to get resource 'jsr170:jcr:pom:1.0' from repository > central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom > [WARNING] Unable to get resource 'axis:axis-jaxrpc:pom:1.4' from > repository central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/axis/axis-saaj/1.4/axis-saaj-1.4.pom > [WARNING] Unable to get resource 'axis:axis-saaj:pom:1.4' from > repository central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/com/google/gwt/user/1.2.22/user-1.2.22.pom > [WARNING] Unable to get resource 'com.google.gwt:user:pom:1.2.22' from > repository central (http://repo1.maven.org/maven2 > ) > [INFO] [compiler:compile] > [INFO] Nothing to compile - all classes are up to date > [INFO] > > [INFO] BUILD SUCCESSFUL > [INFO] > > [INFO] Total time: 2 seconds > [INFO] Finished at: Tue Mar 06 14:39:37 EST 2007 > [INFO] Final Memory: 3M/6M > [INFO] > ------------ > > Kurt > > -Original Message- > From: Eric Redmond [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 06, 2007 2:16 PM > To: Maven Users List > Subject: Re: binding goals to a phase > > Is this description in the pom you are running, or in a parent pom? If > the > latter, you have "inherited" turned off so it won't work. If the former, > could you send the command-line args you use and the output? This > shouldn't > happen. > > Eric > > On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > I'm trying to get my build to execute goals of a plugin during a > phase. > > There is plenty of documentation available how to do this, but I can't > > get it to work. Is there a setting somewhere that I need to turn > > executions on? The XML below will run fine with "mvn antrun:run," > but > > when I run mvn compile, the antrun:run goal does not get executed. > Any > > ideas what I could be doing wrong? I'm using 2.0.5 > > > > > > > > > > > > maven-antrun-plugin > > > > > > > > > > > > Hurray it Worked! > > > > > > > > > > > > > > > > > > > > someid > > > > > > > > run > > > > > > > > compile > > > > false > > > > > > > > > > > > > > > > > > > > Kurt > > > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: binding goals to a phase
Your configuration element with the task definition needs to be specified within the context of the execution 'someid', not the standard plugin configuration element. maven-antrun-plugin someid compile Hurray it Worked! run false Hope this helps, -Brad On Tue, 2007-03-06 at 14:43 -0500, [EMAIL PROTECTED] wrote: > Yes, it is in the pom that I am running. Here is the output. Thanks. > > C:\ BrightonCommon>mvn compile > [INFO] Scanning for projects... > [INFO] > > > [INFO] Building Unnamed - medstat:BrightonCommon:jar:1.0-SNAPSHOT > [INFO]task-segment: [compile] > [INFO] > > > [INFO] [resources:resources] > [INFO] Using default encoding to copy filtered resources. > Downloading: http://repo1.maven.org/maven2/jsr170/jcr/1.0/jcr-1.0.pom > [WARNING] Unable to get resource 'jsr170:jcr:pom:1.0' from repository > central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom > [WARNING] Unable to get resource 'axis:axis-jaxrpc:pom:1.4' from > repository central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/axis/axis-saaj/1.4/axis-saaj-1.4.pom > [WARNING] Unable to get resource 'axis:axis-saaj:pom:1.4' from > repository central (http://repo1.maven.org/maven2) > Downloading: > http://repo1.maven.org/maven2/com/google/gwt/user/1.2.22/user-1.2.22.pom > [WARNING] Unable to get resource 'com.google.gwt:user:pom:1.2.22' from > repository central (http://repo1.maven.org/maven2 > ) > [INFO] [compiler:compile] > [INFO] Nothing to compile - all classes are up to date > [INFO] > > [INFO] BUILD SUCCESSFUL > [INFO] > > [INFO] Total time: 2 seconds > [INFO] Finished at: Tue Mar 06 14:39:37 EST 2007 > [INFO] Final Memory: 3M/6M > [INFO] > -------- > > Kurt > > -Original Message- > From: Eric Redmond [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 06, 2007 2:16 PM > To: Maven Users List > Subject: Re: binding goals to a phase > > Is this description in the pom you are running, or in a parent pom? If > the > latter, you have "inherited" turned off so it won't work. If the former, > could you send the command-line args you use and the output? This > shouldn't > happen. > > Eric > > On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > I'm trying to get my build to execute goals of a plugin during a > phase. > > There is plenty of documentation available how to do this, but I can't > > get it to work. Is there a setting somewhere that I need to turn > > executions on? The XML below will run fine with "mvn antrun:run," > but > > when I run mvn compile, the antrun:run goal does not get executed. > Any > > ideas what I could be doing wrong? I'm using 2.0.5 > > > > > > > > > > > > maven-antrun-plugin > > > > > > > > > > > > Hurray it Worked! > > > > > > > > > > > > > > > > > > > > someid > > > > > > > > run > > > > > > > > compile > > > > false > > > > > > > > > > > > > > > > > > > > Kurt > > > > > > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: binding goals to a phase
Yes, it is in the pom that I am running. Here is the output. Thanks. C:\ BrightonCommon>mvn compile [INFO] Scanning for projects... [INFO] [INFO] Building Unnamed - medstat:BrightonCommon:jar:1.0-SNAPSHOT [INFO]task-segment: [compile] [INFO] [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. Downloading: http://repo1.maven.org/maven2/jsr170/jcr/1.0/jcr-1.0.pom [WARNING] Unable to get resource 'jsr170:jcr:pom:1.0' from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/axis/axis-jaxrpc/1.4/axis-jaxrpc-1.4.pom [WARNING] Unable to get resource 'axis:axis-jaxrpc:pom:1.4' from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/axis/axis-saaj/1.4/axis-saaj-1.4.pom [WARNING] Unable to get resource 'axis:axis-saaj:pom:1.4' from repository central (http://repo1.maven.org/maven2) Downloading: http://repo1.maven.org/maven2/com/google/gwt/user/1.2.22/user-1.2.22.pom [WARNING] Unable to get resource 'com.google.gwt:user:pom:1.2.22' from repository central (http://repo1.maven.org/maven2 ) [INFO] [compiler:compile] [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] BUILD SUCCESSFUL [INFO] [INFO] Total time: 2 seconds [INFO] Finished at: Tue Mar 06 14:39:37 EST 2007 [INFO] Final Memory: 3M/6M [INFO] Kurt -Original Message- From: Eric Redmond [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 06, 2007 2:16 PM To: Maven Users List Subject: Re: binding goals to a phase Is this description in the pom you are running, or in a parent pom? If the latter, you have "inherited" turned off so it won't work. If the former, could you send the command-line args you use and the output? This shouldn't happen. Eric On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I'm trying to get my build to execute goals of a plugin during a phase. > There is plenty of documentation available how to do this, but I can't > get it to work. Is there a setting somewhere that I need to turn > executions on? The XML below will run fine with "mvn antrun:run," but > when I run mvn compile, the antrun:run goal does not get executed. Any > ideas what I could be doing wrong? I'm using 2.0.5 > > > > > > maven-antrun-plugin > > > > > > Hurray it Worked! > > > > > > > > > > someid > > > > run > > > > compile > > false > > > > > > > > > > Kurt > > > > -- Eric Redmond http://codehaus.org/~eredmond - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: binding goals to a phase
Is this description in the pom you are running, or in a parent pom? If the latter, you have "inherited" turned off so it won't work. If the former, could you send the command-line args you use and the output? This shouldn't happen. Eric On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I'm trying to get my build to execute goals of a plugin during a phase. There is plenty of documentation available how to do this, but I can't get it to work. Is there a setting somewhere that I need to turn executions on? The XML below will run fine with "mvn antrun:run," but when I run mvn compile, the antrun:run goal does not get executed. Any ideas what I could be doing wrong? I'm using 2.0.5 maven-antrun-plugin Hurray it Worked! someid run compile false Kurt -- Eric Redmond http://codehaus.org/~eredmond
binding goals to a phase
I'm trying to get my build to execute goals of a plugin during a phase. There is plenty of documentation available how to do this, but I can't get it to work. Is there a setting somewhere that I need to turn executions on? The XML below will run fine with "mvn antrun:run," but when I run mvn compile, the antrun:run goal does not get executed. Any ideas what I could be doing wrong? I'm using 2.0.5 maven-antrun-plugin Hurray it Worked! someid run compile false Kurt