compiler maven- java with 2 errors in building package -
i'm using https://github.com/webdevwilson/magento-java connect store magento java integration system. installed maven
, openjdk-6-jdk
, set home java, etc. information is: sudo java -version
java version "1.6.0_36" openjdk runtime environment (icedtea6 1.13.8) (6b36-1.13.8-0ubuntu1~14.04) openjdk 64-bit server vm (build 23.25-b01, mixed mode)
sudo mvn -version
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"
and when try in folder package contains pom.xml file: sudo mvn package
or sudo mvn install
compile result is:
[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 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] see full stack trace of errors, re-run maven -e switch. [error] re-run maven using -x switch enable full debug logging. [error] [error] more information errors , possible solutions, please read following articles: [error] [help 1] http://cwiki.apache.org/confluence/display/maven/mojofailureexception
attention for:
[error] /magento-java/src/main/java/com/magi/magento/service/baseservice.java:[27,34] cannot find symbol
[error] /magento-java/src/main/java/com/magi/magento/service/orderservice.java:[112,44] incompatible types
i have tried change version of compiler maven in pom file
here:
<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>
but error persists, should do? , yes, tried every tip or link when searched in google, nothing solves. in advance.
Comments
Post a Comment