maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nicolas Dupont (JIRA)" <j...@codehaus.org>
Subject [jira] (ARCHETYPE-308) Should ask input for requiredProperty with defaultValue
Date Wed, 18 Jan 2012 10:49:04 GMT

    [ https://jira.codehaus.org/browse/ARCHETYPE-308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=288689#comment-288689
] 

Nicolas Dupont edited comment on ARCHETYPE-308 at 1/18/12 4:48 AM:
-------------------------------------------------------------------

BTW, I've noticed that the generator will ask for requiredProperty with defaultValue if and
only if the defaultValue contains a Velocity expression.
For instance, if your default value is com.my.project, you won't be asked, but if it is ${groupId},
you'll be.
                
      was (Author: ndupont):
    BTW, I've noticed that the generator will ask for requiredProperty with defaultValue if
and only if the defaultValue contains a Velocity.
For instance, if your default value is com.my.project, you won't be asked, but if it is ${groupId},
you'll be.
                  
> Should ask input for requiredProperty with defaultValue
> -------------------------------------------------------
>
>                 Key: ARCHETYPE-308
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-308
>             Project: Maven Archetype
>          Issue Type: Bug
>            Reporter: Grégory Joseph
>         Attachments: ARCHETYPE-200.patch
>
>
> It seems that if a requiredProperty is defined with a defaultValue, the generate mojo
does not ask user input. In my opinion it should, just like it does it for the version.
> DefaultArchetypeFactory lines 156-168 seem to be the culprit and I'll attach a patch
that might fix this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message