IntelliJ Java IDE
The moose likes Ant, Maven and Other Build Tools and the fly likes maven goal for different modules Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "maven goal for different modules" Watch "maven goal for different modules" New topic
Author

maven goal for different modules

Pradeep Kumar
Ranch Hand

Joined: Sep 08, 2006
Posts: 99
Hi friends,
I have a requirement to execute different goals for different project in a multi project build system. Ho can i do it? The below is what it looks like



Now i need to execute mvn packagefor project1, mvn install for project2, mvn compile for project3 and mvn deploy for project4. Also preferably, it should be externalizable.

How do i achieve this in maven? Please let me know.



Thanks and Regards, Pradeep Kumar
SCJP 1.6, SCWCD 5.0
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 4875

I think you are trying to use the wrong tool for your build automation. I recommend that you use a CI tool such as Jenkins instead and have it invoke the builds for the separate modules. Then in Jenkins you can control which target to apply to which module.


JBoss In Action
 
 
subject: maven goal for different modules
 
Threads others viewed
Maven: deploy application to server
Spring Application Context in Maven multi-module project
maven error
JBOSS DeploymentException : Not able to find module file : .war in a .ear file
how to make the plugin jar to take the specified version from the pom.
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture