Maven 2.x Help Plugin

Add a new help goal that describes the current lifecycle bindings

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

There should be a goal that examines the current POM's lifecycle and prints out a list of phases and lifecycle bindings. In full mode it should print out a list of every phase regardless of whether it has a lifecycle binding; in medium/default mode it should just print out phases that have bindings. It could look something like this:

* process-resources 
  resources:resources
* compile 
  compiler:compile
* process-test-resources 
  resources:testResource
* test-compile 
  compiler:testCompile
  mygroup:myartifact:1.0.1:foo
* test 
  surefire:test
* package 
  jar:jar
* install 
  install:install
* deploy 
  deploy:deploy

Issue Links

Activity

Hide
Dan Fabulich added a comment -

Even better would be for full mode to include the first sentence of the description of every mojo on the list, just like Javadoc.

Show
Dan Fabulich added a comment - Even better would be for full mode to include the first sentence of the description of every mojo on the list, just like Javadoc.
Hide
Vincent Siveton added a comment -

MPH-30 should do it for you

# mvn help:describe -Dcmd=compile

...
[INFO] 'compile' is a phase corresponding to this plugin:
org.apache.maven.plugins:maven-compiler-plugin:compile

It is a part of the lifecycle for the POM packaging 'maven-plugin'. This lifecycle includes the
 following phases:
* validate: NOT DEFINED
* initialize: NOT DEFINED
* generate-sources: NOT DEFINED
* process-sources: NOT DEFINED
* generate-resources: org.apache.maven.plugins:maven-plugin-plugin:descriptor
* process-resources: org.apache.maven.plugins:maven-resources-plugin:resources
* compile: org.apache.maven.plugins:maven-compiler-plugin: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:testResources
* test-compile: org.apache.maven.plugins:maven-compiler-plugin:testCompile
* process-test-classes: NOT DEFINED
* test: org.apache.maven.plugins:maven-surefire-plugin:test
* package: org.apache.maven.plugins:maven-jar-plugin:jar, org.apache.maven.plugins:maven-plugin
-plugin:addPluginArtifactMetadata
* 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:install, org.apache.maven.plugins:mave
n-plugin-plugin:updateRegistry
* deploy: org.apache.maven.plugins:maven-deploy-plugin:deploy

Show
Vincent Siveton added a comment - MPH-30 should do it for you
# mvn help:describe -Dcmd=compile

...
[INFO] 'compile' is a phase corresponding to this plugin:
org.apache.maven.plugins:maven-compiler-plugin:compile

It is a part of the lifecycle for the POM packaging 'maven-plugin'. This lifecycle includes the
 following phases:
* validate: NOT DEFINED
* initialize: NOT DEFINED
* generate-sources: NOT DEFINED
* process-sources: NOT DEFINED
* generate-resources: org.apache.maven.plugins:maven-plugin-plugin:descriptor
* process-resources: org.apache.maven.plugins:maven-resources-plugin:resources
* compile: org.apache.maven.plugins:maven-compiler-plugin: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:testResources
* test-compile: org.apache.maven.plugins:maven-compiler-plugin:testCompile
* process-test-classes: NOT DEFINED
* test: org.apache.maven.plugins:maven-surefire-plugin:test
* package: org.apache.maven.plugins:maven-jar-plugin:jar, org.apache.maven.plugins:maven-plugin
-plugin:addPluginArtifactMetadata
* 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:install, org.apache.maven.plugins:mave
n-plugin-plugin:updateRegistry
* deploy: org.apache.maven.plugins:maven-deploy-plugin:deploy

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: