Thanks MK, The command is very helpful. I tried package command as well, here are what I tried and output, want to confirm my understanding is correct, mvn package will execute all the phases before and include package phase in default lifecycle? Thanks.
mvn help:describe -Dcmd=package -Ddetail It is a part of the lifecycle for the POM packaging 'jar'. This lifecycle includes the following phases: * validate: Not defined * initialize: Not defined * generate-sources: Not defined * process-sources: Not defined * generate-resources: Not defined * process-resources: org.apache.maven.plugins:maven-resources-plugin:2.6:resources * compile: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile * process-classes: Not defined * generate-test-sources: Not defined * process-test-sources: Not defined * generate-test-resources: Not defined * process-test-resources: org.apache.maven.plugins:maven-resources-plugin:2.6:testResources * test-compile: org.apache.maven.plugins:maven-compiler-plugin:2.5.1:testCompile * process-test-classes: Not defined * test: org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test * prepare-package: Not defined * package: org.apache.maven.plugins:maven-jar-plugin:2.4:jar * pre-integration-test: Not defined * integration-test: Not defined * post-integration-test: Not defined * verify: Not defined * install: org.apache.maven.plugins:maven-install-plugin:2.4:install * deploy: org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy regards, Lin On Sun, Apr 5, 2015 at 11:22 PM, MK Tan <[email protected]> wrote: > When you run > mvn help:describe -Dcmd=clean -Ddetail > > You can see that clean is a lifecycle that run 3 phases: > - pre-clean > - clean > - post-clean > > > > On Mon, Apr 6, 2015 at 2:17 PM, Lin Ma <[email protected]> wrote: > > > Thanks MK, > > > > Want to confirm my understanding is correct, when I execute mvn clean, it > > is to execute clean phase of default lifecycle? Thanks. > > > > regards, > > Lin > > > > On Sun, Apr 5, 2015 at 11:04 PM, MK Tan <[email protected]> wrote: > > > > > You can try > > > http://maven.apache.org/plugins/maven-help-plugin/describe-mojo.html > > > > > > > > > On Mon, Apr 6, 2015 at 12:37 PM, Lin Ma <[email protected]> wrote: > > > > > > > Hello Maven experts, > > > > > > > > Comparing to full format command like mvn plugin:goal, for command > like > > > mvn > > > > clean and mvn package, how to find which is the exact goal to execute > > > for a > > > > plug-in? > > > > > > > > thanks in advance, > > > > Lin > > > > > > > > > >
