You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by jb...@apache.org on 2009/06/10 13:24:52 UTC
svn commit: r783295 - in /servicemix/archetypes/trunk:
servicemix-exec-service-unit/src/main/resources/archetype-resources/
servicemix-script-service-unit/ servicemix-script-service-unit/src/
servicemix-script-service-unit/src/main/ servicemix-script-s...
Author: jbonofre
Date: Wed Jun 10 11:24:52 2009
New Revision: 783295
URL: http://svn.apache.org/viewvc?rev=783295&view=rev
Log:
[SM-1866] Add a maven archetype for servicemix-script component. Correct mistake in the servicemix-exec archetype.
Added:
servicemix/archetypes/trunk/servicemix-script-service-unit/
servicemix/archetypes/trunk/servicemix-script-service-unit/pom.xml (with props)
servicemix/archetypes/trunk/servicemix-script-service-unit/src/
servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/
servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/
servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/META-INF/
servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/META-INF/maven/
servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/META-INF/maven/archetype.xml (with props)
servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/
servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/pom.xml (with props)
servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/src/
servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/src/main/
servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/src/main/resources/
servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml (with props)
Modified:
servicemix/archetypes/trunk/servicemix-exec-service-unit/src/main/resources/archetype-resources/pom.xml
Modified: servicemix/archetypes/trunk/servicemix-exec-service-unit/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/archetypes/trunk/servicemix-exec-service-unit/src/main/resources/archetype-resources/pom.xml?rev=783295&r1=783294&r2=783295&view=diff
==============================================================================
--- servicemix/archetypes/trunk/servicemix-exec-service-unit/src/main/resources/archetype-resources/pom.xml (original)
+++ servicemix/archetypes/trunk/servicemix-exec-service-unit/src/main/resources/archetype-resources/pom.xml Wed Jun 10 11:24:52 2009
@@ -25,7 +25,7 @@
<groupId>${groupId}</groupId>
<artifactId>${artifactId}</artifactId>
- <packaging>jbi-maven-plugin</packaging>
+ <packaging>jbi-service-unit</packaging>
<version>${version}</version>
<name>An Exec service unit</name>
<url>http://www.myorganization.org</url>
Added: servicemix/archetypes/trunk/servicemix-script-service-unit/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/archetypes/trunk/servicemix-script-service-unit/pom.xml?rev=783295&view=auto
==============================================================================
--- servicemix/archetypes/trunk/servicemix-script-service-unit/pom.xml (added)
+++ servicemix/archetypes/trunk/servicemix-script-service-unit/pom.xml Wed Jun 10 11:24:52 2009
@@ -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.
+-->
+<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>
+
+ <parent>
+ <groupId>org.apache.servicemix</groupId>
+ <artifactId>archetypes</artifactId>
+ <version>2009.01-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.apache.servicemix.tooling</groupId>
+ <artifactId>servicemix-script-service-unit</artifactId>
+ <name>ServiceMix :: Archetypes :: ScriptServiceUnit</name>
+
+</project>
\ No newline at end of file
Propchange: servicemix/archetypes/trunk/servicemix-script-service-unit/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/META-INF/maven/archetype.xml
URL: http://svn.apache.org/viewvc/servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/META-INF/maven/archetype.xml?rev=783295&view=auto
==============================================================================
--- servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/META-INF/maven/archetype.xml (added)
+++ servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/META-INF/maven/archetype.xml Wed Jun 10 11:24:52 2009
@@ -0,0 +1,25 @@
+<?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-su</id>
+ <resources>
+ <resource>src/main/resources/xbean.xml</resource>
+ </resources>
+</archetype>
\ No newline at end of file
Propchange: servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/META-INF/maven/archetype.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/pom.xml
URL: http://svn.apache.org/viewvc/servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/pom.xml?rev=783295&view=auto
==============================================================================
--- servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/pom.xml (added)
+++ servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/pom.xml Wed Jun 10 11:24:52 2009
@@ -0,0 +1,61 @@
+<?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>jbi-service-unit</packaging>
+ <version>${version}</version>
+ <name>A Script service unit</name>
+ <url>http://www.myorganization.org</url>
+
+ @{repositories}
+
+ <properties>
+ <componentName>servicemix-script</componentName>
+ </properties>
+
+ <build>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ <includes>
+ <include>**/*</include>
+ </includes>
+ </resource>
+ </resources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.servicemix.tooling</groupId>
+ <artifactId>jbi-maven-plugin</artifactId>
+ <version>@{jbi-maven-plugin-version}</version>
+ <extensions>true</extensions>
+ <configuration>
+ <type>service-unit</type>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
Propchange: servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
URL: http://svn.apache.org/viewvc/servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml?rev=783295&view=auto
==============================================================================
--- servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml (added)
+++ servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml Wed Jun 10 11:24:52 2009
@@ -0,0 +1,48 @@
+<?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.
+
+-->
+<beans xmlns:script="http://servicemix.apache.org/script/1.0"
+ xmlns:replaceMe="http://servicemix.apache.org/replaceMe"
+ xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="
+ http://servicemix.apache.org/script/1.0 http://servicemix.apache.org/schema/servicemix-script-@{servicemix-version}.xsd
+ http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
+
+ <script:exchangeProcessor service="replaceMe:groovy" endpoint="endpoint">
+ <property name="helpers">
+ <list>
+ <ref bean="groovyExchangeHelper"/>
+ </list>
+ </property>
+ <property name="implementation" ref="groovyExchangeProcessor"/>
+ </script:exchangeProcessor>
+
+ <script:exchangeHelper id="groovyExchangeHelper" singleton="true"/>
+
+ <lang:groovy id="groovyExchangeProcessor">
+ <lang:inline-script>
+ <![CDATA[
+ ... put your script here ...
+ ]]>
+ </lang:inline-script>
+ <lang:property name="exchangeHelper" ref="groovyExchangeHelper"/>
+ </lang:groovy>
+
+</beans>
\ No newline at end of file
Propchange: servicemix/archetypes/trunk/servicemix-script-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
------------------------------------------------------------------------------
svn:mime-type = text/plain