I found my answer finally.  Sharing with everyone here since noone else seems 
to know the answer on this list...

http://jira.codehaus.org/browse/ARCHETYPE-359

" The build fails in the integration-test phase, because the new property is 
not assigned in the src/test/resources/projects/basic/archetype.properties.
Simply adding a line to that file with an assignment for the new property will 
solvve this."

-----Original Message-----
From: Lyons, Roy 
Sent: Thursday, June 28, 2012 4:58 PM
To: [email protected]
Subject: archetype prompting

Archetype gurus...

So I want to prompt for the following in my own in-house archetype:

parentGroupId
parentArtifactId
parentVersion
scmUrl

Based on performing rigorous RTFM and blog reading I came upon the method to do 
so.

$ tail src/main/resources/META\-INF/maven/archetype\-metadata.xml
      </includes>
    </fileSet>
  </fileSets>
  <requiredProperties>
    <requiredProperty key="scmUrl"/>
    <requiredProperty key="parentGroupId"/>
    <requiredProperty key="parentArtifactId"/>
    <requiredProperty key="parentVersion"/>
  </requiredProperties>
</archetype-descriptor>

Right.

So it seems to be confused about when it happens to be required.  I need it to 
be required when I execute the archetype:create -- not when I am performing a 
"mvn install" on the archetype project...

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO]
Archetype IT 'basic' failed: Missing required properties in 
archetype.properties: scmUrl, parentGroupId, parentArtifactId, parentVersion 
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch [INFO] 
------------------------------------------------------------------------

Without these required properties defined in the descriptor, it packages and 
installs real nicely...  And the resulting archtype works as expected (minus 
these extra prompts).


What could I possibly be overlooking or doing wrong?

Thanks,

Roy

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to