我有生成类的代码,这些类在主包中引用 我正在使用jaxb2插件并在命令行上运行。我的代码创建了generate-sources,但编译失败,说符号无法找到。 有人可以帮我解决问题。这是我在pom.xml中的插件
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
<plugin>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
<configuration>
<schemaIncludes>
<schemaInclude>*-1.0.xsd</schemaInclude>
</schemaIncludes>
<bindingIncludes>
<bindingInclude>*bindings-1.0.xjb</bindingInclude>
</bindingIncludes>
</configuration>
</plugin>
</plugins>