1 回答
TA贡献1852条经验 获得超7个赞
您应该从集成模块描述符中删除元素<parent>声明并将其移至子模块。
spring-boot-maven-plugin只能在包含Spring Boot应用程序的模块中声明,即cpm模块。
在这里,集成项目描述符应该是:
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<modules>
<module>enrollment_ws</module>
<module>cpm</module>
<module>verification</module>
<module>abis_module</module>
</modules>
<groupId>ng.biosec</groupId>
<artifactId>integron</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>integron</name>
<description>Bio Connect Project</description>
<properties>
<java.version>1.8</java.version>
</properties>
<build>
<plugins>
<!-- tag::wsdl[] -->
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>0.13.1</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaLanguage>WSDL</schemaLanguage>
<generatePackage>integron.client</generatePackage>
<schemas>
<schema>
<url>********?wsdl</url>
</schema>
</schemas>
</configuration>
</plugin>
<!-- end::wsdl[] -->
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>
cpm模块描述符应如下所示:
<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.1.RELEASE</version>
<relativePath/> <!-- lookup parent from integron.repository -->
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>cpm</artifactId>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>ng.biosec</groupId>
<artifactId>enrollment_ws</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>ng.biosec</groupId>
<artifactId>abis_module</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.ws</groupId>
<artifactId>spring-ws-core</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</project>
关于wsdl生成的文件,我猜它们正在生成但未打包,因为父模块打包设置为pom。
添加回答
举报