编译器maven-java在构建包时出现2个错误

编译器maven-java在构建包时出现2个错误,java,maven,magento,Java,Maven,Magento,我正在使用JAVA for integration system连接到我的商店magento。我安装了Maven、openjdk-6-jdk、设置java主页等。我的信息是: sudojava版本 sudomvn-版本 当我尝试在文件夹中查找包含POM.xml文件的包时: 用于编译的sudo mvn软件包或sudo mvn安装结果为: [INFO] 2 errors [INFO] ----------------------------------------------------------

我正在使用JAVA for integration system连接到我的商店magento。我安装了Maven、openjdk-6-jdk、设置java主页等。我的信息是: sudojava版本

sudomvn-版本

当我尝试在文件夹中查找包含POM.xml文件的包时: 用于编译的sudo mvn软件包或sudo mvn安装结果为:

[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.511s
[INFO] Finished at: Sun Aug 30 19:50:12 EDT 2015
[INFO] Final Memory: 12M/71M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project magento-ws-client: Compilation failure: Compilation failure:
[ERROR] /magento-java/src/main/java/com/magi/magento/service/BaseService.java:[27,34] cannot find symbol
[ERROR] symbol  : method getMage_Api_Model_Server_V2_HandlerPort(java.net.URL)
[ERROR] location: interface com.magi.magento.ws.client.MagentoService
[ERROR] /magento-java/src/main/java/com/magi/magento/service/OrderService.java:[112,44] incompatible types
[ERROR] found   : com.magi.magento.ws.client.SalesOrderListEntity[]
[ERROR] required: com.magi.magento.ws.client.SalesOrderEntity[]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
注意:

[错误]/magento java/src/main/java/com/magi/magento/service/BaseService.java:[27,34]找不到符号

[错误]/magento-java/src/main/java/com/magi/magento/service/OrderService.java:[112,44]不兼容的类型

我已尝试在POM文件中更改编译器maven的版本:


但错误依然存在,我该怎么办?是的,当我在谷歌上搜索的时候,我尝试了每一个提示或链接,但没有解决任何问题。提前感谢。

请不要交叉张贴:这看起来不像是JDK版本的问题。您的magento库/依赖项似乎存在版本冲突,或者只是版本错误。嗯。。。首先,我尝试使用jdk-7安装,但出现了错误,我改为jdk-6,但仍然不工作magento库是使用MAVEN mvn命令安装的,但我没有得到100%的工作。。。。哼
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.6.0_36, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-43-generic", arch: "amd64", family: "unix"
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.511s
[INFO] Finished at: Sun Aug 30 19:50:12 EDT 2015
[INFO] Final Memory: 12M/71M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project magento-ws-client: Compilation failure: Compilation failure:
[ERROR] /magento-java/src/main/java/com/magi/magento/service/BaseService.java:[27,34] cannot find symbol
[ERROR] symbol  : method getMage_Api_Model_Server_V2_HandlerPort(java.net.URL)
[ERROR] location: interface com.magi.magento.ws.client.MagentoService
[ERROR] /magento-java/src/main/java/com/magi/magento/service/OrderService.java:[112,44] incompatible types
[ERROR] found   : com.magi.magento.ws.client.SalesOrderListEntity[]
[ERROR] required: com.magi.magento.ws.client.SalesOrderEntity[]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
            <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.1</version>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>