You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2011/08/16 23:33:26 UTC
svn commit: r1158453 - in
/maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src:
main/resources/META-INF/maven/
main/resources/archetype-resources/src/main/resources/
test/resources/projects/basic/
Author: hboutemy
Date: Tue Aug 16 21:33:25 2011
New Revision: 1158453
URL: http://svn.apache.org/viewvc?rev=1158453&view=rev
Log:
added properties demo
Modified:
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/resources/test-__artifactId__.properties
maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties
Modified: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=1158453&r1=1158452&r2=1158453&view=diff
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml (original)
+++ maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/META-INF/maven/archetype-metadata.xml Tue Aug 16 21:33:25 2011
@@ -23,6 +23,13 @@ under the License.
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0 http://maven.apache.org/xsd/archetype-descriptor-1.0.0.xsd"
name="build-archetype-IT">
+ <requiredProperties>
+ <requiredProperty key="requiredPropertyWithoutDefaultValue"/>
+ <requiredProperty key="requiredPropertyWithDefaultValue">
+ <defaultValue>this property has a default value defined in the archetype descriptor</defaultValue>
+ </requiredProperty>
+ </requiredProperties>
+
<fileSets>
<fileSet filtered="true" packaged="true" encoding="UTF-8">
<directory>src/main/java</directory>
Modified: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/resources/test-__artifactId__.properties
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/resources/test-__artifactId__.properties?rev=1158453&r1=1158452&r2=1158453&view=diff
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/resources/test-__artifactId__.properties (original)
+++ maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/main/resources/archetype-resources/src/main/resources/test-__artifactId__.properties Tue Aug 16 21:33:25 2011
@@ -1,3 +1,10 @@
# test file path __propertyName__ replacement with its value
# __artifactId__ in filename was replaced with "${artifactId}"
-# rootArtifactId = ${rootArtifactId}
+
+rootArtifactId = ${rootArtifactId}
+
+requiredPropertyWithoutDefaultValue = ${requiredPropertyWithoutDefaultValue}
+
+requiredPropertyWithDefaultValue = ${requiredPropertyWithDefaultValue}
+
+nonRequiredProperty = ${nonRequiredProperty}
Modified: maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties
URL: http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties?rev=1158453&r1=1158452&r2=1158453&view=diff
==============================================================================
--- maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties (original)
+++ maven/archetype/trunk/maven-archetype-plugin/src/it/build-archetype/src/test/resources/projects/basic/archetype.properties Tue Aug 16 21:33:25 2011
@@ -1,4 +1,10 @@
version=0.1-SNAPSHOT
groupId=archetype.it
artifactId=basic
-package=build.archetype
\ No newline at end of file
+package=build.archetype
+
+requiredPropertyWithoutDefaultValue=a value defined in archetype.properties
+
+requiredPropertyWithDefaultValue=not the default value, but a value defined in archetype.properties
+
+nonRequiredProperty=a property that is not defined as requiredProperty in the archetype descriptor
\ No newline at end of file