From: Kay <Kay...@be...> - 2005-10-27 10:54:08
|
Hi Jeff, we're not compatible to Maven 2.x. At the time of creating our maven project structure, Maven 2.0 was still considered beta so we took the stable 1.0.2 version. http://maven.apache.org/guides/mini/guide-m1-m2.html shows the differences between the project structure of Maven 2.x and 1.x. There are no plans to migrate our structure to Maven 2.x since we don't need any of the new features. I'll update the README to reflect the requirement of Maven 1.0.2. Thanks for pointing this out, Kay Jeffrey Graham <jg...@sk...> Sent by: gui...@li... 26.10.2005 14:12 Please respond to jg...@sk... To gui...@li... cc Subject [Gui4j-user] problems building Hello, I am new to Gui4J. Downloaded the CVS version of Gui4J and the documentation as well. Installed Maven 2.0 and tested using "mvn --version" as suggested. All seems well. My platform is: gentoo linux, i386 My java environment is: JAVA_HOME=/opt/blackdown-jdk-1.4.2.02 JAVAC=/opt/blackdown-jdk-1.4.2.02/bin/javac I have the dependecies: dom4j 1.6.1 commons-logging 1.04-r1 When I attempt "maven site" I get this error.... [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven Default Project [INFO] task-segment: [site] [INFO] ---------------------------------------------------------------------------- [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD ERROR [INFO] ---------------------------------------------------------------------------- [INFO] Cannot execute mojo: site. It requires a project, but the build is not using one. [INFO] ---------------------------------------------------------------------------- [INFO] For more information, run Maven with the -e switch [INFO] ---------------------------------------------------------------------------- [INFO] Total time: 1 second [INFO] Finished at: Wed Oct 26 12:05:58 UTC 2005 [INFO] Final Memory: 3M/6M [INFO] ---------------------------------------------------------------------------- If I try "maven -e site" I get this error (same as above, but with more info)... + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [INFO] Building Maven Default Project [INFO] task-segment: [site] [INFO] ---------------------------------------------------------------------------- [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD ERROR [INFO] ---------------------------------------------------------------------------- [INFO] Cannot execute mojo: site. It requires a project, but the build is not using one. [INFO] ---------------------------------------------------------------------------- [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot execute mojo: site. It requires a project, but the build is not using one. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:469) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:448) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113) at org.apache.maven.cli.MavenCli.main(MavenCli.java:249) 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:324) 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.MojoExecutionException: Cannot execute mojo: site. It requires a project, but the build is not using one. at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:326) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519) ... 16 more [INFO] ---------------------------------------------------------------------------- [INFO] Total time: 1 second [INFO] Finished at: Wed Oct 26 12:07:07 UTC 2005 [INFO] Final Memory: 3M/6M [INFO] ---------------------------------------------------------------------------- When I attempt "maven dist" I get this error.... [INFO] Scanning for projects... [INFO] ---------------------------------------------------------------------------- [ERROR] BUILD FAILURE [INFO] ---------------------------------------------------------------------------- [INFO] Invalid task 'dist': you must specify a valid lifecycle phase, or a goal in the format plugin:goal or pluginGroupId:pluginArtifactId:pluginVersion:goal [INFO] ---------------------------------------------------------------------------- [INFO] For more information, run Maven with the -e switch [INFO] ---------------------------------------------------------------------------- [INFO] Total time: < 1 second [INFO] Finished at: Wed Oct 26 12:05:07 UTC 2005 [INFO] Final Memory: 1M/2M [INFO] ---------------------------------------------------------------------------- Your help is appreciated. Thanks, Jeff ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Gui4j-user mailing list Gui...@li... https://lists.sourceforge.net/lists/listinfo/gui4j-user |