Thursday, March 7, 2013

Default Maven plugins (Core Plugins)


A Plugin for executing external programs
mvn exec:exec

A plugin for compile and execute selected program with argumants
compile exec:java -Dexec.mainClass=camelinaction.FilePrinter -Dexec.args="100"


Delete the target folder and compile java classes
mvn clean compile


Deploys an arbitrary artifact to the JBoss application server
mvn jboss-as:deploy


First run the clean, build the project and install the artifact to the local repository
mvn clean install 


Executes the supplied java class in the current VM with the enclosing project's dependencies as classpath
mvn exec:java
   
    org.codehaus.mojo
    exec-maven-plugin
    1.1
    
     MyClass
    
   


Displays the dependency tree for the current project
mvn dependency:tree




No comments:

Post a Comment

Note: Only a member of this blog may post a comment.