<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时缺少必需的类
有人可以帮我吗?