Kane, I believe the defaultGoal property within the project/build element [1] is what you're looking for.
[1] http://maven.apache.org/ref/3.0.3/maven-model/maven.html#class_build Ron Gallagher -----Original Message----- From: kanesee [mailto:kane...@gmail.com] Sent: Friday, July 29, 2011 2:33 PM To: users@maven.apache.org Subject: Is there a way to set a default lifecycle action? So suppose I have 2 projects: projectLib and projectWar. Whenever I'm in the projectLib folder where the pom.xml is, I'd like to just type "mvn" and have it run the "mvn install" lifecycle Whenever I'm in the projectWar folder where the pom.xml is, I'd like to just type "mvn" and have it run the "mvn package" or "mvn deploy" lifecycle Is there a way to set this default behavior in the pom.xml for each project? Thanks, Kane -- View this message in context: http://maven.40175.n5.nabble.com/Is-there-a-way-to-set-a-default-lifecyc le-action-tp4647944p4647944.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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org