The defaultGoal element can be used. <project> ... <build> <defaultGoal>install</defaultGoal> ... </build> </project>
On Jul 29, 2011, at 2:33 PM, kanesee wrote: > 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-lifecycle-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 > Thanks, Jason ---------------------------------------------------------- Jason van Zyl Founder, Apache Maven http://twitter.com/jvanzyl --------------------------------------------------------- To do two things at once is to do neither. -—Publilius Syrus, Roman slave, first century B.C.