A question about using BATCH to run mvn-commands

2008-01-10 Thread Thomas Chang
Hi all,
   
  My question seems has not so much to do with mvn. 
   
  I want to deploy many jars onto the remote repository. I use the mvn-command 
as follow:
   
  deploy:deploy-file -Dfile=mytest-1.0.jar -DgroupId=mytest -DartifactId=mytest 
-Dversion=1.0 -Dpackaging=jar 
-Durl="file:sap-dev/CVSREPO/CvsMaven/apache-archiva-1.0/data/repositories/internal"
   
  Since I don't want to type so many text everytime I deploy a jar, so I want 
to write a BATCH to do so. Assumed the batch fiole call "mydeploy.bat". 
Everytime I deploy a jar, I just need to start "myDeploy.bat" and give the 
parameters to Dfile, DgroupId, DartifactId etc.
   
  Soemone has good idea?
   
  Regards
   
  Thomas

   
-
Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. 

RE: A question about using BATCH to run mvn-commands

2008-01-10 Thread Brian E. Fox
It should be doable, mvn itself is just a bat file on windows. You could 
probably even use that to start and modify as needed.

-Original Message-
From: Thomas Chang [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 10, 2008 9:05 AM
To: users@maven.apache.org
Subject: A question about using BATCH to run mvn-commands

Hi all,
   
  My question seems has not so much to do with mvn. 
   
  I want to deploy many jars onto the remote repository. I use the mvn-command 
as follow:
   
  deploy:deploy-file -Dfile=mytest-1.0.jar -DgroupId=mytest -DartifactId=mytest 
-Dversion=1.0 -Dpackaging=jar 
-Durl="file:sap-dev/CVSREPO/CvsMaven/apache-archiva-1.0/data/repositories/internal"
   
  Since I don't want to type so many text everytime I deploy a jar, so I want 
to write a BATCH to do so. Assumed the batch fiole call "mydeploy.bat". 
Everytime I deploy a jar, I just need to start "myDeploy.bat" and give the 
parameters to Dfile, DgroupId, DartifactId etc.
   
  Soemone has good idea?
   
  Regards
   
  Thomas

   
-
Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. 

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