Artem24 / gwtgae2011

Automatically exported from code.google.com/p/gwtgae2011
0 stars 0 forks source link

Problem creating an Eclipse project #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hello, 

I tried to create an Eclipse project with the command mvn eclipse:eclipse

I am new to maven an do not know what to do to solve this error. 

Thanks!

 Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Gwt Gae Demo, Google IO 2011
[INFO]    task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] Preparing gae:unpack
[WARNING] Removing: unpack from forked lifecycle, to prevent recursive 
invocation.
[INFO] No goals needed for project - skipping
[INFO] [gae:unpack {execution: install-server-jar}]
[INFO] Found appengine-java-sdk 1.4.2.
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to configure plugin parameters for: 
org.apache.maven.plugins:maven-eclipse-plugin:2.8

    (found static expression: 'com.google.gwt.eclipse.core.gwtProjectValidator' which may act as a default value).

Cause: Cannot assign configuration entry 'buildCommand' to 'class 
org.apache.maven.plugin.eclipse.BuildCommand' from 
'com.google.gwt.eclipse.core.gwtProjectValidator', which is of type class 
java.lang.String
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error configuring: 
org.apache.maven.plugins:maven-eclipse-plugin. Reason: Unable to parse the 
created DOM for plugin configuration
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:723)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
    at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
    at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
    at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
    at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.PluginConfigurationException: Error 
configuring: org.apache.maven.plugins:maven-eclipse-plugin. Reason: Unable to 
parse the created DOM for plugin configuration
    at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1363)
    at org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:724)
    at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
    at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
    ... 17 more
Caused by: 
org.codehaus.plexus.component.configurator.ComponentConfigurationException: 
Cannot assign configuration entry 'buildCommand' to 'class 
org.apache.maven.plugin.eclipse.BuildCommand' from 
'com.google.gwt.eclipse.core.gwtProjectValidator', which is of type class 
java.lang.String
    at org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter.fromExpression(AbstractConfigurationConverter.java:149)
    at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.fromConfiguration(ObjectWithFieldsConverter.java:80)
    at org.codehaus.plexus.component.configurator.converters.composite.CollectionConverter.fromConfiguration(CollectionConverter.java:177)
    at org.codehaus.plexus.component.configurator.converters.ComponentValueSetter.configure(ComponentValueSetter.java:207)
    at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration(ObjectWithFieldsConverter.java:137)
    at org.codehaus.plexus.component.configurator.BasicComponentConfigurator.configureComponent(BasicComponentConfigurator.java:56)
    at org.apache.maven.plugin.DefaultPluginManager.populatePluginFields(DefaultPluginManager.java:1357)
    ... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed May 18 10:36:57 CEST 2011
[INFO] Final Memory: 31M/247M
[INFO] ------------------------------------------------------------------------

Original issue reported on code.google.com by rausch.p...@gmail.com on 18 May 2011 at 8:40

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Here are the steps I used to open the project in Eclipse:

- Get a local copy of the gwtgae2011 repository with this command:
   hg clone https://code.google.com/p/gwtgae2011/ gwtgae2011

- In Eclipse (Indigo) select: File -> Import... -> Maven > Existing Maven 
Projects
- Enter local path to the cloned gwtgae2011 reposity and press Next.
- Ignore errors and click on Finish

See the steps for running GWTP samples here:
http://code.google.com/p/gwt-platform/wiki/RunningGwtpSamples

Original comment by omidk...@gmail.com on 22 Jul 2011 at 10:05

GoogleCodeExporter commented 8 years ago
I still cannot figure how to run the project from within eclipse as there is no 
"Run as Web Application" option.

Original comment by omidk...@gmail.com on 22 Jul 2011 at 10:06

GoogleCodeExporter commented 8 years ago
Similar Problem here:
Plugin execution not covered by lifecycle configuration: 
net.kindleit:maven-gae-plugin:0.8.1:unpack (execution: install-server-jar, 
phase: validate)    pom.xml /gwtgae2011 line 394    Maven Project Build Lifecycle 
Mapping Problem

Original comment by samuel.s...@gmail.com on 23 Jul 2011 at 1:58

GoogleCodeExporter commented 8 years ago
Thanks I am able to add it in eclipse but I would like to run mvn 
eclipse:eclipse on the command line as well, anyone have any idea why this is 
happening?

Original comment by benjamin...@gmail.com on 5 Oct 2011 at 10:18