You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ge...@apache.org on 2008/05/06 16:15:19 UTC

svn commit: r653786 - in /servicemix/smx3/branches/servicemix-3.2/archetypes: ./ servicemix-archetype-catalog/ servicemix-archetype-catalog/src/ servicemix-archetype-catalog/src/main/ servicemix-archetype-catalog/src/main/resources/ servicemix-archetyp...

Author: gertv
Date: Tue May  6 07:15:17 2008
New Revision: 653786

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

Added:
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/   (with props)
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/pom.xml
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/src/
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/src/main/
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/src/main/resources/
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/src/main/resources/filter.xsl
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/   (with props)
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/pom.xml
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/META-INF/
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/archetype.xml
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/archetype-resources/
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/archetype-resources/pom.xml
Modified:
    servicemix/smx3/branches/servicemix-3.2/archetypes/   (props changed)
    servicemix/smx3/branches/servicemix-3.2/archetypes/pom.xml
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetypes-itests/pom.xml
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-cxf-bc-service-unit/   (props changed)
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-cxf-se-service-unit/   (props changed)
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-file-poller-service-unit/   (props changed)
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-file-sender-service-unit/   (props changed)
    servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-osworkflow-service-unit/   (props changed)

Propchange: servicemix/smx3/branches/servicemix-3.2/archetypes/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue May  6 07:15:17 2008
@@ -1 +1,2 @@
 *.iml
+target

Modified: servicemix/smx3/branches/servicemix-3.2/archetypes/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/archetypes/pom.xml?rev=653786&r1=653785&r2=653786&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/archetypes/pom.xml (original)
+++ servicemix/smx3/branches/servicemix-3.2/archetypes/pom.xml Tue May  6 07:15:17 2008
@@ -58,10 +58,12 @@
         <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-project-root</module>
+        <module>servicemix-archetype-catalog</module>
+        <module>servicemix-archetypes-itests</module>
     </modules>
 
     <build>

Propchange: servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue May  6 07:15:17 2008
@@ -0,0 +1 @@
+target

Added: servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/pom.xml?rev=653786&view=auto
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/pom.xml (added)
+++ servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/pom.xml Tue May  6 07:15:17 2008
@@ -0,0 +1,120 @@
+<?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.2.2-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.servicemix.tooling</groupId>
+  <artifactId>catalog</artifactId>
+  <packaging>pom</packaging>
+  <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>
+        <executions>
+          <execution>
+            <phase>generate-resources</phase>
+            <goals>
+              <goal>run</goal>
+            </goals>
+            <configuration>
+              <tasks>
+                <mkdir dir="${project.build.directory}"/>
+                <mkdir dir="${project.build.directory}/temp"/>
+              </tasks>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      <plugin>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-archetype-plugin</artifactId>
+        <executions>
+          <execution>
+            <phase>generate-resources</phase>        
+            <goals>
+              <goal>crawl</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <repository>${settings.localRepository}/org/apache/servicemix/tooling</repository>
+          <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>
+
+</project>

Added: servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/src/main/resources/filter.xsl
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/src/main/resources/filter.xsl?rev=653786&view=auto
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/src/main/resources/filter.xsl (added)
+++ servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetype-catalog/src/main/resources/filter.xsl Tue May  6 07:15:17 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/branches/servicemix-3.2/archetypes/servicemix-archetypes-itests/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetypes-itests/pom.xml?rev=653786&r1=653785&r2=653786&view=diff
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetypes-itests/pom.xml (original)
+++ servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-archetypes-itests/pom.xml Tue May  6 07:15:17 2008
@@ -171,6 +171,11 @@
       <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>
@@ -232,6 +237,13 @@
       <artifactId>servicemix-osworkflow</artifactId>
       <version>${servicemix-version}</version>
     </dependency>
+    <!-- somehow, this is needed to get the itests running successfully -->
+    <dependency>
+      <groupId>org.apache.servicemix</groupId>
+      <artifactId>servicemix-core</artifactId>
+      <version>${servicemix-version}</version>
+      <scope>test</scope>
+    </dependency>
   </dependencies>
   
   <build>

Propchange: servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-cxf-bc-service-unit/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue May  6 07:15:17 2008
@@ -1 +1,4 @@
 target
+.classpath
+.project
+.settings

Propchange: servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-cxf-se-service-unit/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue May  6 07:15:17 2008
@@ -1 +1,4 @@
 target
+.classpath
+.project
+.settings

Propchange: servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-file-poller-service-unit/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue May  6 07:15:17 2008
@@ -0,0 +1,4 @@
+target
+.classpath
+.project
+.settings

Propchange: servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-file-sender-service-unit/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue May  6 07:15:17 2008
@@ -0,0 +1,4 @@
+target
+.classpath
+.project
+.settings

Propchange: servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-osworkflow-service-unit/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue May  6 07:15:17 2008
@@ -0,0 +1,4 @@
+target
+.classpath
+.project
+.settings

Propchange: servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue May  6 07:15:17 2008
@@ -0,0 +1,4 @@
+target
+.classpath
+.project
+.settings

Added: servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/pom.xml?rev=653786&view=auto
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/pom.xml (added)
+++ servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/pom.xml Tue May  6 07:15:17 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.2.2-SNAPSHOT</version>
+  </parent>
+
+  <groupId>org.apache.servicemix.tooling</groupId>
+  <artifactId>servicemix-project-root</artifactId>
+  <name>ServiceMix :: Archetypes :: ProjectRoot</name>
+
+</project>

Added: servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/archetype.xml?rev=653786&view=auto
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/archetype.xml (added)
+++ servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/META-INF/maven/archetype.xml Tue May  6 07:15:17 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/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/archetype-resources/pom.xml?rev=653786&view=auto
==============================================================================
--- servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/archetype-resources/pom.xml (added)
+++ servicemix/smx3/branches/servicemix-3.2/archetypes/servicemix-project-root/src/main/resources/archetype-resources/pom.xml Tue May  6 07:15:17 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>
+