Reintroduce archetypes
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 25 Oct 2012 14:21:11 +0000 (14:21 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 25 Oct 2012 14:21:11 +0000 (14:21 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@5648 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

archetypes/org.argeo.slc.archetype.basic/.project [new file with mode: 0644]
archetypes/org.argeo.slc.archetype.basic/archetype.properties [new file with mode: 0644]
archetypes/org.argeo.slc.archetype.basic/pom.xml [new file with mode: 0644]
archetypes/org.argeo.slc.archetype.basic/src/main/resources/META-INF/maven/archetype-metadata.xml [new file with mode: 0644]
archetypes/org.argeo.slc.archetype.basic/src/main/resources/META-INF/maven/archetype.xml [new file with mode: 0644]
archetypes/org.argeo.slc.archetype.basic/src/main/resources/archetype-resources/pom.xml [new file with mode: 0644]
archetypes/pom.xml [new file with mode: 0644]

diff --git a/archetypes/org.argeo.slc.archetype.basic/.project b/archetypes/org.argeo.slc.archetype.basic/.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.archetype.basic/archetype.properties b/archetypes/org.argeo.slc.archetype.basic/archetype.properties
new file mode 100644 (file)
index 0000000..00dcecb
--- /dev/null
@@ -0,0 +1 @@
+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
new file mode 100644 (file)
index 0000000..6274d40
--- /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>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
new file mode 100644 (file)
index 0000000..343af3d
--- /dev/null
@@ -0,0 +1,23 @@
+<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
new file mode 100644 (file)
index 0000000..648c707
--- /dev/null
@@ -0,0 +1,13 @@
+<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
new file mode 100644 (file)
index 0000000..228f0e0
--- /dev/null
@@ -0,0 +1,56 @@
+<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/pom.xml b/archetypes/pom.xml
new file mode 100644 (file)
index 0000000..0548b9b
--- /dev/null
@@ -0,0 +1,16 @@
+<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>
+               <relativePath>..</relativePath>
+       </parent>
+       <groupId>org.argeo.slc</groupId>
+       <artifactId>archetype</artifactId>
+       <packaging>pom</packaging>
+       <name>SLC Maven Archetype</name>
+       <modules>
+               <module>org.argeo.slc.archetype.basic</module>
+       </modules>
+</project>
\ No newline at end of file