Skip to content
Snippets Groups Projects
Commit 07aa697c authored by Raditss's avatar Raditss
Browse files

fix dedpendencies and build

parent 75a68067
1 merge request!3fix dedpendencies and build
...@@ -14,6 +14,7 @@ services: ...@@ -14,6 +14,7 @@ services:
toco-soap: toco-soap:
build: build:
dockerfile: Dockerfile dockerfile: Dockerfile
context: .
ports: ports:
- "8080:8080" - "8080:8080"
...@@ -13,10 +13,8 @@ FROM amazoncorretto:8 ...@@ -13,10 +13,8 @@ FROM amazoncorretto:8
COPY --from=build /app/target /app COPY --from=build /app/target /app
COPY .env /app
WORKDIR /app WORKDIR /app
EXPOSE 8080 EXPOSE 8080
CMD java -jar toco_Soap-1.0-SNAPSHOT.jar CMD ["java", "-jar", "toco_Soap-1.0-SNAPSHOT.jar"]
\ No newline at end of file \ No newline at end of file
...@@ -15,17 +15,6 @@ ...@@ -15,17 +15,6 @@
</properties> </properties>
<dependencies> <dependencies>
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<version>1.3.5</version>
</dependency>
<dependency> <dependency>
<groupId>com.sun.xml.ws</groupId> <groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId> <artifactId>jaxws-rt</artifactId>
...@@ -38,23 +27,11 @@ ...@@ -38,23 +27,11 @@
<version>1.18.20</version> <version>1.18.20</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<!-- javax jws-->
<dependency>
<groupId>javax.jws</groupId>
<artifactId>javax.jws-api</artifactId>
<version>1.1</version>
</dependency>
<dependency> <dependency>
<groupId>org.glassfish.metro</groupId> <groupId>org.glassfish.metro</groupId>
<artifactId>webservices-api</artifactId> <artifactId>webservices-api</artifactId>
<version>4.0.2</version> <version>4.0.2</version>
</dependency> </dependency>
<dependency>
<groupId>org.glassfish.metro</groupId>
<artifactId>webservices-rt</artifactId>
<version>2.3.1</version>
</dependency>
</dependencies> </dependencies>
...@@ -68,11 +45,30 @@ ...@@ -68,11 +45,30 @@
<configuration> <configuration>
<archive> <archive>
<manifest> <manifest>
<addClasspath>true</addClasspath>
<mainClass>org.toco.Main</mainClass> <mainClass>org.toco.Main</mainClass>
</manifest> </manifest>
</archive> </archive>
</configuration> </configuration>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>3.2.0</version>
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins> </plugins>
</build> </build>
......
...@@ -4,9 +4,11 @@ import org.toco.publisher.transactionPublisher; ...@@ -4,9 +4,11 @@ import org.toco.publisher.transactionPublisher;
public class Main { public class Main {
public static void main(String[] args) { public static void main(String[] args) {
System.out.println("server started");
gemsPublisher gemspublisher = new gemsPublisher(); gemsPublisher gemspublisher = new gemsPublisher();
gemspublisher.publish(); gemspublisher.publish();
transactionPublisher transactionpublisher = new transactionPublisher(); transactionPublisher transactionpublisher = new transactionPublisher();
transactionpublisher.publish(); transactionpublisher.publish();
System.out.println("all services online");
} }
} }
\ No newline at end of file
...@@ -3,6 +3,8 @@ import javax.xml.ws.Endpoint; ...@@ -3,6 +3,8 @@ import javax.xml.ws.Endpoint;
public class gemsPublisher { public class gemsPublisher {
public static void publish() { public static void publish() {
System.out.println("publishing gems service");
Endpoint.publish("http://localhost:8080/gems", new org.toco.service.userGems()); Endpoint.publish("http://localhost:8080/gems", new org.toco.service.userGems());
System.out.println("gems service published");
} }
} }
...@@ -3,7 +3,13 @@ import javax.xml.ws.Endpoint; ...@@ -3,7 +3,13 @@ import javax.xml.ws.Endpoint;
public class transactionPublisher { public class transactionPublisher {
public static void publish() { public static void publish() {
System.out.println("publishing transaction service");
Endpoint.publish("http://localhost:8080/transaction", new org.toco.service.transaction()); Endpoint.publish("http://localhost:8080/transaction", new org.toco.service.transaction());
System.out.println("transaction service published");
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment