如何解决Maven没有生成jaxb类
伙计们,我遇到了一个问题,我已经创建了空白的Maven项目,因此它仅适合于生成的jaxb类 但问题是它甚至没有建立它们
这里是pom文件
<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>
<groupId>com.generated.jaxb</groupId>
<artifactId>common-generated</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>common-generated</name>
<properties>
<jaxb2.version>0.14.0</jaxb2.version>
</properties>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<version>@{jaxb2.version}</version>
<executions>
<execution>
<id>generate-bib</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaDirectory>src/main/resources/xsd</schemaDirectory>
<schemaIncludes>
<include>BusinessInformationBridge.xsd</include>
</schemaIncludes>
<generatePackage>com.bib</generatePackage>
<generateDirectory>${project.build.directory}/generated-sources/bib</generateDirectory>
</configuration>
</execution>
<execution>
<id>generate-bis</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<schemaDirectory>src/main/resources/xsd</schemaDirectory>
<schemaIncludes>
<include>BusinessInformationStream.xsd</include>
</schemaIncludes>
<generatePackage>com.bis</generatePackage>
<generateDirectory>${project.build.directory}/generated-sources/bis</generateDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
每当我尝试构建项目时,它都会成功构建,没有任何错误,但是缺少类。 有人可以给我打电话吗?也许可以解决?
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。