Introduce execution module archetype
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 25 Oct 2012 15:12:19 +0000 (15:12 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 25 Oct 2012 15:12:19 +0000 (15:12 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@5649 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

23 files changed:
archetypes/org.argeo.slc.archetype.basic/.project [deleted file]
archetypes/org.argeo.slc.archetype.basic/archetype.properties [deleted file]
archetypes/org.argeo.slc.archetype.basic/pom.xml [deleted file]
archetypes/org.argeo.slc.archetype.basic/src/main/resources/META-INF/maven/archetype-metadata.xml [deleted file]
archetypes/org.argeo.slc.archetype.basic/src/main/resources/META-INF/maven/archetype.xml [deleted file]
archetypes/org.argeo.slc.archetype.basic/src/main/resources/archetype-resources/pom.xml [deleted file]
archetypes/org.argeo.slc.executionmodule/.project [new file with mode: 0644]
archetypes/org.argeo.slc.executionmodule/archetype.properties [new file with mode: 0644]
archetypes/org.argeo.slc.executionmodule/pom.xml [new file with mode: 0644]
archetypes/org.argeo.slc.executionmodule/src/main/resources/META-INF/maven/archetype-metadata.xml [new file with mode: 0644]
archetypes/org.argeo.slc.executionmodule/src/main/resources/META-INF/maven/archetype.xml [new file with mode: 0644]
archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/.gitignore [new file with mode: 0644]
archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/.project [new file with mode: 0644]
archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/META-INF/.gitignore [new file with mode: 0644]
archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/META-INF/spring/main.xml [new file with mode: 0644]
archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/META-INF/spring/osgi.xml [new file with mode: 0644]
archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/build.properties [new file with mode: 0644]
archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/pom.xml [new file with mode: 0644]
archetypes/pom.xml
lib/org.argeo.slc.lib.repo/.project [new file with mode: 0644]
lib/org.argeo.slc.lib.repo/build.properties [new file with mode: 0644]
lib/org.argeo.slc.lib.repo/pom.xml [new file with mode: 0644]
pom.xml

diff --git a/archetypes/org.argeo.slc.archetype.basic/.project b/archetypes/org.argeo.slc.archetype.basic/.project
deleted file mode 100644 (file)
index 663f173..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
-       <name>org.argeo.slc.archetype.basic</name>
-       <comment></comment>
-       <projects>
-       </projects>
-       <buildSpec>
-       </buildSpec>
-       <natures>
-       </natures>
-</projectDescription>
diff --git a/archetypes/org.argeo.slc.archetype.basic/archetype.properties b/archetypes/org.argeo.slc.archetype.basic/archetype.properties
deleted file mode 100644 (file)
index 00dcecb..0000000
+++ /dev/null
@@ -1 +0,0 @@
-slcArchetype.slc.version=0.11.2-SNAPSHOT
\ No newline at end of file
diff --git a/archetypes/org.argeo.slc.archetype.basic/pom.xml b/archetypes/org.argeo.slc.archetype.basic/pom.xml
deleted file mode 100644 (file)
index 6274d40..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<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.argeo.slc</groupId>
-               <artifactId>archetype</artifactId>
-               <version>0.11.4</version>
-               <relativePath>..</relativePath>
-       </parent>
-       <groupId>org.argeo.slc.archetypes</groupId>
-       <artifactId>org.argeo.slc.archetype.basic</artifactId>
-       <name>SLC Basic Project Archetype</name>
-</project>
\ No newline at end of file
diff --git a/archetypes/org.argeo.slc.archetype.basic/src/main/resources/META-INF/maven/archetype-metadata.xml b/archetypes/org.argeo.slc.archetype.basic/src/main/resources/META-INF/maven/archetype-metadata.xml
deleted file mode 100644 (file)
index 343af3d..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<archetype-descriptor name="org.argeo.slc.archetype.basic">
-       <requiredProperties>
-               <requiredProperty key="slcArchetype.slc.version">
-                       <defaultValue>0.11.2-SNAPSHOT</defaultValue>
-               </requiredProperty>
-       </requiredProperties>
-       <fileSets>
-       <!-- 
-               <fileSet filtered="true">
-                       <directory>src/slc</directory>
-                       <includes>
-                               <include>*/**</include>
-                       </includes>
-               </fileSet>
-                -->
-               <fileSet filtered="true">
-                       <directory></directory>
-                       <includes>
-                               <include>pom.xml</include>
-                       </includes>
-               </fileSet>
-       </fileSets>
-</archetype-descriptor>
\ No newline at end of file
diff --git a/archetypes/org.argeo.slc.archetype.basic/src/main/resources/META-INF/maven/archetype.xml b/archetypes/org.argeo.slc.archetype.basic/src/main/resources/META-INF/maven/archetype.xml
deleted file mode 100644 (file)
index 648c707..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<archetype>
-  <id>org.argeo.slc.archetype.basic</id>
-  <resources>
-  <!-- 
-    <resource>src/assembly/slcapp.xml</resource>
-    <resource>src/slc/conf/runtime/default.xml</resource>
-    <resource>src/slc/conf/applicationContext.xml</resource>
-    <resource>src/slc/conf/slc.properties</resource>
-    <resource>src/slc/root/slcRoot.properties</resource>
-    <resource>src/slc/work/log/slcApp.log</resource>
-     -->
-  </resources>
- </archetype>
diff --git a/archetypes/org.argeo.slc.archetype.basic/src/main/resources/archetype-resources/pom.xml b/archetypes/org.argeo.slc.archetype.basic/src/main/resources/archetype-resources/pom.xml
deleted file mode 100644 (file)
index 228f0e0..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-<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>
-       <version>${version}</version>
-       <name>(Generated SLC Application Template)</name>
-       <properties>
-               <slc.version>${slcArchetype.slc.version}</slc.version>
-       </properties>
-       <build>
-               <plugins>
-                       <plugin>
-                               <groupId>org.apache.maven.plugins</groupId>
-                               <artifactId>maven-assembly-plugin</artifactId>
-                               <configuration>
-                                       <descriptors>
-                                               <descriptor>src/assembly/slcapp.xml</descriptor>
-                                       </descriptors>
-                               </configuration>
-                               <executions>
-                                       <execution>
-                                               <id>assembly-slcapp</id>
-                                               <phase>package</phase>
-                                               <goals>
-                                                       <goal>single</goal>
-                                               </goals>
-                                       </execution>
-                               </executions>
-                       </plugin>
-               </plugins>
-       </build>
-       <dependencies>
-               <dependency>
-                       <groupId>org.argeo.slc.runtime</groupId>
-                       <artifactId>org.argeo.slc.support.simple</artifactId>
-                       <version>${slc.version}</version>
-               </dependency>
-               <dependency>
-                       <groupId>org.argeo.slc.runtime</groupId>
-                       <artifactId>org.argeo.slc.support.ant</artifactId>
-                       <version>${slc.version}</version>
-               </dependency>
-               <dependency>
-                       <groupId>org.argeo.slc.runtime</groupId>
-                       <artifactId>org.argeo.slc.support.castor</artifactId>
-                       <version>${slc.version}</version>
-               </dependency>
-               <dependency>
-                       <groupId>org.argeo.slc.runtime</groupId>
-                       <artifactId>org.argeo.slc.launcher</artifactId>
-                       <version>${slc.version}</version>
-                       <scope>provided</scope>
-               </dependency>
-       </dependencies>
-</project>
\ No newline at end of file
diff --git a/archetypes/org.argeo.slc.executionmodule/.project b/archetypes/org.argeo.slc.executionmodule/.project
new file mode 100644 (file)
index 0000000..663f173
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>org.argeo.slc.archetype.basic</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+       </buildSpec>
+       <natures>
+       </natures>
+</projectDescription>
diff --git a/archetypes/org.argeo.slc.executionmodule/archetype.properties b/archetypes/org.argeo.slc.executionmodule/archetype.properties
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/archetypes/org.argeo.slc.executionmodule/pom.xml b/archetypes/org.argeo.slc.executionmodule/pom.xml
new file mode 100644 (file)
index 0000000..71c6891
--- /dev/null
@@ -0,0 +1,20 @@
+<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.argeo.slc</groupId>
+               <artifactId>archetypes</artifactId>
+               <version>1.1.4-SNAPSHOT</version>
+               <relativePath>..</relativePath>
+       </parent>
+       <artifactId>org.argeo.slc.executionmodule</artifactId>
+       <name>SLC Basic Project Archetype</name>
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
+                       </plugin>
+               </plugins>
+       </build>
+</project>
\ No newline at end of file
diff --git a/archetypes/org.argeo.slc.executionmodule/src/main/resources/META-INF/maven/archetype-metadata.xml b/archetypes/org.argeo.slc.executionmodule/src/main/resources/META-INF/maven/archetype-metadata.xml
new file mode 100644 (file)
index 0000000..1d55c35
--- /dev/null
@@ -0,0 +1,10 @@
+<archetype-descriptor name="org.argeo.slc.executionmodule">
+       <fileSets>
+               <fileSet filtered="true">
+                       <directory></directory>
+                       <includes>
+                               <include>*/**</include>
+                       </includes>
+               </fileSet>
+       </fileSets>
+</archetype-descriptor>
\ No newline at end of file
diff --git a/archetypes/org.argeo.slc.executionmodule/src/main/resources/META-INF/maven/archetype.xml b/archetypes/org.argeo.slc.executionmodule/src/main/resources/META-INF/maven/archetype.xml
new file mode 100644 (file)
index 0000000..e39a44e
--- /dev/null
@@ -0,0 +1,3 @@
+<archetype>
+  <id>org.argeo.slc.executionmodule</id>
+ </archetype>
diff --git a/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/.gitignore b/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/.gitignore
new file mode 100644 (file)
index 0000000..ea8c4bf
--- /dev/null
@@ -0,0 +1 @@
+/target
diff --git a/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/.project b/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/.project
new file mode 100644 (file)
index 0000000..0fe55c4
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>${artifactId}</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.pde.ManifestBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.pde.SchemaBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.pde.PluginNature</nature>
+       </natures>
+</projectDescription>
diff --git a/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/META-INF/.gitignore b/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/META-INF/.gitignore
new file mode 100644 (file)
index 0000000..4854a41
--- /dev/null
@@ -0,0 +1 @@
+/MANIFEST.MF
diff --git a/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/META-INF/spring/main.xml b/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/META-INF/spring/main.xml
new file mode 100644 (file)
index 0000000..cca8c03
--- /dev/null
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans xmlns:flow="http://www.argeo.org/schema/slc-flow" xmlns="http://www.springframework.org/schema/beans"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"\r
+       xsi:schemaLocation="\r
+       http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd\r
+       http://www.argeo.org/schema/slc-flow http://www.argeo.org/schema/slc-flow-1.2.xsd">\r
+\r
+       <!-- Hello world -->\r
+       <flow:flow name="hello">\r
+               <description>Print Hello World!</description>\r
+               <bean p:message="Hello World!" class="org.argeo.slc.core.execution.tasks.Echo" />\r
+       </flow:flow>\r
+\r
+\r
+       <flow:flow name="HelloWorld/WithVar">\r
+               <description>Print Hello World! with a variable and interface proxying\r
+                       (lighter)</description>\r
+               <flow:spec>\r
+                       <flow:primitive name="testKey" value="555" />\r
+               </flow:spec>\r
+               <bean p:message="Hello World! @{testKey}" class="org.argeo.slc.core.execution.tasks.Echo">\r
+                       <flow:variable proxy-target-class="false" />\r
+               </bean>\r
+       </flow:flow>\r
+\r
+</beans>
\ No newline at end of file
diff --git a/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/META-INF/spring/osgi.xml b/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/META-INF/spring/osgi.xml
new file mode 100644 (file)
index 0000000..ceadbed
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>\r
+<beans:beans xmlns="http://www.springframework.org/schema/osgi"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:beans="http://www.springframework.org/schema/beans"\r
+       xsi:schemaLocation="http://www.springframework.org/schema/osgi  \r
+       http://www.springframework.org/schema/osgi/spring-osgi-1.1.xsd\r
+       http://www.springframework.org/schema/beans   \r
+       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">\r
+\r
+       <!-- IMPORTS -->\r
+       <beans:import resource="classpath:org/argeo/slc/core/execution/spring.xml" />\r
+       <beans:import resource="classpath:org/argeo/slc/osgi/execution.xml" />\r
+\r
+</beans:beans>
\ No newline at end of file
diff --git a/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/build.properties b/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/build.properties
new file mode 100644 (file)
index 0000000..5f22cdd
--- /dev/null
@@ -0,0 +1 @@
+bin.includes = META-INF/
diff --git a/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/pom.xml b/archetypes/org.argeo.slc.executionmodule/src/main/resources/archetype-resources/pom.xml
new file mode 100644 (file)
index 0000000..0cafa83
--- /dev/null
@@ -0,0 +1,13 @@
+<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.argeo.slc</groupId>
+               <artifactId>lib</artifactId>
+               <version>${version}</version>
+               <relativePath>..</relativePath>
+       </parent>
+       <groupId>${groupId}</groupId>
+       <artifactId>${artifactId}</artifactId>
+       <name>(Generated SLC Execution Module Template)</name>
+</project>
\ No newline at end of file
index 0548b9b8fb1027f4ef2785dadd0a6f920a94af7e..0f7afff1ae4bc1b8c27e8fb9c81cf05b6143c76c 100644 (file)
@@ -1,16 +1,33 @@
-<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">
+<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.argeo.slc</groupId>
                <artifactId>argeo-slc</artifactId>
-               <version>0.11.4</version>
+               <version>1.1.4-SNAPSHOT</version>
                <relativePath>..</relativePath>
        </parent>
-       <groupId>org.argeo.slc</groupId>
-       <artifactId>archetype</artifactId>
+       <artifactId>archetypes</artifactId>
        <packaging>pom</packaging>
-       <name>SLC Maven Archetype</name>
+       <name>SLC Maven Archetypes</name>
        <modules>
-               <module>org.argeo.slc.archetype.basic</module>
+               <module>org.argeo.slc.executionmodule</module>
        </modules>
+       <build>
+               <plugins>
+                       <plugin>
+                               <artifactId>maven-clean-plugin</artifactId>
+                               <configuration>
+                                       <filesets>
+                                               <fileset>
+                                                       <directory>META-INF</directory>
+                                                       <includes>
+                                                               <include>MANIFEST.MF</include>
+                                                       </includes>
+                                               </fileset>
+                                       </filesets>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
 </project>
\ No newline at end of file
diff --git a/lib/org.argeo.slc.lib.repo/.project b/lib/org.argeo.slc.lib.repo/.project
new file mode 100644 (file)
index 0000000..1a9a2c8
--- /dev/null
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+       <name>org.argeo.slc.lib.repo</name>
+       <comment></comment>
+       <projects>
+       </projects>
+       <buildSpec>
+               <buildCommand>
+                       <name>org.eclipse.pde.ManifestBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+               <buildCommand>
+                       <name>org.eclipse.pde.SchemaBuilder</name>
+                       <arguments>
+                       </arguments>
+               </buildCommand>
+       </buildSpec>
+       <natures>
+               <nature>org.eclipse.pde.PluginNature</nature>
+       </natures>
+</projectDescription>
diff --git a/lib/org.argeo.slc.lib.repo/build.properties b/lib/org.argeo.slc.lib.repo/build.properties
new file mode 100644 (file)
index 0000000..5f22cdd
--- /dev/null
@@ -0,0 +1 @@
+bin.includes = META-INF/
diff --git a/lib/org.argeo.slc.lib.repo/pom.xml b/lib/org.argeo.slc.lib.repo/pom.xml
new file mode 100644 (file)
index 0000000..9cd454c
--- /dev/null
@@ -0,0 +1,12 @@
+<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.argeo.slc</groupId>
+               <artifactId>lib</artifactId>
+               <version>1.1.4-SNAPSHOT</version>
+               <relativePath>..</relativePath>
+       </parent>
+       <artifactId>org.argeo.slc.lib.repo</artifactId>
+       <name>SLC Lib - Repository Utilities</name>
+</project>
diff --git a/pom.xml b/pom.xml
index 1169cb4ae31ff844a288ad942808262423133999..89ee2d48fd0e4eab4b98c07834ef338c8e24c68e 100644 (file)
--- a/pom.xml
+++ b/pom.xml
                <module>modules</module>
                <module>lib</module>
                <module>plugins</module>
-               <module>demo</module>
                <module>dep</module>
+               <module>archetypes</module>
                <module>dist</module>
+               <module>demo</module>
        </modules>
        <url>${site.urlBase}/${developmentCycle.slc}</url>
        <scm>