You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2013/03/19 12:36:57 UTC

git commit: MARMOTTA-160: fixed issue with the version

Updated Branches:
  refs/heads/master a627c5127 -> 888b0b603


MARMOTTA-160: fixed issue with the version


Project: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/commit/888b0b60
Tree: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/tree/888b0b60
Diff: http://git-wip-us.apache.org/repos/asf/incubator-marmotta/diff/888b0b60

Branch: refs/heads/master
Commit: 888b0b60385941ae4adb1700efbed81e96534dea
Parents: a627c51
Author: Sergio Fernández <wi...@apache.org>
Authored: Tue Mar 19 12:36:10 2013 +0100
Committer: Sergio Fernández <wi...@apache.org>
Committed: Tue Mar 19 12:36:10 2013 +0100

----------------------------------------------------------------------
 build/archetypes/marmotta-archetype-webapp/pom.xml |   21 +++++++++++++++
 .../META-INF/maven/archetype-metadata.xml          |    6 ----
 .../src/main/resources/archetype-resources/pom.xml |    2 +-
 3 files changed, 22 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/888b0b60/build/archetypes/marmotta-archetype-webapp/pom.xml
----------------------------------------------------------------------
diff --git a/build/archetypes/marmotta-archetype-webapp/pom.xml b/build/archetypes/marmotta-archetype-webapp/pom.xml
index c6b9ff0..02bb956 100644
--- a/build/archetypes/marmotta-archetype-webapp/pom.xml
+++ b/build/archetypes/marmotta-archetype-webapp/pom.xml
@@ -31,8 +31,29 @@
     <name>Apache Marmotta Archetype: Web Application</name>
     <description>Web Application bundle (WAR file) containing Apache Marmotta</description>
 
+    <properties>
+        <marmottaVersion>${project.version}</marmottaVersion>
+    </properties>
+
     <build>
 
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*.xml</include>
+                </includes>
+            </resource>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>false</filtering>
+                <excludes>
+                    <exclude>**/*.xml</exclude>
+                </excludes>
+            </resource>
+        </resources>
+
         <extensions>
             <extension>
                 <groupId>org.apache.maven.archetype</groupId>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/888b0b60/build/archetypes/marmotta-archetype-webapp/src/main/resources/META-INF/maven/archetype-metadata.xml
----------------------------------------------------------------------
diff --git a/build/archetypes/marmotta-archetype-webapp/src/main/resources/META-INF/maven/archetype-metadata.xml b/build/archetypes/marmotta-archetype-webapp/src/main/resources/META-INF/maven/archetype-metadata.xml
index ab8c813..30c1678 100644
--- a/build/archetypes/marmotta-archetype-webapp/src/main/resources/META-INF/maven/archetype-metadata.xml
+++ b/build/archetypes/marmotta-archetype-webapp/src/main/resources/META-INF/maven/archetype-metadata.xml
@@ -23,12 +23,6 @@
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     name="marmotta-webapp">
 
-  <requiredProperties>
-    <requiredProperty key="marmottaVersion">
-      <defaultValue>3.0.0-incubating-SNAPSHOT</defaultValue>
-    </requiredProperty>
-  </requiredProperties>
-
   <fileSets>
     <fileSet filtered="true" encoding="UTF-8">
       <directory>src/main/webapp</directory>

http://git-wip-us.apache.org/repos/asf/incubator-marmotta/blob/888b0b60/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/pom.xml
----------------------------------------------------------------------
diff --git a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/pom.xml b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/pom.xml
index c3fbcea..7f02dad 100644
--- a/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/pom.xml
+++ b/build/archetypes/marmotta-archetype-webapp/src/main/resources/archetype-resources/pom.xml
@@ -21,7 +21,7 @@
     <parent>
         <groupId>org.apache.marmotta</groupId>
         <artifactId>marmotta-parent</artifactId>
-        <version>3.0.0-incubating-SNAPSHOT</version>
+        <version>${marmottaVersion}</version>
     </parent>
 
     <groupId>${groupId}</groupId>