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>Business@R_328_404[email protected]</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>Business@R_328_404[email protected]</include>
                            </schemaIncludes>
                            <generatePackage>com.bis</generatePackage>
                            <generateDirectory>${project.build.directory}/generated-sources/bis</generateDirectory>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </pluginManagement>
</build>

每当我尝试构建项目时,它都会成功构建,没有任何错误,但是缺少类。 有人可以给我打电话吗?也许可以解决

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)