我正在使用xmlbeans来生成一些java类.我在我的项目中使用maven 3.我已经包含了依赖项和插件的详细信息,如下所示.
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xmlbeans-maven-plugin</artifactId>
<version>2.3.3</version>
<executions>
<execution>
<goals>
<goal>xmlbeans</goal>
</goals>
</execution>
</executions>
<inherited>true</inherited>
<configuration>
<schemaDirectory>src/main/xsd</schemaDirectory>
</configuration>
</plugin>
Run Code Online (Sandbox Code Playgroud)
当我运行一个干净的包目标时,我得到编译器错误只是因为在类路径中找不到使用xmlbeans生成的引用的类.这是因为xmlbeans类没有编译到正确的目录结构中.相反,它只是将它放在目标\ classes\aseXMLR30中(它应该在正式结构中:ex.com.ex.first)
我用google搜索并阅读了很多博客,到目前为止没有任何帮助我!任何回复/答案真的很感激!
| 归档时间: |
|
| 查看次数: |
811 次 |
| 最近记录: |