Code Monkey home page Code Monkey logo

Comments (11)

jDramaix avatar jDramaix commented on June 25, 2024

I forgot to commit the last version of the pom files.
I should work now.

from gwtchosen.

komasoftware avatar komasoftware commented on June 25, 2024

I checked out a clean version and mvn install get me further from scratch now but not yet completely there :

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Chosen plugin project ............................. SUCCESS [0.316s]
[INFO] Chosen plugin for gQuery .......................... SUCCESS [2.941s]
[INFO] Chosen gQuery plugin example ...................... FAILURE [1.647s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.133s
[INFO] Finished at: Wed Aug 29 12:22:41 CEST 2012
[INFO] Final Memory: 25M/142M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.5.0-rc1:compile (default) on project chosen-sample: Command [[
[ERROR] /bin/sh -c /usr/lib/jvm/jdk1.6.0_31/jre/bin/java -Xmx512m -classpath /home/koen/src/gwtchosen/sample/target/classes:/home/koen/src/gwtchosen/sample/src/main/java:/home/koen/src/gwtchosen/sample/src/main/resources:/home/koen/src/gwtchosen/plugin/target/gwtchosen-1.0.1.jar:/home/koen/.m2/repository/com/googlecode/gwtquery/gwtquery/1.2.0/gwtquery-1.2.0.jar:/home/koen/.m2/repository/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar:/home/koen/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/home/koen/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar:/home/koen/.m2/repository/com/google/gwt/gwt-dev/2.4.0/gwt-dev-2.4.0.jar:/home/koen/.m2/repository/com/google/gwt/gwt-user/2.5.0-rc1/gwt-user-2.5.0-rc1.jar:/home/koen/.m2/repository/com/google/gwt/gwt-dev/2.5.0-rc1/gwt-dev-2.5.0-rc1.jar com.google.gwt.dev.Compiler -XdisableUpdateCheck -logLevel INFO -style OBF -war /home/koen/src/gwtchosen/sample/target/chosen-sample-1.0.1 -localWorkers 8 -XfragmentCount -1 -gen /home/koen/src/gwtchosen/sample/target/.generated com.watopi.chosen.sample.ChosenSample com.watopi.chosen.sample.ChosenSampleDev com.watopi.chosen.widgetsample.WidgetSampleDev com.watopi.chosen.widgetsample.WidgetSample

thx !!

from gwtchosen.

komasoftware avatar komasoftware commented on June 25, 2024

full stack trace :

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.5.0-rc1:compile (default) on project chosen-sample: Command [[
/bin/sh -c /usr/lib/jvm/jdk1.6.0_31/jre/bin/java -Xmx512m -classpath /home/koen/src/gwtchosen/sample/target/classes:/home/koen/src/gwtchosen/sample/src/main/java:/home/koen/src/gwtchosen/sample/src/main/resources:/home/koen/src/gwtchosen/plugin/target/gwtchosen-1.0.1.jar:/home/koen/.m2/repository/com/googlecode/gwtquery/gwtquery/1.2.0/gwtquery-1.2.0.jar:/home/koen/.m2/repository/com/google/gwt/gwt-user/2.4.0/gwt-user-2.4.0.jar:/home/koen/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA.jar:/home/koen/.m2/repository/javax/validation/validation-api/1.0.0.GA/validation-api-1.0.0.GA-sources.jar:/home/koen/.m2/repository/com/google/gwt/gwt-dev/2.4.0/gwt-dev-2.4.0.jar:/home/koen/.m2/repository/com/google/gwt/gwt-user/2.5.0-rc1/gwt-user-2.5.0-rc1.jar:/home/koen/.m2/repository/com/google/gwt/gwt-dev/2.5.0-rc1/gwt-dev-2.5.0-rc1.jar com.google.gwt.dev.Compiler -XdisableUpdateCheck -logLevel INFO -style OBF -war /home/koen/src/gwtchosen/sample/target/chosen-sample-1.0.1 -localWorkers 8 -XfragmentCount -1 -gen /home/koen/src/gwtchosen/sample/target/.generated com.watopi.chosen.sample.ChosenSample com.watopi.chosen.sample.ChosenSampleDev com.watopi.chosen.widgetsample.WidgetSampleDev com.watopi.chosen.widgetsample.WidgetSample
]] failed with status 1
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    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.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.codehaus.mojo.gwt.shell.ForkedProcessExecutionException: Command [[

from gwtchosen.

jDramaix avatar jDramaix commented on June 25, 2024

What is weird is that your stacktrace is taking about gwt-maven-plugin 2.5.0-rc1 ?? It should be gwt-maven-plugin 2.4.0

Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.5.0-rc1:compile (default) on project chosen-sample

Could you verify that the pom.xml present is the sample directory ?

from gwtchosen.

komasoftware avatar komasoftware commented on June 25, 2024

I did a clean checkout again, and this is what the pom says about the GWT version :

    <properties>
      <maven.compiler.source>1.5</maven.compiler.source>
      <maven.compiler.target>1.5</maven.compiler.target>
      <gQueryVersion>1.2.0</gQueryVersion>
      <gwtversion>2.4.0</gwtversion>
    </properties>

but mvn install results to the same :

[WARNING] You're project declares dependency on gwt-user 2.4.0. This plugin is designed for at least gwt version 2.5.0-rc1
[WARNING] Don't declare gwt-dev as a project dependency. This may introduce complex dependency conflicts
[WARNING] You're project declares dependency on gwt-user 2.4.0. This plugin is designed for at least gwt version 2.5.0-rc1
[ERROR] Unknown argument: -XfragmentCount
[ERROR] Google Web Toolkit 2.4.0
[ERROR] Compiler [-logLevel level] [-workDir dir] [-gen dir] [-style style] [-ea] [-XdisableClassMetadata] [-XdisableCastChecking] [-validateOnly] [-draftCompile] [-optimize level] [-compileReport] [-strict] [-localWorkers count] [-war dir] [-deploy dir] [-extra dir] module[s] 

But I think this is not related to your project but rather to the maven plugin for GWT ... possible ?

Damn, I hate maven....

from gwtchosen.

komasoftware avatar komasoftware commented on June 25, 2024

PS : posted the problem to the gwt group : https://groups.google.com/d/topic/google-web-toolkit/TCHcQI4bZbU/discussion

from gwtchosen.

komasoftware avatar komasoftware commented on June 25, 2024

@jDramaix got help on the GWT group :

In sample/pom.xml, add the following after line 34 (after "gwt-maven-plugin"):

<version>${gwtversion}</version>

Then add the following between "" and "" (following line 71 after the first step):

<pluginManagement>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-war-plugin</artifactId>
            <configuration>
                <failOnMissingWebXml>false</failOnMissingWebXml>
            </configuration>
        </plugin>
    </plugins>
</pluginManagement>

These are problems with the POM and should be fixed in the original project.

This fixed the problem... maybe you can make these changes to the POM.

from gwtchosen.

jDramaix avatar jDramaix commented on June 25, 2024

@komasoftware thanks for the investigation and the fix.
I commit the changes, could you try again with a clean checkout ?

from gwtchosen.

komasoftware avatar komasoftware commented on June 25, 2024

It worked fine when I applied the fix locally but a clean checkout does not build :

Downloading: http://repo1.maven.org/maven2/com/watopi/gwtchosen/1.0.2-snapshot/gwtchosen-1.0.2-snapshot.pom
Downloading: http://gwtquery.googlecode.com/svn/mavenrepo/com/watopi/gwtchosen/1.0.2-snapshot/gwtchosen-1.0.2-snapshot.pom
Downloading: http://maven.glassfish.org/content/groups/public/com/watopi/gwtchosen/1.0.2-snapshot/gwtchosen-1.0.2-snapshot.pom
[WARNING] The POM for com.watopi:gwtchosen:jar:1.0.2-snapshot is missing, no dependency information available
Downloading: http://repo1.maven.org/maven2/com/watopi/gwtchosen/1.0.2-snapshot/gwtchosen-1.0.2-snapshot.jar
Downloading: http://gwtquery.googlecode.com/svn/mavenrepo/com/watopi/gwtchosen/1.0.2-snapshot/gwtchosen-1.0.2-snapshot.jar
Downloading: http://maven.glassfish.org/content/groups/public/com/watopi/gwtchosen/1.0.2-snapshot/gwtchosen-1.0.2-snapshot.jar
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Chosen plugin project ............................. SUCCESS [1.354s]
[INFO] Chosen plugin for gQuery .......................... SUCCESS [4.075s]
[INFO] Chosen gQuery plugin example ...................... FAILURE [10.423s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.158s
[INFO] Finished at: Sat Sep 01 13:13:40 CEST 2012
[INFO] Final Memory: 19M/91M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project chosen-sample: Could not resolve dependencies for project com.watopi:chosen-sample:war:1.0.1: Could not find artifact com.watopi:gwtchosen:jar:1.0.2-snapshot in central (http://repo1.maven.org/maven2) -> [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/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :chosen-sample

from gwtchosen.

jDramaix avatar jDramaix commented on June 25, 2024

I was building a 1.0.2-snapshot, I forgot to change the dependency of sample to the plugin
Should be ok now

from gwtchosen.

komasoftware avatar komasoftware commented on June 25, 2024
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Chosen plugin project ............................. SUCCESS [1.624s]
[INFO] Chosen plugin for gQuery .......................... SUCCESS [2.442s]
[INFO] Chosen gQuery plugin example ...................... SUCCESS [2:43.916s]
[INFO] ------------------------------------------------------------------------

thx for doing that on a saturday :)

from gwtchosen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.