]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - org.argeo.slc.example/pom.xml
Split org.argeo.slc.agent
[gpl/argeo-slc.git] / org.argeo.slc.example / pom.xml
index fcd7d8b5e5f617d0f04cdf60fa4de7797f8bdf1e..75062f62b2f7a4c22f5d14e95c06847d03415144 100644 (file)
@@ -1,72 +1,87 @@
-<?xml version="1.0" encoding="UTF-8"?>\r
-<project 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/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
-       <packaging>jar</packaging>\r
-       <version>0.5.1-SNAPSHOT</version>\r
-       <description></description>\r
-       <build>\r
-               <plugins>\r
-                       <plugin>\r
-                               <groupId>org.apache.maven.plugins</groupId>\r
-                               <artifactId>maven-compiler-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
-                               </configuration>\r
-                               <executions>\r
-                                       <execution>\r
-                                               <id>surefire-it</id>\r
-                                               <phase>integration-test</phase>\r
-                                               <goals>\r
-                                                       <goal>test</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
-               </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
-               </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
-                       <url>http://www.argeo.org/maven/repository</url>\r
-               </repository>\r
-       </repositories>\r
+<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.2-SNAPSHOT</version>
+               <relativePath>../org.argeo.slc</relativePath>
+       </parent>
+       <artifactId>org.argeo.slc.example</artifactId>
+       <name>Argeo SLC Demo Example 1</name>
+       <packaging>jar</packaging>
+       <description>An Example SLC application</description>
+       <scm>
+               <connection>scm:svn:https://www.argeo.org/svn/slc/trunk/org.argeo.slc.example</connection>
+               <url>https://www.argeo.org/svn/slc/trunk/org.argeo.slc.example</url>
+       </scm>
+       <build>
+               <plugins>
+                       <!-- Look to parent pom for inheritances -->
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-compiler-plugin</artifactId>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-source-plugin</artifactId>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-assembly-plugin</artifactId>
+                               <configuration>
+                                       <descriptors>
+                                               <descriptor>src/assembly/slc.xml</descriptor>
+                                       </descriptors>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <id>assembly-exampleSlcAppli</id>
+                                               <phase>package</phase>
+                                               <goals>
+                                                       <goal>single</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.maven.plugins</groupId>
+                               <artifactId>maven-surefire-plugin</artifactId>
+                               <configuration>
+                                       <systemProperties>
+                                               <property>
+                                                       <name>slc.rootDir</name>
+                                                       <value>${basedir}/src/main/slc/root</value>
+                                               </property>
+                                       </systemProperties>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
+                               <configuration>
+                                       <instructions>
+                                               <Export-Package>
+                                                       org.argeo.slc.example.*
+                                               </Export-Package>
+                                               <Import-Package>*,org.argeo.slc.core.test.spring,org.springframework.oxm.castor,org.argeo.slc.msg.test.tree,org.apache.tools.ant,org.apache.tools.ant.taskdefs,org.apache.tools.ant.types</Import-Package>
+                                               <Bundle-Activator>org.argeo.slc.example.Activator</Bundle-Activator>
+                                               <Require-Bundle>org.argeo.slc.core,org.argeo.slc.agent</Require-Bundle>
+                                       </instructions>
+                               </configuration>
+                       </plugin>
+               </plugins>
+       </build>
+       <dependencies>
+               <dependency>
+                       <groupId>org.argeo.slc</groupId>
+                       <artifactId>org.argeo.slc.core</artifactId>
+                       <version>${project.version}</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.argeo.slc</groupId>
+                       <artifactId>org.argeo.slc.agent</artifactId>
+                       <version>${project.version}</version>
+               </dependency>
+       </dependencies>
 </project>
\ No newline at end of file