Re: If it's possible to define a goal to choose the step to run

2007-03-22 Thread mavenstart

Thanks Wendy,

For example, sometimes I want to do one of the following tasks only

(1) build the war file only without doing the JUNIT test
(2) just run the JUNIT only to verify the result (I know I can do this in
via Eclipse directly)
(3) I want to run JMeter test only without going through all the steps
"compile-test-package-install", my JMeter will be run through antrun plugin
during the" integration-test" phase

I also have another question about the "profile", I found that the
dependency setup inside the "profile" will be ignored. For example, I set up
a profile for running "JMeter test", I really need to specify the dependency
of "ant-jmeter.1.0.jar" plugin globally, if I put it inside the "profile",
the maven build won't even look for the plugin, then it complains about
missing java class.

Thanks much for your time, Wendy
-- 
View this message in context: 
http://www.nabble.com/If-it%27s-possible-to-define-a-goal-to-choose-the-step-to-run-tf3444204s177.html#a9626742
Sent from the Maven - Users mailing list archive at Nabble.com.


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



If it's possible to define a goal to choose the step to run

2007-03-21 Thread mavenstart

I was told that I could define a goal for choosing some of maven life cycle
steps to do a customized build. But I just could not find any way to do it
with Maven 2. The goal is always tied to the associated plug-in, unless
witting a customized plugin, but how to specify the steps to execute in the
plugin?

Please help!

-- 
View this message in context: 
http://www.nabble.com/If-it%27s-possible-to-define-a-goal-to-choose-the-step-to-run-tf3444204s177.html#a9604677
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Dependency problem with profile

2007-03-16 Thread mavenstart

I set up a sub-project pom.xml with a profile, trying to make JMeter test an
optional step. However, the dependency within the profile has no effect at
all.

 
 jmeter
  
  
  
  org.apache.maven.plugins
  maven-antrun-plugin
  
  
jmeter-run
integration-test

 

   
   


 run

   

 
 \
   ant|
   ant-jmeter <== This
part is not effective at all
   1.0   |
/
  
   
  
 
 
  
   jmeter
  
 
  

When I run "mvn -Pjmeter", I will get an exception -
org.programmerplanet.ant.taskdefs.jmeter.JMeterTask cannot be found.  If I
explicitly declare the dependency within in a build block outside the
profile, the above command works. 

Since this is a sub-project, I want to do a build from the parent POM.xml,
and when I run "mvn -Pjmeter" from the root, again, I will get the exception 
- org.programmerplanet.ant.taskdefs.jmeter.JMeterTask cannot be found.

I wonder if there is a bug with Maven 2 profile?

Thanks,
jee
-- 
View this message in context: 
http://www.nabble.com/Dependency-problem-with-profile-tf3418300s177.html#a9527175
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to use goal to skip some steps in the life cycle

2007-03-15 Thread mavenstart

Hello Maven Gurus,

Got a another question here. Since whenever you use a standard target to
build, there is no way to avoid the prior steps (for example, "mvn install"
will always step through compile, test, package..), Can anybody tell me how
to use a customized goal in Maven2 to skip some or all the prior steps.

Thanks,
Jee
-- 
View this message in context: 
http://www.nabble.com/How-to-use-goal-to-skip-some-steps-in-the-life-cycle-tf3412593s177.html#a9508680
Sent from the Maven - Users mailing list archive at Nabble.com.


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



how to bind tomcat-plugin to deploy?

2007-03-15 Thread mavenstart

Hello Maven Guru,

I saw a Tomcat-plugin sample that associates the plugin for the deployment
at "install" phase. Can anybody tell me how to associate it to "deploy"
phase. When I tried to switch "install" to
"deploy", it asked me to specify "repo" URL. How do I avoid
this?

Thanks,
jee


-- 
View this message in context: 
http://www.nabble.com/how-to-bind-tomcat-plugin-to-%3Cphase%3Edeploy%3C-phase%3E--tf3412552s177.html#a9508548
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: [m2] How to bypass unit testing durng multiproject build with Maven 2

2007-03-09 Thread mavenstart

Thanks a lot, Thorsten 

So I did mvn -Dmaven.test.skip=true package, it still compiled and ran the
JUNIT testing...

I also did mvn package compile, JUNIT is still running...

Maybe this is the purpose for a multiproject build to make sure that all the
projects get compiled and tested, but how about the deployment, what if I
want to skip the deployment part defined in the POM.xml? still puzzled.

Thanks,

ms
-- 
View this message in context: 
http://www.nabble.com/How-to-bypass-unit-testing-durng-multiproject-build-with-Maven-2-tf3374096s177.html#a9398426
Sent from the Maven - Users mailing list archive at Nabble.com.


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



How to bypass unit testing durng multiproject build with Maven 2

2007-03-08 Thread mavenstart

Hello Maven gurus,

I think I can use "mvn package" to do a multiproject build with Maven 2, my
question is - how do I do a quick build with "mvn package" by bypassing the
junit testing.

Thanks,
MavenStarter
-- 
View this message in context: 
http://www.nabble.com/How-to-bypass-unit-testing-durng-multiproject-build-with-Maven-2-tf3374096s177.html#a9389406
Sent from the Maven - Users mailing list archive at Nabble.com.


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