GoogleCloudPlatform / appengine-maven-plugin

Automatically exported from code.google.com/p/appengine-maven-plugin
Apache License 2.0
19 stars 21 forks source link

Doesn't work with appengine 1.9.37 #76

Closed okulev closed 8 years ago

okulev commented 8 years ago

I generated helloworld example from latest archetype. After applying the fix from #66 it works. After setting appengine to currently latest version 1.9.37, the following error occurs on appengine:update. Just changing to previous version 1.9.36 fix the error:

[INFO] --- appengine-maven-plugin:1.9.37:endpoints_get_discovery_doc (default) @ newhelloworld ---
[INFO] 
[INFO] Google App Engine Java SDK - get endpoints discovery doc...
[INFO] Using Class Name:com.example.Greetings
[INFO] Executing endpoints Command=[get-discovery-doc, -cp, /home/okulev/Documents/ud859-master/Lesson_2/001_Hello_Endpoints_Solutions/newhelloworld/target/newhelloworld-1.0-SNAPSHOT/WEB-INF/classes:/home/okulev/Documents/ud859-master/Lesson_2/001_Hello_Endpoints_Solutions/newhelloworld/target/classes:/home/okulev/.m2/repository/com/google/appengine/appengine-api-1.0-sdk/1.9.37/appengine-api-1.0-sdk-1.9.37.jar:/home/okulev/.m2/repository/com/google/appengine/appengine-endpoints/1.9.37/appengine-endpoints-1.9.37.jar:/home/okulev/.m2/repository/javax/inject/javax.inject/1/javax.inject-1.jar:/home/okulev/.m2/repository/javax/jdo/jdo-api/3.1/jdo-api-3.1.jar:/home/okulev/.m2/repository/javax/transaction/transaction-api/1.1/transaction-api-1.1.jar, -o, /home/okulev/Documents/ud859-master/Lesson_2/001_Hello_Endpoints_Solutions/newhelloworld/target/generated-sources/appengine-endpoints/WEB-INF, -w, /home/okulev/Documents/ud859-master/Lesson_2/001_Hello_Endpoints_Solutions/newhelloworld/target/generated-sources/appengine-endpoints, -f, rest, com.example.Greetings]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.943 s
[INFO] Finished at: 2016-05-16T17:06:03+03:00
[INFO] Final Memory: 19M/301M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.appengine:appengine-maven-plugin:1.9.37:endpoints_get_discovery_doc (default) on project newhelloworld: Execution default of goal com.google.appengine:appengine-maven-plugin:1.9.37:endpoints_get_discovery_doc failed: A required class was missing while executing com.google.appengine:appengine-maven-plugin:1.9.37:endpoints_get_discovery_doc: com/google/appengine/repackaged/com/google/api/client/repackaged/org/apache/commons/codec/binary/StringUtils
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>com.google.appengine:appengine-maven-plugin:1.9.37
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/home/okulev/.m2/repository/com/google/appengine/appengine-maven-plugin/1.9.37/appengine-maven-plugin-1.9.37.jar
[ERROR] urls[1] = file:/home/okulev/.m2/repository/javax/enterprise/cdi-api/1.0/cdi-api-1.0.jar
[ERROR] urls[2] = file:/home/okulev/.m2/repository/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar
[ERROR] urls[3] = file:/home/okulev/.m2/repository/org/sonatype/sisu/sisu-guice/3.1.0/sisu-guice-3.1.0-no_aop.jar
[ERROR] urls[4] = file:/home/okulev/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
[ERROR] urls[5] = file:/home/okulev/.m2/repository/org/eclipse/sisu/org.eclipse.sisu.inject/0.0.0.M5/org.eclipse.sisu.inject-0.0.0.M5.jar
[ERROR] urls[6] = file:/home/okulev/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.19/plexus-interpolation-1.19.jar
[ERROR] urls[7] = file:/home/okulev/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.17/plexus-utils-3.0.17.jar
[ERROR] urls[8] = file:/home/okulev/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
[ERROR] urls[9] = file:/home/okulev/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
[ERROR] urls[10] = file:/home/okulev/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
[ERROR] urls[11] = file:/home/okulev/.m2/repository/org/eclipse/aether/aether-util/0.9.1.v20140329/aether-util-0.9.1.v20140329.jar
[ERROR] urls[12] = file:/home/okulev/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar
[ERROR] urls[13] = file:/home/okulev/.m2/repository/com/google/appengine/appengine-tools-sdk/1.9.37/appengine-tools-sdk-1.9.37.jar
[ERROR] urls[14] = file:/home/okulev/.m2/repository/com/google/appengine/appengine-local-endpoints/1.9.37/appengine-local-endpoints-1.9.37.jar
[ERROR] urls[15] = file:/home/okulev/.m2/repository/com/google/appengine/appengine-endpoints/1.9.37/appengine-endpoints-1.9.37.jar
[ERROR] urls[16] = file:/home/okulev/.m2/repository/com/google/appengine/appengine-api-1.0-sdk/1.9.37/appengine-api-1.0-sdk-1.9.37.jar
[ERROR] urls[17] = file:/home/okulev/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
[ERROR] urls[18] = file:/home/okulev/.m2/repository/eu/infomas/annotation-detector/3.0.4/annotation-detector-3.0.4.jar
[ERROR] urls[19] = file:/home/okulev/.m2/repository/org/slf4j/slf4j-nop/1.7.7/slf4j-nop-1.7.7.jar
[ERROR] urls[20] = file:/home/okulev/.m2/repository/org/apache/maven/shared/maven-invoker/2.1.1/maven-invoker-2.1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------: com.google.appengine.repackaged.com.google.api.client.repackaged.org.apache.commons.codec.binary.StringUtils
[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/PluginContainerException

Process finished with exit code 1
ludoch commented 8 years ago

This is a bug in the SDK that has been fixed in the next release. If you want to preview the next release, you can add this in the pom.xml to be able to use the version 19.38. Remove the section when the plugin is pushed (soon).

    <repositories>
      <repository>
        <id>gae-staging1</id>
        <url>https://oss.sonatype.org/content/repositories/comgoogleappengine-1292/</url>
      </repository>
    </repositories>
    <pluginRepositories>
      <pluginRepository>
        <id>gae-staging1</id>
        <url>https://oss.sonatype.org/content/repositories/comgoogleappengine-1293/</url>
      </pluginRepository>
    </pluginRepositories>
okulev commented 8 years ago

It worked! Thank you.