Skip to content

Commit a6d16ce

Browse files
committed
Merge branch 'cxf_intro' of https://github.com/nguyennamthai/tutorials into nguyennamthai-cxf_intro
2 parents 04aea56 + 351b4a5 commit a6d16ce

3 files changed

Lines changed: 23 additions & 33 deletions

File tree

‎apache-cxf/cxf-introduction/pom.xml‎

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,28 @@
1010
<version>0.0.1-SNAPSHOT</version>
1111
</parent>
1212
<properties>
13-
<skipTests>true</skipTests>
1413
<cxf.version>3.1.6</cxf.version>
1514
</properties>
15+
<build>
16+
<plugins>
17+
<plugin>
18+
<groupId>org.codehaus.mojo</groupId>
19+
<artifactId>exec-maven-plugin</artifactId>
20+
<configuration>
21+
<mainClass>com.baeldung.cxf.introduction.Server</mainClass>
22+
</configuration>
23+
</plugin>
24+
<plugin>
25+
<artifactId>maven-surefire-plugin</artifactId>
26+
<version>2.19.1</version>
27+
<configuration>
28+
<excludes>
29+
<exclude>**/StudentTest.java</exclude>
30+
</excludes>
31+
</configuration>
32+
</plugin>
33+
</plugins>
34+
</build>
1635
<dependencies>
1736
<dependency>
1837
<groupId>org.apache.cxf</groupId>
@@ -25,29 +44,4 @@
2544
<version>${cxf.version}</version>
2645
</dependency>
2746
</dependencies>
28-
<profiles>
29-
<profile>
30-
<id>server</id>
31-
<build>
32-
<defaultGoal>test</defaultGoal>
33-
<plugins>
34-
<plugin>
35-
<groupId>org.codehaus.mojo</groupId>
36-
<artifactId>exec-maven-plugin</artifactId>
37-
<executions>
38-
<execution>
39-
<phase>test</phase>
40-
<goals>
41-
<goal>java</goal>
42-
</goals>
43-
<configuration>
44-
<mainClass>com.baeldung.cxf.introduction.Server</mainClass>
45-
</configuration>
46-
</execution>
47-
</executions>
48-
</plugin>
49-
</plugins>
50-
</build>
51-
</profile>
52-
</profiles>
5347
</project>

‎apache-cxf/cxf-introduction/src/main/java/com/baeldung/cxf/introduction/Server.java‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33
import javax.xml.ws.Endpoint;
44

55
public class Server {
6-
private Server() {
6+
public static void main(String args[]) throws InterruptedException {
77
BaeldungImpl implementor = new BaeldungImpl();
88
String address = "http://localhost:8080/baeldung";
99
Endpoint.publish(address, implementor);
10-
}
11-
12-
public static void main(String args[]) throws InterruptedException {
13-
new Server();
14-
System.out.println("Server ready");
10+
System.out.println("Server ready...");
1511
Thread.sleep(60 * 1000);
1612
System.out.println("Server exiting");
1713
System.exit(0);

‎apache-cxf/cxf-introduction/src/test/java/com/baeldung/cxf/introduction/StudentTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class StudentTest {
2121

2222
private Service service;
2323
private Baeldung baeldungProxy;
24-
private Baeldung baeldungImpl;
24+
private BaeldungImpl baeldungImpl;
2525

2626
{
2727
service = Service.create(SERVICE_NAME);

0 commit comments

Comments
 (0)