[ 
https://issues.apache.org/jira/browse/ARCHETYPE-509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15836503#comment-15836503
 ] 

Hudson commented on ARCHETYPE-509:
----------------------------------

SUCCESS: Integrated in Jenkins build maven-archetype-m3 #247 (See 
[https://builds.apache.org/job/maven-archetype-m3/247/])
[ARCHETYPE-509] RequiredProperty not set in batch mode this closes #14 
(rfscholte: rev 9857d346b7ec300cd7834cd4e3e6248770b20a8d)
* (edit) 
maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/generation/DefaultArchetypeGenerationConfigurator.java
* (add) 
maven-archetype-plugin/src/test/java/org/apache/maven/archetype/ui/generation/DefaultArchetypeGenerationConfigurator2Test.java


> RequiredProperty not set in batch mode
> --------------------------------------
>
>                 Key: ARCHETYPE-509
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-509
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Plugin
>    Affects Versions: 2.x
>            Reporter: Max Norris
>            Assignee: Robert Scholte
>             Fix For: 2.5
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> Same issue as https://issues.apache.org/jira/browse/ARCHETYPE-318.
> If I specify a required property and then use that in another required 
> property, as follows:
> {code:xml}
>       <requiredProperties>
>               <requiredProperty key="groupName">
>               </requiredProperty>
>               <requiredProperty key="serviceName">
>               </requiredProperty>
>               <requiredProperty key="groupId">
>                       <defaultValue>com.example.${groupName}</defaultValue>
>               </requiredProperty>
>               <requiredProperty key="package">
>                       <defaultValue>com.example.${groupName}</defaultValue>
>               </requiredProperty>
>               <requiredProperty key="artifactId">
>                       <defaultValue>${serviceName}</defaultValue>
>               </requiredProperty>
>               <requiredProperty key="version">
>                       <defaultValue>1.0.0-SNAPSHOT</defaultValue>
>               </requiredProperty>
>       </requiredProperties>
> {code}
> When I run an archetype generate with those properties specified:
> {code:xml}
> mvn archetype:generate -B -DarchetypeGroupId=com.example 
> -DarchetypeArtifactId=example-archetype -DgroupName=MyGroup 
> -DserviceName=MyService
> {code}
> I get the following output:
> {code:xml}
> [INFO] Parent element not overwritten in 
> /private/tmp/${serviceName}/${serviceName}-app/pom.xml
> [INFO] Parent element not overwritten in 
> /private/tmp/${serviceName}/${serviceName}-proxy/pom.xml
> [INFO] Parent element not overwritten in 
> /private/tmp/${serviceName}/${serviceName}-dto/pom.xml
> [INFO] Parent element not overwritten in 
> /private/tmp/${serviceName}/${serviceName}-integration-tests/pom.xml
> [INFO] Parent element not overwritten in 
> /private/tmp/${serviceName}/${serviceName}-codegen/pom.xml
> [INFO] project created from Archetype in dir: /private/tmp/${serviceName}
> {code}
> I'll do a pull request on github.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to