File tree Expand file tree Collapse file tree
apache-cxf/cxf-introduction
main/java/com/baeldung/cxf/introduction
test/java/com/baeldung/cxf/introduction Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 >
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 >
Original file line number Diff line number Diff line change 33import javax .xml .ws .Endpoint ;
44
55public 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 );
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments