You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2011/03/03 15:13:00 UTC

svn commit: r1076632 - in /camel/trunk/tooling/archetypes: camel-archetype-activemq/ camel-archetype-activemq/src/main/resources/META-INF/maven/ camel-archetype-activemq/src/main/resources/archetype-resources/ camel-archetype-java/src/main/resources/ME...

Author: davsclaus
Date: Thu Mar  3 14:12:59 2011
New Revision: 1076632

URL: http://svn.apache.org/viewvc?rev=1076632&view=rev
Log:
CAMEL-3658: Migrated the activemq archetype to the new format. And fixed so it works.

Added:
    camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/META-INF/maven/archetype-metadata.xml   (with props)
Removed:
    camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/META-INF/maven/archetype.xml
Modified:
    camel/trunk/tooling/archetypes/camel-archetype-activemq/pom.xml
    camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/archetype-resources/pom.xml
    camel/trunk/tooling/archetypes/camel-archetype-java/src/main/resources/META-INF/maven/archetype-metadata.xml

Modified: camel/trunk/tooling/archetypes/camel-archetype-activemq/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/tooling/archetypes/camel-archetype-activemq/pom.xml?rev=1076632&r1=1076631&r2=1076632&view=diff
==============================================================================
--- camel/trunk/tooling/archetypes/camel-archetype-activemq/pom.xml (original)
+++ camel/trunk/tooling/archetypes/camel-archetype-activemq/pom.xml Thu Mar  3 14:12:59 2011
@@ -34,41 +34,26 @@
   <description>Creates a new Camel project that configures and interacts with ActiveMQ.</description>
   <packaging>maven-archetype</packaging>
 
-  <build>
+ <build>
     <extensions>
       <extension>
         <groupId>org.apache.maven.archetype</groupId>
         <artifactId>archetype-packaging</artifactId>
       </extension>
     </extensions>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-antrun-plugin</artifactId>
-        <executions>
-          <execution>
-            <phase>process-resources</phase>
-            <goals>
-              <goal>run</goal>
-            </goals>
-            <configuration>
-              <tasks>
-                <replace casesensitive="true" file="${project.build.directory}/classes/archetype-resources/pom.xml">
-                  <replacefilter token="$CAMEL_VERSION_REPLACEME$" value="${project.version}" /> 
-                  <replacefilter token="$ACTIVEMQ_VERSION_REPLACEME$" value="${activemq-version}" /> 
-                  <replacefilter token="$XBEAN_VERSION_REPLACEME$" value="${xbean-spring-version}" /> 
-                  <replacefilter token="$LOG4J_VERSION_REPLACEME$" value="${log4j-version}" />
-                  <replacefilter token="$SPRING_VESRION_REPLACEME$" value="${spring-version}" />
-                  <replacefilter token="$JAXB_API_VERSION_REPLACEME$" value="${jaxb-api-version}" /> 
-                  <replacefilter token="$JAXB_IMPL_VERSION_REPLACEME$" value="${jaxb-version}" />
-                  <replacefilter token="$MAVEN_COMPILER_PLUGIN_VERSION_REPLACEME$" value="${maven-compiler-plugin-version}" />
-                </replace>
-              </tasks>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
+    <resources>
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>false</filtering>
+      </resource> 
+      <resource>
+        <directory>src/main/resources</directory>
+        <filtering>true</filtering>
+        <includes>
+          <include>**/archetype-metadata.xml</include>
+        </includes>
+      </resource>
+    </resources>
   </build>
 
 </project>

Added: camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=1076632&view=auto
==============================================================================
--- camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/META-INF/maven/archetype-metadata.xml (added)
+++ camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/META-INF/maven/archetype-metadata.xml Thu Mar  3 14:12:59 2011
@@ -0,0 +1,73 @@
+<?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-descriptor 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="camel-archetype-java"
+    xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
+    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+  <requiredProperties>
+    <requiredProperty key="activemq-version">
+      <defaultValue>${activemq-version}</defaultValue>
+    </requiredProperty>
+    <requiredProperty key="camel-version">
+      <defaultValue>${project.version}</defaultValue>
+    </requiredProperty>
+    <requiredProperty key="log4j-version">
+      <defaultValue>${log4j-version}</defaultValue>
+    </requiredProperty>
+    <requiredProperty key="maven-compiler-plugin-version">
+      <defaultValue>${maven-compiler-plugin-version}</defaultValue>
+    </requiredProperty>
+    <requiredProperty key="slf4j-version">
+      <defaultValue>${slf4j-version}</defaultValue>
+    </requiredProperty>
+    <requiredProperty key="spring-version">
+      <defaultValue>${spring-version}</defaultValue>
+    </requiredProperty>
+    <requiredProperty key="xbean-spring-version">
+      <defaultValue>${xbean-spring-version}</defaultValue>
+    </requiredProperty>
+  </requiredProperties>
+  <fileSets>
+    <fileSet filtered="true" packaged="true" encoding="UTF-8">
+      <directory>src/main/java</directory>
+      <includes>
+        <include>**/*.java</include>
+      </includes>
+    </fileSet>
+    <fileSet filtered="true" encoding="UTF-8">
+      <directory>src/main/resources</directory>
+      <includes>
+        <include>**/*.xml</include>
+        <include>**/*.properties</include>
+      </includes>
+    </fileSet>
+    <fileSet encoding="UTF-8">
+      <directory>src/data</directory>
+      <includes>
+        <include>**/*.xml</include>
+      </includes>
+    </fileSet>
+    <fileSet encoding="UTF-8">
+      <directory></directory>
+      <includes>
+        <include>ReadMe.txt</include>
+      </includes>
+    </fileSet>
+  </fileSets>
+</archetype-descriptor>

Propchange: camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/META-INF/maven/archetype-metadata.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Modified: camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/archetype-resources/pom.xml?rev=1076632&r1=1076631&r2=1076632&view=diff
==============================================================================
--- camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/archetype-resources/pom.xml (original)
+++ camel/trunk/tooling/archetypes/camel-archetype-activemq/src/main/resources/archetype-resources/pom.xml Thu Mar  3 14:12:59 2011
@@ -29,16 +29,6 @@
   <name>A Camel Route</name>
   <url>http://www.myorganization.org</url>
 
-  <properties>
-    <camel-version>$CAMEL_VERSION_REPLACEME$</camel-version>
-    <activemq-version>$ACTIVEMQ_VERSION_REPLACEME$</activemq-version>
-    <xbean-spring-version>$XBEAN_VERSION_REPLACEME$</xbean-spring-version>
-    <log4j-version>$LOG4J_VERSION_REPLACEME$</log4j-version>
-    <spring-version>$SPRING_VESRION_REPLACEME$</spring-version>
-    <jaxb-api-version>$JAXB_API_VERSION_REPLACEME$</jaxb-api-version>
-    <jaxb-impl-version>$JAXB_IMPL_VERSION_REPLACEME$</jaxb-impl-version>
-  </properties>
-
   <dependencies>
     <dependency>
       <groupId>org.apache.activemq</groupId>
@@ -76,6 +66,11 @@
       <version>${spring-version}</version>
     </dependency>   
     <dependency>
+      <groupId>org.slf4j</groupId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <version>${slf4j-version}</version> 
+    </dependency>
+    <dependency>
       <groupId>log4j</groupId> 
       <artifactId>log4j</artifactId> 
       <version>${log4j-version}</version> 
@@ -89,7 +84,7 @@
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
-        <version>$MAVEN_COMPILER_PLUGIN_VERSION_REPLACEME$</version>
+        <version>${maven-compiler-plugin-version}</version>
         <configuration>
           <source>1.6</source>
           <target>1.6</target>

Modified: camel/trunk/tooling/archetypes/camel-archetype-java/src/main/resources/META-INF/maven/archetype-metadata.xml
URL: http://svn.apache.org/viewvc/camel/trunk/tooling/archetypes/camel-archetype-java/src/main/resources/META-INF/maven/archetype-metadata.xml?rev=1076632&r1=1076631&r2=1076632&view=diff
==============================================================================
--- camel/trunk/tooling/archetypes/camel-archetype-java/src/main/resources/META-INF/maven/archetype-metadata.xml (original)
+++ camel/trunk/tooling/archetypes/camel-archetype-java/src/main/resources/META-INF/maven/archetype-metadata.xml Thu Mar  3 14:12:59 2011
@@ -1,4 +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-descriptor 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="camel-archetype-java"
     xmlns="http://maven.apache.org/plugins/maven-archetype-plugin/archetype-descriptor/1.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">