Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/361.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java jaxb循环依赖项maven编译错误_Java_Xml_Xsd - Fatal编程技术网

Java jaxb循环依赖项maven编译错误

Java jaxb循环依赖项maven编译错误,java,xml,xsd,Java,Xml,Xsd,我有生成类的代码,这些类在主包中引用 我正在使用jaxb2插件并在命令行上运行。我的代码创建生成源代码,但编译失败,表示找不到符号。 有人能帮我出什么事了吗。这是我在pom.xml中的插件 <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId>

我有生成类的代码,这些类在主包中引用 我正在使用jaxb2插件并在命令行上运行。我的代码创建生成源代码,但编译失败,表示找不到符号。 有人能帮我出什么事了吗。这是我在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>

org.apache.maven.plugins
maven编译器插件
2.3.2
1.7
1.7
org.jvnet.jaxb2.maven2
maven-jaxb2-plugin
生成
*-1.0.xsd
*绑定-1.0.xjb

请发布错误代码。找不到symbol[error]symbol:method getPlans()[error]位置:类型为com.xxx.xxxxx.xxxxxxx.descriptor.XMLDeploymentDescriptorType的变量xmlType----XmlDeplymentDescriptorType是生成的类,我可以在generate sources/xjc/com等下看到它。,