"R. Matt Barnett" <[EMAIL PROTECTED]> wrote on 14/10/2003 02:49:08 PM:
> When I invoke: > > maven -Dpackage=com.mycompany.app genapp > > as per the user guide, I see: > > __ __ > | \/ |__ _Apache__ ___ > | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ > |_| |_\__,_|\_/\___|_||_| v. 1.0-rc1-SNAPSHOT > > Attempting to download commons-jelly-tags-interaction-20030211.143817.jar. > .. > Enter a project template to use: [default] > > Please specify an id for your application: [app] > > Please specify a name for your application: [Example Application] > > Please specify the package for your application: [default.example.app] > > [copy] Copying 1 file to /home/barnett/src/java/default/example/app > [copy] Copying 3 files to /home/barnett/src/test/default/example/app > [copy] Copying 1 file to /home/barnett > [copy] Copying 2 files to /home/barnett > BUILD SUCCESSFUL > Total time: 18 seconds > Finished at: Mon Oct 13 23:42:15 CDT 2003 > > > During the execution of the command, I am prompted to answer questions, like > "Enter a project template to use:" > > along with three other questions. Is it possible to pass these values on > the command line and not be prompted by maven for their values? Yes. Please see http://maven.apache.org/reference/plugins/genapp/properties.html for the names of the properties, invoke maven like this: maven -Dmaven.genapp.template.id=myid "-Dmaven.genapp.template.name=My project name" -Dmaven.genapp.template.package=au.com.my.code genapp -- dIon Gillard, Multitask Consulting Blog: http://blogs.codehaus.org/people/dion/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
