• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Maven Command Line arguments

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is it possible to pass in command line arguments to Maven?

In my build process, I call my goal overnightBuild which performs the entire process. I want to change the process that you can pass in an argument that specifies which branch the build is to be run off. So is it possible to pass in something like
"maven overnightBuild betaBranch" or an equivalent? Looking at their documentation and don't see anything about it or anything similar...
 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Paul Connolly:
Is it possible to pass in command line arguments to Maven?

In my build process, I call my goal overnightBuild which performs the entire process. I want to change the process that you can pass in an argument that specifies which branch the build is to be run off. So is it possible to pass in something like
"maven overnightBuild betaBranch" or an equivalent? Looking at their documentation and don't see anything about it or anything similar...



You would have to do some work on overnightBuild to have it use some property (for example buildBranch) and then call it like this:

maven overnightBuild -DbuildBranch=betaBranch
 
reply
    Bookmark Topic Watch Topic
  • New Topic