]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Try with antrun
authorMathieu Baudier <mbaudier@argeo.org>
Wed, 25 Feb 2009 17:27:40 +0000 (17:27 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Wed, 25 Feb 2009 17:27:40 +0000 (17:27 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2183 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

demo/org.argeo.slc.demo.manager/pom.xml

index a509c6cee89ce81b3233183c59df53b5c09cfd0d..a4caecfc95c77885e2ad4e8e0f62e0286c72c221 100644 (file)
                                        <workingDirectory>target</workingDirectory>
                                </configuration>
                        </plugin>
+                       <plugin>
+                               <artifactId>maven-antrun-plugin</artifactId>
+                               <configuration>
+                                       <tasks>
+                                               <property name="xerces.jar"
+                                                       location="${settings.localRepository}/org/apache/xerces/com.springsource.org.apache.xerces/2.8.1/com.springsource.org.apache.xerces-2.8.1.jar" />
+                                               <property name="xmlcommons.jar"
+                                                       location="${settings.localRepository}/org/apache/xmlcommons/com.springsource.org.apache.xmlcommons/1.3.3/com.springsource.org.apache.xmlcommons-1.3.3.jar" />
+                                               
+                                               <echo message="${xmlcommons.jar}"/>
+                                               <echo message="${xerces.jar}"/>
+                                                       <!-- 
+                                               <property name="xerces.jar"
+                                                       refid="maven.dependency.org.apache.xerces:com.springsource.org.apache.xerces::jar.path" />
+                                               <property name="xmlcommons.jar"
+                                                       refid="maven.dependency.org.apache.xmlcommons:com.springsource.org.apache.xmlcommons::jar.path" />
+                                                -->
+                                               <java classname="org.argeo.slc.detached.launcher.Main" fork="true">
+                                                       <classpath>
+                                                               <path refid="maven.compile.classpath" />
+                                                       </classpath>
+                                                       <sysproperty key="slc.osgi.scanClasspath" value="true"/>
+                                                       <sysproperty key="slc.osgi.start" value="*"/>
+                                                       <jvmarg value="-Xbootclasspath/p:${xmlcommons.jar}${path.separator}${xerces.jar}"/>
+                                               </java>
+                                       </tasks>
+                               </configuration>
+                       </plugin>
+
                </plugins>
        </build>
        <dependencies>
                        <version>${project.version}</version>
                </dependency>
 
+               <dependency>
+                       <groupId>org.apache.xerces</groupId>
+                       <artifactId>
+                                       com.springsource.org.apache.xerces
+                               </artifactId>
+                       <version>2.8.1</version>
+               </dependency>
+               <dependency>
+                       <groupId>org.apache.xmlcommons</groupId>
+                       <artifactId>com.springsource.org.apache.xmlcommons</artifactId>
+                       <version>1.3.3</version>
+               </dependency>
+
        </dependencies>
 </project>