|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <parent> |
| 6 | + <artifactId>lab-65-spring-ws-demo</artifactId> |
| 7 | + <groupId>cn.iocoder.springboot.labs</groupId> |
| 8 | + <version>1.0-SNAPSHOT</version> |
| 9 | + </parent> |
| 10 | + <modelVersion>4.0.0</modelVersion> |
| 11 | + |
| 12 | + <artifactId>lab-65-spring-ws-demo-application</artifactId> |
| 13 | + |
| 14 | + <properties> |
| 15 | + <!-- 依赖相关配置 --> |
| 16 | + <spring.boot.version>2.2.4.RELEASE</spring.boot.version> |
| 17 | + <!-- 插件相关配置 --> |
| 18 | + <maven.compiler.target>1.8</maven.compiler.target> |
| 19 | + <maven.compiler.source>1.8</maven.compiler.source> |
| 20 | + </properties> |
| 21 | + |
| 22 | + <dependencyManagement> |
| 23 | + <dependencies> |
| 24 | + <dependency> |
| 25 | + <groupId>org.springframework.boot</groupId> |
| 26 | + <artifactId>spring-boot-starter-parent</artifactId> |
| 27 | + <version>${spring.boot.version}</version> |
| 28 | + <type>pom</type> |
| 29 | + <scope>import</scope> |
| 30 | + </dependency> |
| 31 | + </dependencies> |
| 32 | + </dependencyManagement> |
| 33 | + |
| 34 | + <dependencies> |
| 35 | + <!-- 实现对 Spring WebService 的自动化配置 --> |
| 36 | + <dependency> |
| 37 | + <groupId>org.springframework.boot</groupId> |
| 38 | + <artifactId>spring-boot-starter-web-services</artifactId> |
| 39 | + </dependency> |
| 40 | + |
| 41 | + <!-- Java WSDL 实现库 --> |
| 42 | + <dependency> |
| 43 | + <groupId>wsdl4j</groupId> |
| 44 | + <artifactId>wsdl4j</artifactId> |
| 45 | + </dependency> |
| 46 | + </dependencies> |
| 47 | + |
| 48 | + <build> |
| 49 | + <plugins> |
| 50 | + <!-- maven-jaxb2-plugin 插件,用于实现将 WSDL 生成目标类 --> |
| 51 | + <plugin> |
| 52 | + <groupId>org.jvnet.jaxb2.maven2</groupId> |
| 53 | + <artifactId>maven-jaxb2-plugin</artifactId> |
| 54 | + <version>0.14.0</version> |
| 55 | + <executions> |
| 56 | + <execution> |
| 57 | + <goals> |
| 58 | + <goal>generate</goal> |
| 59 | + </goals> |
| 60 | + </execution> |
| 61 | + </executions> |
| 62 | + <configuration> |
| 63 | + <!-- WSDL 源文件地址 --> |
| 64 | + <schemaLanguage>WSDL</schemaLanguage> |
| 65 | + <schemas> |
| 66 | + <schema> |
| 67 | + <url>http://127.0.0.1:8080/ws/users.wsdl</url> |
| 68 | + </schema> |
| 69 | + </schemas> |
| 70 | + <!-- 生成代码目标包 --> |
| 71 | + <generatePackage>cn.iocoder.springboot.lab65.demo.wsdl</generatePackage> |
| 72 | + </configuration> |
| 73 | + </plugin> |
| 74 | + </plugins> |
| 75 | + </build> |
| 76 | + |
| 77 | +</project> |
0 commit comments