Introduce SLC packaging
authorMathieu Baudier <mbaudier@argeo.org>
Sun, 2 Dec 2007 15:56:29 +0000 (15:56 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Sun, 2 Dec 2007 15:56:29 +0000 (15:56 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@811 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

org.argeo.slc.example/pom.xml
org.argeo.slc.example/src/assembly/slc.xml [new file with mode: 0644]

index fcd7d8b5e5f617d0f04cdf60fa4de7797f8bdf1e..336598d342148602ba45db0100f058720dadf5b7 100644 (file)
@@ -3,66 +3,65 @@
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">\r
        <modelVersion>4.0.0</modelVersion>\r
-       <groupId>org.argeo.slc</groupId>\r
-       <artifactId>org.argeo.slc.example</artifactId>\r
+       <parent>\r
+               <groupId>org.argeo.slc</groupId>\r
+               <artifactId>argeo-slc</artifactId>\r
+               <version>0.5.1-SNAPSHOT</version>\r
+               <relativePath>../org.argeo.slc</relativePath>\r
+       </parent>\r
+       <artifactId>argeo-slc-example</artifactId>\r
+       <name>Argeo SLC Example</name>\r
        <packaging>jar</packaging>\r
-       <version>0.5.1-SNAPSHOT</version>\r
-       <description></description>\r
+       <description>An Example SLC application</description>\r
+       <scm>\r
+               <connection>\r
+                       scm:svn:https://www.argeo.org/svn/slc/trunk/org.argeo.slc.core\r
+               </connection>\r
+               <url>\r
+                       https://www.argeo.org/svn/slc/trunk/org.argeo.slc.core\r
+               </url>\r
+       </scm>\r
        <build>\r
                <plugins>\r
                        <plugin>\r
                                <groupId>org.apache.maven.plugins</groupId>\r
-                               <artifactId>maven-compiler-plugin</artifactId>\r
+                               <artifactId>maven-assembly-plugin</artifactId>\r
                                <configuration>\r
-                                       <source>1.5</source>\r
-                                       <target>1.5</target>\r
-                               </configuration>\r
-                       </plugin>\r
-                       <plugin>\r
-                               <groupId>org.apache.maven.plugins</groupId>\r
-                               <artifactId>maven-surefire-plugin</artifactId>\r
-                               <configuration>\r
-                                       <skip>true</skip>\r
+                                       <descriptors>\r
+                                               <descriptor>src/assembly/slc.xml</descriptor>\r
+                                       </descriptors>\r
                                </configuration>\r
                                <executions>\r
                                        <execution>\r
-                                               <id>surefire-it</id>\r
-                                               <phase>integration-test</phase>\r
+                                               <id>assembly-exampleSlcAppli</id>\r
+                                               <phase>package</phase>\r
                                                <goals>\r
-                                                       <goal>test</goal>\r
+                                                       <goal>single</goal>\r
                                                </goals>\r
-                                               <configuration>\r
-                                                       <skip>false</skip>\r
-                                                       <systemProperties>\r
-                                                               <property>\r
-                                                                       <name>it.slc.base</name>\r
-                                                                       <value>\r
-                                                                               ${basedir}/exampleSlcAppli\r
-                                                                       </value>\r
-                                                               </property>\r
-                                                       </systemProperties>\r
-                                               </configuration>\r
                                        </execution>\r
                                </executions>\r
                        </plugin>\r
+                       <plugin>\r
+                               <groupId>org.apache.maven.plugins</groupId>\r
+                               <artifactId>maven-surefire-plugin</artifactId>\r
+                               <configuration>\r
+                                       <systemProperties>\r
+                                               <property>\r
+                                                       <name>it.slc.base</name>\r
+                                                       <value>${basedir}/exampleSlcAppli</value>\r
+                                               </property>\r
+                                       </systemProperties>\r
+                               </configuration>\r
+                       </plugin>\r
                </plugins>\r
        </build>\r
        <dependencies>\r
                <dependency>\r
                        <groupId>org.argeo.slc</groupId>\r
                        <artifactId>argeo-slc-core</artifactId>\r
-                       <version>0.5.1-SNAPSHOT</version>\r
+                       <version>${project.version}</version>\r
                </dependency>\r
        </dependencies>\r
-       <dependencyManagement>\r
-               <dependencies>\r
-                       <dependency>\r
-                               <groupId>javax.transaction</groupId>\r
-                               <artifactId>jta</artifactId>\r
-                               <version>1.0.1</version>\r
-                       </dependency>\r
-               </dependencies>\r
-       </dependencyManagement>\r
        <repositories>\r
                <repository>\r
                        <id>central</id>\r
diff --git a/org.argeo.slc.example/src/assembly/slc.xml b/org.argeo.slc.example/src/assembly/slc.xml
new file mode 100644 (file)
index 0000000..234c7fc
--- /dev/null
@@ -0,0 +1,18 @@
+<assembly xmlns="http://maven.apache.org/POM/4.0.0"\r
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd">\r
+       <id>slc</id>\r
+       <baseDirectory></baseDirectory>\r
+       <formats>\r
+               <format>zip</format>\r
+       </formats>\r
+       <fileSets>\r
+               <fileSet>\r
+                       <directory>exampleSlcAppli</directory>\r
+                       <outputDirectory></outputDirectory>\r
+                       <includes>\r
+                               <include>**/*</include>\r
+                       </includes>\r
+               </fileSet>\r
+       </fileSets>\r
+</assembly>
\ No newline at end of file