Error opening zip file or JAR manifest missing in maven with GAE and Spring Roo
I'm using Spring roo with Google App Engine So, I'm using maven GWT plugin to compile my code like this inside my pom.xml :
<extraJvmArgs>-javaagent:"${gae.home}/lib/agent/appengine-agent.jar"
-Xmx1024m</extraJvmArgs>
where in pom.xml, gae.home
is ( gae.version
is 1.8.3
)
<gae.home>${user.home}.m2repositorycomgoogleappengineappengine-java-sdk${gae.version}appengine-java-sdkappengine-java-sdk-${gae.version}</gae.home>
Yet, I get the error when I run -DskipTests appengine:devserver
[ERROR] Error opening zip file or JAR manifest missing : C:Usersbsmtaa.m2repositorycomgoogleappengineappengine-java-sdk1.8.3appengine-java-sdkappengine-java-sdk-1.8.3/lib/agent/appengine-agent.jar [ERROR] -Xmx1024m [INFO] agent library failed to init: instrument [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 12.419 s [INFO] Finished at: 2015-04-26T16:03:22+00:00 [INFO] Final Memory: 23M/225M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.7.0:compile (gwtcompile) on project dp-demo-3: Command [[ [ERROR] C:Program FilesJavajdk1.7.0_79jrebinjava -javaagent:C:Usersbsmtaa.m2repositorycomgoogleappengineappengine-java-sdk1.8.3appengine-java-sdkappengine-java-sdk-1.8.3/lib/agent/appengine-agent.jar [ERROR] -Xmx1024m -c lasspath C:UsersbsmtaaDocumentsworkspace-sts-3.6.4.RELEASEdp-demo-3targetdp-demo-3-0.1.0.BUILD-SNAPSHOTWEB-INFclasses;C:UsersbsmtaaDocumentsworkspace-sts-3.6.4.RELEASEdp-demo-3srcmainjava;C:UsersbsmtaaDocumentsworkspace-sts-3.6.4.RELEASEdp-demo-3srcmainaspect;C:Usersbsmtaa.m2repositorylog4jlog4j1.2.17log4j-1.2.17.jar;C:Usersbsmtaa.m2repositoryorgslf4jslf4j-api1.7.5slf4j-api-1.7.5.jar;C:Usersbsmtaa.m2repositoryorgslf4jjcl-over-slf4j1.7.5jcl-over-slf4j-1.7.5.jar;C:Usersbsmtaa.m2repositoryorgslf4jslf4j-log4j121.7.5slf4j-log4j12-1.7.5.jar;C:Usersbsmtaa.m2repositoryorgaspectjaspectjrt1.7.4aspectjrt-1.7.4.jar;C:Usersbsmtaa.m2repositoryorgaspectjaspectjweaver1.7.4aspectjweaver-1.7.4.jar;C:Usersbsmtaa.m2repositoryjavaxservletservlet-api2.5servlet-api-2.5.jar;C:Usersbsmtaa.m2repositorynetsfflexjsonflexjson2.1flexjson-2.1.jar;C:Usersbsmtaa.m2repositoryorgapachecommonscommons-lang33.1commons-lang3-3. 1.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkrooorg.springframework.roo.annotations1.2.5.RELEASEorg.springframework.roo.annotations-1.2.5.RELEASE.jar;C:Usersbsmtaa.m2repositorycommons-iocommons-io2.4commons-io-2.4.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkspring-core3.2.6.RELEASEspring-core-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkspring-context3.2.6.RELEASEspring-context-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkspring-beans3.2.6.RELEASEspring-beans-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkspring-expression3.2.6.RELEASEspring-expression-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkspring-aop3.2.6.RELEASEspring-aop-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repositoryaopallianceaopalliance1.0aopalliance-1.0.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkspring-aspects3.2.6.RELEASEspring-aspects-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repo sitoryorgspringframeworkspring-context-support3.2.6.RELEASEspring-context-support-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repositorycomgoogleappengineormdatanucleus-appengine2.1.1datanucleus-appengine-2.1.1.jar;C:Usersbsmtaa.m2repositoryorgdatanucleusdatanucleus-enhancer3.1.1datanucleus-enhancer-3.1.1.jar;C:Usersbsmtaa.m2repositoryorgow2asmasm4.0asm-4.0.jar;C:Usersbsmtaa.m2repositorycomgoogleappengineappengine-api-1.0-sdk1.8.3appengine-api-1.0-sdk-1.8.3.jar;C:Usersbsmtaa.m2repositoryorgapachegeronimospecsgeronimo-jpa_2.0_spec1.1geronimo-jpa_2.0_spec-1.1.jar;C:Usersbsmtaa.m2repositoryorgdatanucleusdatanucleus-core3.1.3datanucleus-core-3.1.3.jar;C:Usersbsmtaa.m2repositoryorgdatanucleusdatanucleus-rdbms3.1.3datanucleus-rdbms-3.1.3.jar;C:Usersbsmtaa.m2repositoryorgdatanucleusdatanucleus-api-jpa3.1.3datanucleus-api-jpa-3.1.3.jar;C:Usersbsmtaa.m2repositoryorgdatanucleusdatanucleus-api-jdo3.1.3datanucleus-api-jdo-3.1 .3.jar;C:Usersbsmtaa.m2repositoryjavaxjdojdo-api3.0jdo-api-3.0.jar;C:Usersbsmtaa.m2repositoryjavaxtransactiontransaction-api1.1transaction-api-1.1.jar;C:Usersbsmtaa.m2repositoryorghibernatehibernate-validator4.3.1.Finalhibernate-validator-4.3.1.Final.jar;C:Usersbsmtaa.m2repositoryorgjbossloggingjboss-logging3.1.0.CR2jboss-logging-3.1.0.CR2.jar;C:Usersbsmtaa.m2repositoryjavaxvalidationvalidation-api1.0.0.GAvalidation-api-1.0.0.GA.jar;C:Usersbsmtaa.m2repositoryjavaxtransactionjta1.1jta-1.1.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkspring-jdbc3.2.6.RELEASEspring-jdbc-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkspring-tx3.2.6.RELEASEspring-tx-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkspring-orm3.2.6.RELEASEspring-orm-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repositorycommons-poolcommons-pool1.5.6commons-pool-1.5.6.jar;C:Usersbsmtaa.m2repositorycommons-dbcpcommons-dbcp1 .4commons-dbcp-1.4.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkspring-webmvc3.2.6.RELEASEspring-webmvc-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkspring-web3.2.6.RELEASEspring-web-3.2.6.RELEASE.jar;C:Usersbsmtaa.m2repositoryorgspringframeworkwebflowspring-js-resources2.2.1.RELEASEspring-js-resources-2.2.1.RELEASE.jar;C:Usersbsmtaa.m2repositorycommons-digestercommons-digester2.1commons-digester-2.1.jar;C:Usersbsmtaa.m2repositorycommons-beanutilscommons-beanutils1.8.3commons-beanutils-1.8.3.jar;C:Usersbsmtaa.m2repositorycommons-fileuploadcommons-fileupload1.2.2commons-fileupload-1.2.2.jar;C:Usersbsmtaa.m2repositoryjavaxservletjspjstljstl-api1.2jstl-api-1.2.jar;C:Usersbsmtaa.m2repositoryorgglassfishwebjstl-impl1.2jstl-impl-1.2.jar;C:Usersbsmtaa.m2repositoryjavaxelel-api2.2el-api-2.2.jar;C:Usersbsmtaa.m2repositoryjoda-timejoda-time1.6joda-time-1.6.jar;C:Usersbsmtaa.m2repositoryjavax servletjspjsp-api2.1jsp-api-2.1.jar;C:Usersbsmtaa.m2repositorycommons-codeccommons-codec1.5commons-codec-1.5.jar;C:Usersbsmtaa.m2repositoryorgapachetilestiles-jsp2.2.2tiles-jsp-2.2.2.jar;C:Usersbsmtaa.m2repositoryorgapachetilestiles-servlet2.2.2tiles-servlet-2.2.2.jar;C:Usersbsmtaa.m2repositoryorgapachetilestiles-core2.2.2tiles-core-2.2.2.jar;C:Usersbsmtaa.m2repositoryorgapachetilestiles-template2.2.2tiles-template-2.2.2.jar;C:Usersbsmtaa.m2repositoryorgapachetilestiles-api2.2.2tiles-api-2.2.2.jar;C:Usersbsmtaa.m2repositorycomgooglegwtgwt-servlet2.7.0gwt-servlet-2.7.0.jar;C:Usersbsmtaa.m2repositorycomgooglegwtgwt-user2.7.0gwt-user-2.7.0.jar;C:Usersbsmtaa.m2repositoryorgjsonjson20090211json-20090211.jar;C:Usersbsmtaa.m2repositorycomgooglegwtinjectgin1.5.0gin-1.5.0.jar;C:Usersbsmtaa.m2repositorycomgoogleinjectguice3.0-rc2guice-3.0-rc2.jar;C:Usersbsmtaa.m2repositoryjavaxinjectjavax.i nject1javax.inject-1.jar;C:Usersbsmtaa.m2repositorycomgoogleinjectextensionsguice-assistedinject3.0-rc2guice-assistedinject-3.0-rc2.jar;C:Usersbsmtaa.m2repositoryjavaxvalidationvalidation-api1.0.0.GAvalidation-api-1.0.0.GA-sources.jar;C:Usersbsmtaa.m2repositoryxalanxalan2.7.1xalan-2.7.1.jar;C:Usersbsmtaa.m2repositoryxalanserializer2.7.1serializer-2.7.1.jar;C:Usersbsmtaa.m2repositoryxml-apisxml-apis1.3.04xml-apis-1.3.04.jar;C:Usersbsmtaa.m2repositorycomgooglegwtgwt-user2.7.0gwt-user-2.7.0.jar;C:Usersbsmtaa.m2repositoryjavaxvalidationvalidation-api1.0.0.GAvalidation-api-1.0.0.GA.jar;C:Usersbsmtaa.m2repositoryjavaxvalidationvalidation-api1.0.0.GAvalidation-api-1.0.0.GA-sources.jar;C:Usersbsmtaa.m2repositorycomgooglegwtgwt-dev2.7.0gwt-dev-2.7.0.jar;C:Usersbsmtaa.m2repositoryorgow2asmasm5.0.3asm-5.0.3.jar;C:Usersbsmtaa.m2repositoryorgow2asmasm-util5.0.3asm-util-5.0.3.jar;C:Usersbsmtaa.m2repositor yorgow2asmasm-tree5.0.3asm-tree-5.0.3.jar;C:Usersbsmtaa.m2repositoryorgow2asmasm-commons5.0.3asm-commons-5.0.3.jar com.google.gwt.dev.Compiler -logLevel INFO -style PRETTY -war C:UsersbsmtaaDocumentsworkspace-sts-3.6.4.RELEASEdp-demo-3targetdp-demo-3-0.1.0.BUILD-SNAPSHOT -localWorkers 4 -XfragmentCount -1 -sourceLevel auto -gen C:UsersbsmtaaDocumentsworkspace-sts-3.6.4.RELEASEdp-demo-3target.generated com.mta.ifekry.dp.backend.ApplicationScaffold [ERROR] ]] failed with status 1
Any solution to this?
Try deleting all the repositories you have downloaded and right click on the project and configure it to "clean compile". Then the folder will be automatically downloaded.
链接地址: http://www.djcxy.com/p/44126.html