Author: gertv
Date: Tue May  6 06:14:46 2008
New Revision: 653764

URL: http://svn.apache.org/viewvc?rev=653764&view=rev
Log:
SM-1277: New archetype for creating a root project

Added:
    servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/src/
    servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/src/main/
    
servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/src/main/resources/
    
servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/src/main/resources/filter.xsl
    servicemix/smx3/trunk/archetypes/servicemix-project-root/   (with props)
    servicemix/smx3/trunk/archetypes/servicemix-project-root/pom.xml
    servicemix/smx3/trunk/archetypes/servicemix-project-root/src/
    servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/
    servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/
    
servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/META-INF/
    
servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/
    
servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/archetype.xml
    
servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/archetype-resources/
    
servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/archetype-resources/pom.xml
Modified:
    servicemix/smx3/trunk/archetypes/pom.xml
    servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/pom.xml
    servicemix/smx3/trunk/archetypes/servicemix-archetypes-itests/pom.xml

Modified: servicemix/smx3/trunk/archetypes/pom.xml
URL: 
http://svn.apache.org/viewvc/servicemix/smx3/trunk/archetypes/pom.xml?rev=653764&r1=653763&r2=653764&view=diff
==============================================================================
--- servicemix/smx3/trunk/archetypes/pom.xml (original)
+++ servicemix/smx3/trunk/archetypes/pom.xml Tue May  6 06:14:46 2008
@@ -58,11 +58,13 @@
         <module>servicemix-saxon-xslt-service-unit</module>
         <module>servicemix-bean-service-unit</module>
         <module>servicemix-drools-service-unit</module>
-        <module>servicemix-archetypes-itests</module>
         <module>servicemix-cxf-bc-service-unit</module>
         <module>servicemix-cxf-se-service-unit</module>
         <module>servicemix-osworkflow-service-unit</module>
         <module>servicemix-mail-service-unit</module>
+        <module>servicemix-archetype-catalog</module>
+        <module>servicemix-project-root</module>
+        <module>servicemix-archetypes-itests</module>
     </modules>
 
     <build>

Modified: servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/pom.xml
URL: 
http://svn.apache.org/viewvc/servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/pom.xml?rev=653764&r1=653763&r2=653764&view=diff
==============================================================================
--- servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/pom.xml 
(original)
+++ servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/pom.xml Tue 
May  6 06:14:46 2008
@@ -33,6 +33,12 @@
   <name>ServiceMix :: Archetypes :: Catalog</name>
 
   <build>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+      </resource>
+    </resources>
     <plugins>
       <plugin>
         <artifactId>maven-antrun-plugin</artifactId>
@@ -45,6 +51,7 @@
             <configuration>
               <tasks>
                 <mkdir dir="${project.build.directory}"/>
+                <mkdir dir="${project.build.directory}/temp"/>
               </tasks>
             </configuration>
           </execution>
@@ -63,16 +70,51 @@
         </executions>
         <configuration>
           
<repository>${settings.localRepository}/org/apache/servicemix/tooling</repository>
-          
<catalogFile>${project.build.directory}/archetype-catalog.xml</catalogFile>
+          
<catalogFile>${project.build.directory}/temp/archetype-catalog.xml</catalogFile>
         </configuration>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>xslt-maven-plugin</artifactId>
+        <version>1.0</version>
+        <executions>
+          <execution>
+            <phase>process-resources</phase>        
+            <goals>
+              <goal>transform</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <xslFile>target/classes/filter.xsl</xslFile>
+          <srcDir>${project.build.directory}/temp</srcDir>
+          <destDir>${project.build.directory}</destDir>
+          <parameters><version>${servicemix-version}</version></parameters>
+        </configuration>
+      </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>build-helper-maven-plugin</artifactId>
+        <version>1.1</version>
+        <executions>
+          <execution>
+            <id>attach-artifacts</id>
+            <phase>package</phase>
+            <goals>
+              <goal>attach-artifact</goal>
+            </goals>
+            <configuration>
+              <artifacts>
+                <artifact>
+                  <file>${project.build.directory}/archetype-catalog.xml</file>
+                  <type>xml</type>
+                </artifact>
+              </artifacts>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
 
-  <dependencies>
-    <groupId>org.apache.servicemix</groupId>
-    <artifactId>servicemix-archetypes-itests</artifactId>
-    <version>3.3-SNAPSHOT</version>
-  </dependencies>
-
 </project>

Added: 
servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/src/main/resources/filter.xsl
URL: 
http://svn.apache.org/viewvc/servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/src/main/resources/filter.xsl?rev=653764&view=auto
==============================================================================
--- 
servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/src/main/resources/filter.xsl
 (added)
+++ 
servicemix/smx3/trunk/archetypes/servicemix-archetype-catalog/src/main/resources/filter.xsl
 Tue May  6 06:14:46 2008
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
+                version="1.0">
+
+  <xsl:param name="version"/>
+
+  <xsl:template match="archetype[version != '@{servicemix-version}']">
+    <!-- simply drop archetypes for other versions of ServiceMix -->
+  </xsl:template>
+
+  <xsl:template match="@*|node()">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|node()"/>
+    </xsl:copy>
+  </xsl:template>
+
+</xsl:stylesheet>

Modified: servicemix/smx3/trunk/archetypes/servicemix-archetypes-itests/pom.xml
URL: 
http://svn.apache.org/viewvc/servicemix/smx3/trunk/archetypes/servicemix-archetypes-itests/pom.xml?rev=653764&r1=653763&r2=653764&view=diff
==============================================================================
--- servicemix/smx3/trunk/archetypes/servicemix-archetypes-itests/pom.xml 
(original)
+++ servicemix/smx3/trunk/archetypes/servicemix-archetypes-itests/pom.xml Tue 
May  6 06:14:46 2008
@@ -176,9 +176,19 @@
       <artifactId>servicemix-osworkflow-service-unit</artifactId>
       <version>${servicemix-version}</version>
     </dependency>
+    <dependency>
+      <groupId>org.apache.servicemix.tooling</groupId>
+      <artifactId>servicemix-project-root</artifactId>
+      <version>${servicemix-version}</version>
+    </dependency>
 
     <dependency>
       <groupId>org.apache.servicemix</groupId>
+      <artifactId>servicemix-core</artifactId>
+      <version>${servicemix-version}</version>
+    </dependency>
+    <dependency>
+      <groupId>org.apache.servicemix</groupId>
       <artifactId>servicemix-bean</artifactId>
       <version>${servicemix-version}</version>
     </dependency>

Propchange: servicemix/smx3/trunk/archetypes/servicemix-project-root/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue May  6 06:14:46 2008
@@ -0,0 +1,3 @@
+target
+.classpath
+.project

Added: servicemix/smx3/trunk/archetypes/servicemix-project-root/pom.xml
URL: 
http://svn.apache.org/viewvc/servicemix/smx3/trunk/archetypes/servicemix-project-root/pom.xml?rev=653764&view=auto
==============================================================================
--- servicemix/smx3/trunk/archetypes/servicemix-project-root/pom.xml (added)
+++ servicemix/smx3/trunk/archetypes/servicemix-project-root/pom.xml Tue May  6 
06:14:46 2008
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.servicemix</groupId>
+    <artifactId>archetypes</artifactId>
+    <version>3.3-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.servicemix.tooling</groupId>
+  <artifactId>servicemix-project-root</artifactId>
+  <name>ServiceMix :: Archetypes :: ProjectRoot</name>
+
+</project>

Added: 
servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/archetype.xml
URL: 
http://svn.apache.org/viewvc/servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/archetype.xml?rev=653764&view=auto
==============================================================================
--- 
servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/archetype.xml
 (added)
+++ 
servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/archetype.xml
 Tue May  6 06:14:46 2008
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<archetype>
+  <id>servicemix-project-root</id>  
+</archetype>

Added: 
servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/archetype-resources/pom.xml
URL: 
http://svn.apache.org/viewvc/servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/archetype-resources/pom.xml?rev=653764&view=auto
==============================================================================
--- 
servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/archetype-resources/pom.xml
 (added)
+++ 
servicemix/smx3/trunk/archetypes/servicemix-project-root/src/main/resources/archetype-resources/pom.xml
 Tue May  6 06:14:46 2008
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
+  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>${groupId}</groupId>
+  <artifactId>${artifactId}</artifactId>
+  <packaging>pom</packaging>
+  <version>${version}</version>
+  <name>ServiceMix :: ${artifactId}</name>
+  <url>http://servicemix.apache.org</url>
+  @{repositories}
+  <properties>
+    <servicemix-version>@{servicemix-version}</servicemix-version>
+  </properties>
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-archetype-plugin</artifactId>      
+        <configuration>
+          
<archetypeCatalog>http://servicemix.apache.org/tooling/${servicemix-version}</archetypeCatalog>
         
+        </configuration>
+      </plugin>
+    </plugins>
+  </build>
+</project>
+


Reply via email to