From d4f44cd3abcbb05b4a2a1a8e2cbee9bae9394c56 Mon Sep 17 00:00:00 2001
From: Patient NTUMBA <pntumba@inria.fr>
Date: Thu, 1 Jun 2017 17:23:51 +0200
Subject: [PATCH] Update VsbManage test

---
 protocol-pool/gm-soap/pom-gm-soap.xml         | 100 ++++++++++++++++++
 vsb-manager/pom.xml                           |   2 +-
 .../chorevolution/vsb/manager/VsbManager.java |   4 +-
 3 files changed, 103 insertions(+), 3 deletions(-)
 create mode 100644 protocol-pool/gm-soap/pom-gm-soap.xml

diff --git a/protocol-pool/gm-soap/pom-gm-soap.xml b/protocol-pool/gm-soap/pom-gm-soap.xml
new file mode 100644
index 00000000..cbf94121
--- /dev/null
+++ b/protocol-pool/gm-soap/pom-gm-soap.xml
@@ -0,0 +1,100 @@
+<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/xsd/maven-4.0.0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<parent>
+		<groupId>eu.chorevolution.vsb</groupId>
+		<artifactId>protocol-pool</artifactId>
+		<version>0.0.1-SNAPSHOT</version>
+	</parent>
+	<artifactId>gm-soap</artifactId>
+	<name>gm-soap</name>
+	<description>provides SOAP implementation of GM primitives and generator classes to generate a SOAP endpoint and generic interface which each concrete protocol implementation MUST implement to generate its concrete endpoints or clients</description>
+	<build>
+		<plugins>
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-compiler-plugin</artifactId>
+				<version>2.3.2</version>
+				<configuration>
+					<source>1.8</source>
+					<target>1.8</target>
+				</configuration>
+			</plugin>
+		</plugins>
+	</build>
+	<dependencies>
+		<!-- JSON Parser -->
+		<dependency>
+			<groupId>com.googlecode.json-simple</groupId>
+			<artifactId>json-simple</artifactId>
+			<version>1.1.1</version>
+		</dependency>
+		<!-- Chorevolution -->
+		<dependency>
+			<groupId>eu.chorevolution.vsb</groupId>
+			<artifactId>gmdl-utils</artifactId>
+			<version>0.0.1-SNAPSHOT</version>
+		</dependency>
+		<dependency>
+			<groupId>eu.chorevolution.vsb</groupId>
+			<artifactId>gm-api</artifactId>
+			<version>0.0.1-SNAPSHOT</version>
+		</dependency>
+		<!-- CodeModel -->
+		<dependency>
+			<groupId>com.sun.codemodel</groupId>
+			<artifactId>codemodel</artifactId>
+			<version>2.6</version>
+		</dependency>
+		<!-- Jersey, JAX-RS -->
+		<dependency>
+			<groupId>org.glassfish.jersey.core</groupId>
+			<artifactId>jersey-client</artifactId>
+			<version>2.21</version>
+		</dependency>
+		<dependency>
+			<groupId>com.fasterxml.jackson.core</groupId>
+			<artifactId>jackson-core</artifactId>
+			<version>2.6.2</version>
+		</dependency>
+		<dependency>
+			<groupId>com.fasterxml.jackson.core</groupId>
+			<artifactId>jackson-databind</artifactId>
+			<version>2.6.2</version>
+		</dependency>
+		<dependency>
+			<groupId>com.fasterxml.jackson.core</groupId>
+			<artifactId>jackson-annotations</artifactId>
+			<version>2.6.2</version>
+		</dependency>
+		<dependency>
+			<groupId>com.sun.xml.bind</groupId>
+			<artifactId>jaxb-jxc</artifactId>
+			<version>2.2.11</version>
+		</dependency>
+		<!-- TESTING -->
+		<dependency>
+			<groupId>net.peachjean.differentia</groupId>
+			<artifactId>differentia-javaica</artifactId>
+			<version>1.2</version>
+		</dependency>
+		<dependency>
+			<groupId>com.fasterxml.jackson.core</groupId>
+			<artifactId>jackson-annotations</artifactId>
+			<version>2.7.3</version>
+		</dependency>
+		<!-- https://mvnrepository.com/artifact/org.apache.axis2/axis2-java2wsdl -->
+		<dependency>
+			<groupId>org.apache.axis2</groupId>
+			<artifactId>axis2-java2wsdl</artifactId>
+			<version>1.7.3</version>
+		</dependency>
+		<!-- https://mvnrepository.com/artifact/axis2/axis2 -->
+<dependency>
+    <groupId>axis2</groupId>
+    <artifactId>axis2</artifactId>
+    <version>1.0</version>
+</dependency>
+		
+	</dependencies>
+</project>
\ No newline at end of file
diff --git a/vsb-manager/pom.xml b/vsb-manager/pom.xml
index bdcb0275..79947b24 100644
--- a/vsb-manager/pom.xml
+++ b/vsb-manager/pom.xml
@@ -91,7 +91,7 @@
 			<resource>
 				<directory>../protocol-pool/</directory>
 				<includes>
-					<include>**/pom.xml</include>
+				    <include>**/pom-gm-soap.xml</include>
 					<include>**/pom.xml</include>
 					<include>**/pom.xml</include>
 				</includes>
diff --git a/vsb-manager/src/main/java/eu/chorevolution/vsb/manager/VsbManager.java b/vsb-manager/src/main/java/eu/chorevolution/vsb/manager/VsbManager.java
index 2971b4a8..e864ee52 100644
--- a/vsb-manager/src/main/java/eu/chorevolution/vsb/manager/VsbManager.java
+++ b/vsb-manager/src/main/java/eu/chorevolution/vsb/manager/VsbManager.java
@@ -229,14 +229,14 @@ public class VsbManager {
 		
 		
 		String vsb_manager_pomxml = new File(".").getAbsolutePath() + File.separator + "pom.xml";
-		String gm_soap_pomxml = new File(".").getAbsolutePath() + File.separator + ".." + File.separator + "protocol-pool" + File.separator + "gm-soap" + File.separator + "pom.xml";
+		String gm_soap_pomxml = new File(".").getAbsolutePath() + File.separator + ".." + File.separator + "protocol-pool" + File.separator + "gm-soap" + File.separator + "pom-gm-soap.xml";
 		String gm_coap_pomxml = new File(".").getAbsolutePath() + File.separator + ".." + File.separator + "protocol-pool" + File.separator + "gm-coap" + File.separator + "pom.xml";
 		String gm_dpws_pomxml = new File(".").getAbsolutePath() + File.separator + ".." + File.separator + "protocol-pool" + File.separator + "gm-dpws" + File.separator + "pom.xml";
 		
 		if(STARTING_FROM_JAR){
 			
 			vsb_manager_pomxml = PathResolver.myFilePath(BcManagerRestService.class,"pom-vsb-manager.xml");
-			gm_soap_pomxml = PathResolver.myFilePath(BcManagerRestService.class,"gm-soap/pom.xml"); 
+			gm_soap_pomxml = PathResolver.myFilePath(BcManagerRestService.class,"gm-soap/pom-gm-soap.xml"); 
 			gm_coap_pomxml = PathResolver.myFilePath(BcManagerRestService.class,"gm-coap/pom.xml"); 
 			gm_dpws_pomxml = PathResolver.myFilePath(BcManagerRestService.class,"gm-dpws/pom.xml"); 
 			
-- 
GitLab