jbossas/jboss-as — pull request #3655 by nddipiazza (2012-12-13 18:22:49+00:00)
Title: AS7-6092 - Allow the CLI to deploy maven projects

Allow users to deploy Maven projects directly from the CLI.

Create a new command "mavendeploy"

This will take a pom.xml for a war, ear or ejb project and will maven build, then deploy to the server using the DeployHandler.

First iteration of this would take same parameters as "deploy" except for one, --goals that specifies what goals to build the project with before deploying. (this makes it so you can clean before install, or just install, or call whatever goal that is needed to build the artifact).

Examples:

[standalone@localhost:9999 /] mavendeploy C:\workspace\test-webapp\pom.xml

[standalone@localhost:9999 /] mavendeploy C:\workspace\test-webapp\pom.xml --goals="clean install"