Skip to content

Commit b426599

Browse files
committed
Merge branch 'nguyennamthai-cxf_intro'
2 parents 04aea56 + b9f5dda commit b426599

4 files changed

Lines changed: 62 additions & 72 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);

‎apache-cxf/pom.xml‎

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3-
<modelVersion>4.0.0</modelVersion>
4-
<groupId>com.baeldung</groupId>
5-
<artifactId>apache-cxf</artifactId>
6-
<version>0.0.1-SNAPSHOT</version>
7-
<packaging>pom</packaging>
8-
<modules>
9-
<module>cxf-introduction</module>
10-
</modules>
11-
<dependencies>
12-
<dependency>
13-
<groupId>junit</groupId>
14-
<artifactId>junit</artifactId>
15-
<version>4.12</version>
16-
<scope>test</scope>
17-
</dependency>
18-
</dependencies>
19-
<build>
20-
<defaultGoal>install</defaultGoal>
21-
<pluginManagement>
22-
<plugins>
23-
<plugin>
24-
<groupId>org.apache.maven.plugins</groupId>
25-
<artifactId>maven-compiler-plugin</artifactId>
26-
<version>3.5.1</version>
27-
<configuration>
28-
<source>1.8</source>
29-
<target>1.8</target>
30-
</configuration>
31-
</plugin>
32-
<plugin>
33-
<groupId>org.codehaus.mojo</groupId>
34-
<artifactId>exec-maven-plugin</artifactId>
35-
<version>1.5.0</version>
36-
</plugin>
37-
</plugins>
38-
</pluginManagement>
39-
</build>
40-
</project>
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>com.baeldung</groupId>
5+
<artifactId>apache-cxf</artifactId>
6+
<version>0.0.1-SNAPSHOT</version>
7+
<packaging>pom</packaging>
8+
<modules>
9+
<module>cxf-introduction</module>
10+
</modules>
11+
<dependencies>
12+
<dependency>
13+
<groupId>junit</groupId>
14+
<artifactId>junit</artifactId>
15+
<version>4.12</version>
16+
<scope>test</scope>
17+
</dependency>
18+
</dependencies>
19+
<build>
20+
<defaultGoal>install</defaultGoal>
21+
<pluginManagement>
22+
<plugins>
23+
<plugin>
24+
<groupId>org.apache.maven.plugins</groupId>
25+
<artifactId>maven-compiler-plugin</artifactId>
26+
<version>3.5.1</version>
27+
<configuration>
28+
<source>1.8</source>
29+
<target>1.8</target>
30+
</configuration>
31+
</plugin>
32+
<plugin>
33+
<groupId>org.codehaus.mojo</groupId>
34+
<artifactId>exec-maven-plugin</artifactId>
35+
<version>1.5.0</version>
36+
</plugin>
37+
</plugins>
38+
</pluginManagement>
39+
</build>
40+
</project>

0 commit comments

Comments
 (0)