Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
251 views
in Technique[技术] by (71.8m points)

java - appengine-maven-plugin:1.3.1 run failed non zero exit

I'm trying to create hello-endpoint-framework using maven archetype
I used this command to build project.

mvn archetype:generate -Dappengine-version=1.9.63 -Djava8=true -DCloudSDK_Tooling=false -Dapplication-id=your-app-id -Dfilter=com.google.appengine.archetypes:

I set -Djava8=true because I want to run this in java8.

Here is pom.xml file.

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>

    <groupId>org.azeem.endpoints</groupId>
    <artifactId>endpoints</artifactId>

    <properties>
        <maven.compiler.source>1.7</maven.compiler.source>
        <maven.compiler.target>1.7</maven.compiler.target>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>
        <!-- Compile/runtime dependencies -->
        <!-- Uncomment to use Endpoints Frameworks v1.0 and comment the v2.0 section -->
        <!--<dependency>
              <groupId>com.google.appengine</groupId>
              <artifactId>appengine-endpoints</artifactId>
              <version>1.9.53</version>
        </dependency>-->
        <!-- End of Endpoints Frameworks v1.0 -->
        <!-- Endpoints Frameworks v2.0 -->
        <dependency>
            <groupId>com.google.endpoints</groupId>
            <artifactId>endpoints-framework</artifactId>
            <version>2.0.7</version>
        </dependency>
        <!-- End of Endpoints Frameworks v2.0 -->
        <dependency>
            <groupId>com.google.appengine</groupId>
            <artifactId>appengine-api-1.0-sdk</artifactId>
            <version>1.9.53</version>
        </dependency>
        <dependency>
            <groupId>javax.servlet</groupId>
            <artifactId>servlet-api</artifactId>
            <version>2.5</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.inject</groupId>
            <artifactId>javax.inject</artifactId>
            <version>1</version>
        </dependency>
    </dependencies>

    <build>
        <!-- for hot reload of the web application-->
        <outputDirectory>${project.build.directory}/${project.build.finalName}/WEB-INF/classes</outputDirectory>
        <plugins>
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>appengine-maven-plugin</artifactId>
                <version>1.3.1</version>
                <configuration>
                    <!-- deploy configuration -->
                </configuration>
            </plugin>
            <plugin>
                <groupId>com.google.cloud.tools</groupId>
                <artifactId>endpoints-framework-maven-plugin</artifactId>
                <version>1.0.0</version>
                <configuration>
                    <!-- plugin configuration -->
                    <hostname>YOUR-PROJECT-ID.appspot.com</hostname>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>versions-maven-plugin</artifactId>
                <version>2.1</version>
                <executions>
                    <execution>
                        <phase>compile</phase>
                        <goals>
                            <goal>display-dependency-updates</goal>
                            <goal>display-plugin-updates</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>

After this I run this command mvn clean package to build project. And then I run mvn appengine:run but I got this error. appengine-maven-plugin:1.3.1 run failed non zero exit

I re-run my command with -e And here is what I got.

[INFO]   com.google.cloud.tools:appengine-maven-plugin ........ 1.3.1 -> 1.3.2
[INFO]   com.google.cloud.tools:endpoints-framework-maven-plugin  1.0.0 -> 1.0.3

[INFO]
[WARNING] The following plugins do not have their version specified:
[WARNING]   maven-clean-plugin ........................ (from super-pom) 3.1.0
[WARNING]   maven-compiler-plugin ..................... (from super-pom) 3.7.0
[WARNING]   maven-deploy-plugin ....................... (from super-pom) 2.8.2
[WARNING]   maven-install-plugin ...................... (from super-pom) 2.5.2
[WARNING]   maven-resources-plugin .................... (from super-pom) 3.1.0
[WARNING]   maven-site-plugin ......................... (from super-pom) 3.7.1
[WARNING]   maven-surefire-plugin .................... (from super-pom) 2.21.0
[WARNING]   maven-war-plugin .......................... (from super-pom) 3.2.0
[INFO]
[WARNING] Project does not define minimum Maven version, default is: 2.0
[INFO] Plugins require minimum Maven version of: 3.0
[INFO] Note: the super-pom from Maven 3.5.3 defines some of the plugin
[INFO]       versions and may be influencing the plugins required minimum Maven
[INFO]       version.
[INFO]
[ERROR] Project does not define required minimum version of Maven.
[ERROR] Update the pom.xml to contain
[ERROR]     <prerequisites>
[ERROR]       <maven>3.0</maven>
[ERROR]     </prerequisites>
[INFO]
[INFO] Require Maven 2.0.1 to use the following plugin updates:
[INFO]   maven-war-plugin .............................................. 2.0.2
[INFO]
[INFO] Require Maven 2.0.2 to use the following plugin updates:
[INFO]   maven-site-plugin ........................................ 2.0-beta-7
[INFO]
[INFO] Require Maven 2.0.6 to use the following plugin updates:
[INFO]   maven-clean-plugin .............................................. 2.5
[INFO]   maven-deploy-plugin ........................................... 2.8.1
[INFO]   maven-install-plugin .......................................... 2.5.1
[INFO]   maven-resources-plugin .......................................... 2.6
[INFO]   maven-site-plugin ............................................. 2.0.1
[INFO]   maven-surefire-plugin ......................................... 2.4.3
[INFO]   maven-war-plugin ................................................ 2.4
[INFO]
[INFO] Require Maven 2.0.9 to use the following plugin updates:
[INFO]   maven-compiler-plugin ........................................... 3.1
[INFO]   maven-surefire-plugin .......................................... 2.17
[INFO]
[INFO] Require Maven 2.1.0 to use the following plugin updates:
[INFO]   maven-site-plugin ............................................. 2.1.1
[INFO]
[INFO] Require Maven 2.2.0 to use the following plugin updates:
[INFO]   maven-site-plugin ............................................... 3.0
[INFO]
[INFO] Require Maven 2.2.1 to use the following plugin updates:
[INFO]   maven-clean-plugin ............................................ 2.6.1
[INFO]   maven-compiler-plugin ........................................... 3.3
[INFO]   maven-deploy-plugin ........................................... 2.8.2
[INFO]   maven-install-plugin .......................................... 2.5.2
[INFO]   maven-resources-plugin .......................................... 2.7
[INFO]   maven-site-plugin ............................................. 3.7.1
[INFO]   maven-surefire-plugin .......................................... 2.20
[INFO]   maven-war-plugin ................................................ 2.6
[INFO]   org.codehaus.mojo:versions-maven-plugin ......................... 2.2
[INFO]
[INFO] Require Maven 3.0 to use the following plugin updates:
[INFO]   maven-clean-plugin ............................................ 3.1.0
[INFO]   maven-compiler-plugin ......................................... 3.7.0
[INFO]   maven-resources-plugin ........................................ 3.1.0
[INFO]   maven-surefire-plugin ........................................ 2.21.0
[INFO]   maven-war-plugin .............................................. 3.2.0
[INFO]   org.codehaus.mojo:versions-maven-plugin ......................... 2.5
[INFO]
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ en
dpoints ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:UsersDELLDownloadsTestendpoint
ssrcest
esources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ endpoin
ts ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ endpoints ---
[INFO] No tests to run.
[INFO]
[INFO] --- maven-war-plugin:2.2:war (default-war) @ endpoints ---
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.thoughtworks.xstream.core.util.Fields
(file:/C:/Users/DELL/.m2/repository/com/thoughtworks/xstream/xstream/1.3.1/xstre
am-1.3.1.jar) to field java.util.Properties.defaults
WARNING: Please consider reporting this to the maintainers of com.thoughtworks.x
stream.core.util.Fields
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflect
ive access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Packaging webapp
[INFO] Assembling webapp [endpoints] in [C:UsersDELLDownloadsTestendpoints
targetendpoints-1.0-SNAPSHOT]
[INFO] Processing war project
[INFO] Copying webapp resources [C:UsersDELLDownloadsTestendpointssrcmain
webapp]
[INFO] Webapp assembled in [187 msecs]
[INFO] Building war: C:UsersDELLDownloadsTestendpointsargetendpoints-1.0
-SNAPSHOT.war
[INFO] WEB-INFweb.xml already added, skipping
[INFO]
[INFO] <<< appengine-maven-plugin:1.3.1:run (default-cli) < package @ endpoints
<<<
[INFO]
[INFO]
[INFO] --- appengine-maven-plugin:1.3.1:run (default-cli) @ endpoints ---
May 10, 2018 6:25:00 AM com.google.cloud.tools.appengine.cloudsdk.CloudSdk logCo
mmand
INFO: submitting command: C:Program FilesJavajdk-10.0.1injava.exe -javaage
nt:C:Program Files (x86)GoogleCloud SDKgoogle-cloud-sdkplatformgoogle_appe
nginegoogleappengineoolsjavalibagentappengine-agent.jar -Dappengine.sdk.
root=C:Program Files (x86)GoogleCloud SDKgoogle-cloud-sdkplatformgoogle_ap
penginegoogleappengineoolsjava -cp C:Program Files (x86)GoogleCloud SDK
google-cloud-sdkplatformgoogle_appenginegoogleappengineoolsjavalibappen
gine-tools-api.jar com.google.appengine.tools.development.DevAppServerMain --all
ow_remote_shutdown --disable_update_check C:UsersDELLDownloadsTestendpoints
argetendpoints-1.0-SNAPSHOT
[INFO] GCLOUD: Warning: Google App Engine Java 7 runtime is deprecated.
[INFO] GCLOUD: Warning: See h

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...