[ http://jira.codehaus.org/browse/MNG-142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brett Porter closed MNG-142. ---------------------------- Resolution: Won't Fix Fix Version/s: (was: 2.1) Maven is pretty much usable without explanation on a decent build. The only thing I'd consider is descriptions for which profiles to activate when - probably can be done through the help plugin. > project usage instructions in POM > --------------------------------- > > Key: MNG-142 > URL: http://jira.codehaus.org/browse/MNG-142 > Project: Maven 2 > Issue Type: New Feature > Components: POM > Reporter: Brett Porter > Priority: Minor > > I was wondering if we could wing in a new feature to m2, which is a short set > of build instructions for projects to show the user with maven -u. In m1, > this is done by showing pom.description + any maven.xml goals, which is very > crude. > What I was thinking for m2 was the following: > - maven -u shows maven.xml goals plus goals relevant to artifact type (jar:* > for jar, war:* for war - a new piece of metadata to indicate that attribute > should be show in the usage would be useful) > - a new element <usage/> to the POM. This should reference an apt filename (a > default of src/site/apt/usage.apt can be used), which is just displayed > verbatim before the goal references. > This means even someone new to Maven can pick up someone else's project, run > maven -u and get all the standard information, plus anything the project > author wants to add (prerequesites, custom defined goals, etc.) > Another addition might be to add extra goal descriptions to the output so > they can recommend some to the user on some occasions, but not on others. > This would override the default goals that are shown, so a more complete > element might be: > <usage> > <!-- Plain text description to show instead of loading from a file - only > one should be used --> > <description> > To build the jar for this project, simply run > "maven jar". > </description> > <!-- External APT description to show verbatim --> > <file>docs/apt/usage.apt</file> > <!-- Optional - defaults to those relevant to the artifact type --> > <recommended-goals>jar, install, deploy, site</recommended-goals> > </usage> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira