]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - sandbox/argeo.slc.jemmytest/pom.xml
Docuementation
[gpl/argeo-slc.git] / sandbox / argeo.slc.jemmytest / pom.xml
index f1e2acfcf449bd72408e41054db2c9a3a1e5eaf4..92aed903eeade5f9b98b5d33f142922e2af43767 100644 (file)
        <artifactId>org.argeo.slc.sandbox.jemmytest</artifactId>
        <name>SLC Sandbox JemmyTest</name>
        <packaging>jar</packaging>
-       <properties></properties>
+       <properties>
+               <bundlesToStart>
+                       org.springframework.osgi.extender,
+                       org.argeo.slc.detached,
+                       org.argeo.slc.sandbox.jemmytest,
+                       org.argeo.slc.support.equinox
+               </bundlesToStart>
+       </properties>
        <build>
                <plugins>
                        <plugin>
@@ -20,7 +27,7 @@
                        <plugin>
                                <groupId>org.apache.felix</groupId>
                                <artifactId>maven-bundle-plugin</artifactId>
-                               <version>${version.maven-bundle-plugin}</version>
+
                                <configuration>
                                        <instructions>
                                                <Export-Package>
                                <artifactId>maven-surefire-plugin</artifactId>
                                <configuration></configuration>
                        </plugin>
+                       <plugin>
+                               <artifactId>maven-dependency-plugin</artifactId>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>unpack</goal>
+                                               </goals>
+                                               <phase>initialize</phase>
+                                               <configuration>
+                                                       <outputDirectory>target/equinox</outputDirectory>
+                                                       <artifactItems>
+                                                               <artifactItem>
+                                                                       <groupId>org.argeo.slc.runtime</groupId>
+                                                                       <artifactId>org.argeo.slc.osgiboot</artifactId>
+                                                                       <version>${version.slc}</version>
+                                                                       <type>tar.gz</type>
+                                                                       <classifier>osgiboot</classifier>
+                                                               </artifactItem>
+                                                       </artifactItems>
+                                               </configuration>
+                                       </execution>
+                               </executions>
+
+                       </plugin>
+                       <plugin>
+                               <artifactId>maven-antrun-plugin</artifactId>
+                               <configuration>
+                                       <tasks>
+                                               <path id="slc.osgi.locations.raw">
+                                                       <dirset dir="${user.dir}/modules">
+                                                               <include name="*" />
+                                                               <exclude name=".svn" />
+                                                       </dirset>
+                                                       <path refid="maven.compile.classpath" />
+                                               </path>
+                                               <pathconvert dirsep="/" property="slc.osgi.locations"
+                                                       refid="slc.osgi.locations.raw" />
+
+                                               <property name="slc.osgi.start" value="${bundlesToStart}" />
+                                               <ant antfile="target/equinox/osgiboot.xml" />
+
+                                       </tasks>
+                               </configuration>
+                       </plugin>
+
                </plugins>
        </build>
        <profiles></profiles>
                <dependency>
                        <groupId>org.argeo.slc.runtime</groupId>
                        <artifactId>org.argeo.slc.lib.detached</artifactId>
-                       <version>${project.version}</version>
+                       <version>${version.slc}</version>
                </dependency>
                <dependency>
                        <groupId>org.argeo.slc.runtime</groupId>
                        <artifactId>org.argeo.slc.launcher</artifactId>
-                       <version>${project.version}</version>
+                       <version>${version.slc}</version>
                </dependency>
                <dependency>
                        <groupId>org.argeo.dep.jemmy</groupId>
                <dependency>
                        <groupId>org.argeo.slc</groupId>
                        <artifactId>org.argeo.slc.detached.launcher</artifactId>
-                       <version>${project.version}</version>
+                       <version>${version.slc}</version>
+               </dependency>
+
+               <dependency>
+                       <groupId>org.springframework.osgi</groupId>
+                       <artifactId>org.springframework.osgi.extender</artifactId>
+               </dependency>
+               <dependency>
+                       <groupId>org.argeo.slc.runtime</groupId>
+                       <artifactId>org.argeo.slc.support.equinox</artifactId>
+                       <version>${version.slc}</version>
                </dependency>
 
                <!--
                        <dependency> <groupId>org.argeo.slc</groupId>
                        <artifactId>org.argeo.slc.detached</artifactId>
-                       <version>${project.version}</version> <exclusions> <exclusion>
+                       <version>${version.slc}</version> <exclusions> <exclusion>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>com.springsource.org.apache.commons.logging</artifactId>
                        </exclusion> </exclusions> </dependency> <dependency>
 
                        <dependency> <groupId>org.argeo.slc</groupId>
                        <artifactId>org.argeo.slc.detached.launcher</artifactId>
-                       <version>${project.version}</version> <exclusions> <exclusion>
+                       <version>${version.slc}</version> <exclusions> <exclusion>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>com.springsource.org.apache.commons.logging</artifactId>
                        </exclusion> </exclusions> </dependency> <dependency>
                        <groupId>org.argeo.slc</groupId>
                        <artifactId>org.argeo.slc.agent</artifactId>
-                       <version>${project.version}</version> <exclusions> <exclusion>
+                       <version>${version.slc}</version> <exclusions> <exclusion>
                        <groupId>org.apache.commons</groupId>
                        <artifactId>com.springsource.org.apache.commons.logging</artifactId>
                        </exclusion> </exclusions> </dependency>