RE: binding goals to a phase

2007-03-07 Thread Kurtis.Walker
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
> >
> > 
> >
> > 
> >
> > 
> >
> >
> >
> > 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]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona

RE: binding goals to a phase

2007-03-06 Thread Kurtis.Walker
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

2007-03-06 Thread Kurtis.Walker
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]



binding goals to a phase

2007-03-06 Thread Kurtis.Walker
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

 



RE: deploying an axis service

2007-03-06 Thread Kurtis.Walker
Thanks Robert.  I was able to use the assembly plugin to copy the
artifacts into the axis lib.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert
Watkins
Sent: Monday, March 05, 2007 5:38 PM
To: Maven Users List
Subject: Re: deploying an axis service

On 3/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> But, lets say for example all I had was a command line app.  I want to
> build and run my app.  In order to run it, I need all the
dependencies.
> How would I get them all copied to the same place for easy access?
>

That's what the assembly plugin is for; amongst other things, it can
pull
copies of your compile & runtime dependent artifacts together for you to
package.

-- 
   "Software is too expensive to build cheaply"
Robert Watkins   http://twasink.net/
[EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: deploying an axis service

2007-03-05 Thread Kurtis.Walker
Sorry, I meant to change the subject before I sent this because I'd like
an answer to the more general question stated.  In my case I don't have
a war.  Axis is already sitting in my tomcat webapps, so I just need to
copy some jars out there.  I will look into making the war with axis,
though.

But, lets say for example all I had was a command line app.  I want to
build and run my app.  In order to run it, I need all the dependencies.
How would I get them all copied to the same place for easy access?

Thanks for your help,

Kurt

-Original Message-
From: Wayne Fay [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 05, 2007 5:18 PM
To: Maven Users List
Subject: Re: deploying an axis service

An Axis "service" is simply a special WAR that gets deployed to a J2EE
server/container.

Thus, assuming you are building a valid WAR which has all the Axis
stuff bundled up along with your own project's code (or have deployed
the Axis tools into a shared lib directory), you simply need to use
something like Cargo to deploy the WAR into your container.

http://cargo.codehaus.org/Maven2+plugin

Wayne

On 3/5/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> How can I get Maven to copy my jar and the jars for all its
dependencies
> into a directory somewhere?  This seems like it should be trivial, but
I
> can't find documentation for it anywhere.  Thanks.
>
>
>
> 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]



deploying an axis service

2007-03-05 Thread Kurtis.Walker
How can I get Maven to copy my jar and the jars for all its dependencies
into a directory somewhere?  This seems like it should be trivial, but I
can't find documentation for it anywhere.  Thanks.

 

Kurt