This repository has been archived by the owner on May 2, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
128 lines (116 loc) · 4.38 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" encoding="UTF-8"?>
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>guillaume-braibant</groupId>
<artifactId>spring-soap-ws-hellow</artifactId>
<version>1.0.0</version>
<name>spring-soap-ws-hellow</name>
<description>Simple "Hello" SOAP webservice based on Spring Boot and Spring WS</description>
<properties>
<!-- Misc. -->
<java.version>1.8</java.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Dependencies version -->
<micrometer.version>1.3.5</micrometer.version>
<!-- Plugin versions -->
<cxf.version>3.3.5</cxf.version>
</properties>
<dependencies>
<!-- Spring boot starter -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<!-- Starter for Apache CXf + Spring Boot -->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-spring-boot-starter-jaxws</artifactId>
<version>${cxf.version}</version>
</dependency>
<!-- Micrometer prometheus registry -->
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-prometheus</artifactId>
<version>${micrometer.version}</version>
</dependency>
<!-- Test dependencies -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<executable>true</executable>
</configuration>
</plugin>
<!-- Plugin to generate DTOs and service interfaces from WSDL -->
<plugin>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-codegen-plugin</artifactId>
<version>${cxf.version}</version>
<executions>
<execution>
<id>wsdl2java</id>
<phase>generate-sources</phase>
<configuration>
<!-- base dir. to put generated sources -->
<!-- Package and source location are then determined that way -->
<!-- for this namespace : http://springsoapwshellow.guillaumebraibant/soap -->
<!-- the sources will be located at : src/main/java/guillaumebraibant/springsoapwshellow/soap -->
<!-- the package for the sources will be : guillaumebraibant.springsoapwshellow.soap -->
<sourceRoot>${basedir}/src/main/java</sourceRoot>
<wsdlOptions>
<wsdlOption>
<!-- Location of the wsdl file -->
<wsdl>${basedir}/src/main/resources/soap/hellow.wsdl</wsdl>
<extraargs>
<!-- Add correct runtime location for wsdl -->
<extraarg>-wsdlLocation</extraarg>
<extraarg>classpath:soap/hellow.wsdl</extraarg>
<!-- Generate impl. code -->
<extraarg>-impl</extraarg>
<!-- Prevent plugin from overriding sources -->
<extraarg>-keep</extraarg>
<!-- Add Serial UUID to generated exceptions -->
<extraarg>-faultSerialVersionUID</extraarg>
<extraarg>FQCN</extraarg>
<!-- Supress generated date -->
<extraarg>-suppress-generated-date</extraarg>
</extraargs>
<bindingFiles>
<!-- Custom binding to make generated DTOs serializable -->
<bindingFile>${basedir}/src/main/resources/soap/add_serializable_binding.xml</bindingFile>
<!-- Custom binding to add async methods to WS interface-->
<bindingFile>${basedir}/src/main/resources/soap/async_interfaces_binding.xml</bindingFile>
</bindingFiles>
</wsdlOption>
</wsdlOptions>
</configuration>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>