由maven创建的xmlbeans类不会放在正确的包结构中

1 maven-plugin

我正在使用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搜索并阅读了很多博客,到目前为止没有任何帮助我!任何回复/答案真的很感激!

Wit*_*eld 11

我知道这个问题是4个月大,但如果您和/或其他人仍在寻找解决方案,这篇博文可能会提供一些线索.

基本上,它所说的是所有引用都org.maven.ide.eclipse应该被替换org.eclipse.m2e.它引用.launch文件,但是在更安全的一面只是grep递归地通过Eclipse目录和项目.