2011-07-05 14 views
5

Quiero hacer un arquetipo que utilizan un parámetro que se creó ... tuerca no sé si es correcto un parámetro de hecho de esta manera:propiedades arquetipo de Maven con valor predeterminado artifactId

<requiredProperties> 
    <requiredProperty key="appName"> 
     <defaultValue>${artifactId}</defaultValue> 
    </requiredProperty> 
</requiredProperties> 

¡Es no trabajo para mí ... tengo un fracaso en la integración de la prueba

 
[INFO] --- maven-archetype-plugin:2.0:integration-test (default-integration-test) @webapp-archetype --- 
[ERROR] Archetype test.archetype:webapp-archetype:1.0-SNAPSHOT is not configured 
    Property appName is missing. 
org.apache.maven.archetype.exception.ArchetypeNotConfigured: Archetype test.archetype:webapp-archetype:1.0-SNAPSHOT is not configured 
    Property appName is missing. 

Respuesta

14

Editar test/resources/projects/basic/archetype.properties y añadir appName=artifactID allí.

Cuestiones relacionadas