执行org.codehaus.mojo:jaxb2-maven-plugin:2.2:xjc:weblogic / utils / NestedException时缺少必需的类

时间:2019-11-05 13:45:58

标签: xml xsd jaxb maven-3 jaxb2-maven-plugin

<plugin>
     <groupId>org.codehaus.mojo</groupId>
            <artifactId>jaxb2-maven-plugin</artifactId>
            <version>1.6</version>
            <executions>
                <execution>
                    <phase>generate-sources</phase>
                    <goals>
                        <goal>xjc</goal>
                    </goals>
                    <configuration>
                        <extension>true</extension>
                        <schemaDirectory>${basedir}/src/main/resources/schema</schemaDirectory>
                        <outputDirectory>${basedir}/src/main/generated</outputDirectory>
                        <bindingDirectory>${basedir}/src/main/resources/xjb</bindingDirectory>
                    </configuration>
                </execution>
            </executions>
</plugin>

我在pom.xml中具有上述JAXB配置。使用以下命令从cmd构建代码:** mvn clean install **我得到以下错误:

  

无法在项目nm2m-core上执行目标org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc(默认):执行目标org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc的默认值失败:执行org.codehaus.mojo:jaxb2-maven-plugin:1.6:xjc:weblogic / utils / NestedException时缺少必需的类

有人可以帮我吗?

0 个答案:

没有答案