[ 
http://jira.codehaus.org/browse/ARCHETYPE-70?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Heuer reopened ARCHETYPE-70:
------------------------------------


I am re-opening this issue because I still cannot see how to accomplish this, 
with version 2.0-alpha-3.  How about some documentation about how this was 
addressed?

Specifically,

1) How do you define a parameter in an archetype project that must be made 
accessible to Velocity templates in the archetype?

2) How do you specify a value for the new parameter when running mvn 
archetype:create/generate?

> Add project description as a mojo parameter
> -------------------------------------------
>
>                 Key: ARCHETYPE-70
>                 URL: http://jira.codehaus.org/browse/ARCHETYPE-70
>             Project: Maven Archetype
>          Issue Type: New Feature
>          Components: Plugin
>            Reporter: Michael Heuer
>            Priority: Minor
>             Fix For: 2.0-alpha-1
>
>         Attachments: patch.txt
>
>
> For my archetype bundle, I require the project description as a parameter.
> I use it in the pom.xml
>   <description>${description}</description>
> in a license HEADER.txt
> /*
>   ${artifactId}  ${description}
>   Copyright ...
> in a package.html
> <html>
>   <body>
>     <p>${description}</p>
>   </body>
> </html>
> and so on.
> The attached patch to MavenArchetypeMojo.java provides a project description 
> parameter in addition to project groupId, artifactId, and version:
> $ mvn -X archetype:create
>     -DgroupId=foo
>     -DartifactId=bar
>     -Dversion=1.0-SNAPSHOT
>     -Ddescription="bar description." ...

-- 
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

        

Reply via email to