ludoch / appengine-maven-plugin

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

NoSuchElementException when executing maven goal with <pluginManagement> tag in pom.xml #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. use <pluginManagement> tag in pom.xml
2. run $ mvn appengine:devserver

What is the expected output? What do you see instead?
The issue causes the maven goal is not executed successfully.
It encountered the following error (see attached error.log for more info)
[ERROR] Failed to execute goal 
com.google.appengine:appengine-maven-plugin:1.8.5:devserver (default-cli) on 
project appengine-maven-template: Execution default-cli of goal 
com.google.appengine:appengine-maven-plugin:1.8.5:devserver failed.
NoSuchElementException -> [Help 1]

What version of the product are you using? On what operating system?
appengine-maven-plugin:1.8.5

Please provide any additional information below.
I tried to debug, at first look, I suspect SdkResolver couldn't resolve 
appengine-maven-plugin.

Original issue reported on code.google.com by gunawan....@gmail.com on 8 Oct 2013 at 7:19

Attachments:

GoogleCodeExporter commented 9 years ago
Hi  I'm with the error! 

Anyone could solve it ?

regards

Original comment by cio.dan...@gmail.com on 14 Oct 2013 at 10:04

GoogleCodeExporter commented 9 years ago
same here.
Environment:
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 
10:22:22-0500)
Java version: 1.7.0_45, vendor: Oracle Corporation

AppEngine version 1.8.8
AppEngine maven plugin 1.8.8

just generated the skeleton-archetype project via archetype:generate.

mvn verify - BUILD SUCCESSFUL
mvn appengine:devserver - BUILD FAILURE

Caused by: java.util.NoSuchElementException
    at com.google.common.collect.AbstractIterator.next(AbstractIterator.java:154)
    at com.google.common.collect.Iterators.find(Iterators.java:775)
    at com.google.common.collect.Iterables.find(Iterables.java:646)
    at com.google.appengine.SdkResolver.getSdk(SdkResolver.java:50)
    at com.google.appengine.devappserver.AbstractDevAppServerMojo.getDevAppServerCommand(AbstractDevAppServerMojo.java:138)
    at com.google.appengine.devappserver.DevAppServerRunner.execute(DevAppServerRunner.java:40)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
    ... 21 more

Original comment by nsk...@gmail.com on 23 Nov 2013 at 1:10

GoogleCodeExporter commented 9 years ago
you need to add the plugin not only in the pluginManagement section, but also 
in the 
<build><plugins> section.

 <build>                                  
        <plugins>
         <plugin>
          <groupId>com.google.appengine</groupId>
                  <artifactId>appengine-maven-plugin</artifactId>
         </plugin>
        ....

Original comment by proe...@gmail.com on 25 Nov 2013 at 7:11

GoogleCodeExporter commented 9 years ago
Thanks Guys. Did work for me

Original comment by kajaym2...@gmail.com on 25 Dec 2013 at 6:35

GoogleCodeExporter commented 9 years ago

Original comment by l...@google.com on 14 Jun 2014 at 5:08