RE: Need an example of calling a batch file from maven please.

2014-01-05 Thread rajiv
Hi I am using maven3
I want to execute my bat file from pom but it is not working please guide me
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
version2.4.3/version
/plugin
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
version1.7/version
executions
execution
phaserun/phase
configuration
target name=RUN
echo 
message=${basedir}/
exec 
executable=cmd
 dir=D:\Android 
Calabash\Reportplugin\Calabash\
  spawn=true
arg 
value=/c/
arg 
value=cd Calabash/
arg 
value=D:\Android Calabash\Reportplugin\Calabash\run.bat/
/exec
/target
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build

When i run  from cmd prompt

i used following commands
mvn target:run
mvn verify
mvn run
mvn exe:run
mvn package

only build success but bat file not run




--
View this message in context: 
http://maven.40175.n5.nabble.com/Need-an-example-of-calling-a-batch-file-from-maven-please-tp47519p5780288.html
Sent from the Maven - Users mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Need an example of calling a batch file from maven please.

2014-01-05 Thread Barrie Treloar
On 5 January 2014 11:34, rajiv rajivkumarnandv...@gmail.com wrote:
 Hi I am using maven3
 I want to execute my bat file from pom but it is not working please guide me

[del]


 i used following commands
mvn target:run
mvn verify
mvn run
mvn exe:run
mvn package

 only build success but bat file not run

Maven is not Ant.
There is too much here to explain properly and you would be much
better served to spend a few minutes reading one of the freely
available books at http://maven.apache.org/articles.html

This will give you some of the overview you need on you Maven journey.

I suspect you will even find example of how to invoke the ant plugin.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Need an example of calling a batch file from maven please.

2005-10-18 Thread Mick Knutson
I have a batch file with 4 different parameters that I need to call from 
Maven.

Can someone please give me an example of doing this?


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



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



Need an example of calling a batch file from maven please.

2005-10-18 Thread Mick Knutson
I have a batch file with 4 different parameters that I need to call from 
Maven.

Can someone please give me an example of doing this?


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



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



Re: Need an example of calling a batch file from maven please.

2005-10-18 Thread andrew
This is all well documented here
http://maven.apache.org/maven2/plugins/maven-antrun-plugin/usage.html btw.

Cheers,
...andrew

andrew wrote:
 Hi Mick,
 
 For m2, in your pom.xml:
 
   ...
   build
 plugins
   plugin
 artifactIdmaven-antrun-plugin/artifactId
 executions
   execution
 iddo-something/id
 phasepick-a-phase-any-phase/phase
 configuration
   tasks
exec
  dir=${basedir}
  executable=${basedir}/src/main/sh/do-something.sh
  failonerror=true
  arg line=arg1 arg2 arg3 arg4 /
/exec
!-- or whatever ant task you desire --
   /tasks
 /configuration
 goals
   goalrun/goal
 /goals
   /execution
 /executions
   /plugin
 /plugins
   /build
   ...
 
 Cheers,
 ...andrew
 
 Mick Knutson wrote:
 
I have a batch file with 4 different parameters that I need to call from
Maven.
Can someone please give me an example of doing this?


Thank You
Mick Knutson

Sr. Java/J2EE Consultant
BASE logic, inc.
(415) 648-1804 (S.F., CA)
http://www.BASELogic.com

HP Consulting Services (Walnut Creek, CA)



-
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 additional commands, e-mail: [EMAIL PROTECTED]



RE: Need an example of calling a batch file from maven please.

2005-10-18 Thread Arnaud HERITIER
In m1 you can use the ant:exec task in your maven.xml scripting file

Arnaud
 

 -Message d'origine-
 De : Mick Knutson [mailto:[EMAIL PROTECTED] 
 Envoyé : mercredi 19 octobre 2005 00:55
 À : users@maven.apache.org
 Objet : Need an example of calling a batch file from maven please.
 
 I have a batch file with 4 different parameters that I need 
 to call from Maven.
 Can someone please give me an example of doing this?
 
 
 Thank You
 Mick Knutson
 
 Sr. Java/J2EE Consultant
 BASE logic, inc.
 (415) 648-1804 (S.F., CA)
 http://www.BASELogic.com
 
 HP Consulting Services (Walnut Creek, CA)
 
 
 
 -
 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]