Paul, how come you dont have the pom, was it deleted by maven itself? Without the pom maven of course cannot do anything.
Ah, I see. You have checked out the entire trunk! We use a subproject layout with parallel projects under trunk. Because Maven and Eclipse are not good buddies we also do not use hierarchical maven projects, but use the <parent> directive to refer to a pom parent.
So in order to build the IPT you need to checkout trunk/gbif- providertool like this:
cd ~/workspace svn co http://gbif-providertoolkit.googlecode.com/svn/trunk/gbif-providertool ipt
this will create an ipt folder in your workspace that contains a pom.xml ! in that ipt dir you should be able to do: mvn eclipse:eclipse
Any better? Markus
On Aug 28, 2009, at 1:34, Paul J. Morris wrote:
On Thu, 27 Aug 2009 15:05:53 -0700 Aaron Steele eightysteele@gmail.com wrote:
That's not working for me, nor is mvn eclipse:eclipse, maven complains that there's no eclipse profile in the one case and no pom.xml file in the other.
If you run 'mvn -Peclipse -X' and post the output that might give us some clues.
It can't find either an eclipse profile or the pom file in the directory that should end up as the root of the project.
Effectively this comes from: mkdir ~/workspace/ipt cd ~/workspace/ svn checkout http://gbif-providertoolkit.googlecode.com/svn/trunk/ ipt/ cd ipt/
though it's gone through a number of updates since then, and has some local changes to the code (but the same thing happens with a fresh checkout).
then:
mole@chicoreus:~/workspace/ipt$ mvn -Peclipse -X
- Error stacktraces are turned on.
Apache Maven 2.1.0 (r755702; 2009-03-18 15:10:27-0400) Java version: 1.6.0_06 Java home: /usr/local/java/jdk1.6.0_06/jre Default locale: en_US, platform encoding: UTF-8 OS name: "linux" version: "2.6.18-6-686" arch: "i386" Family: "unix" [DEBUG] Building Maven user-level plugin registry from: '/home/mole/.m2/plugin-registry.xml' [DEBUG] Building Maven global-level plugin registry from: '/usr/local/java/apache-maven-2.1.0/conf/plugin-registry.xml' [INFO] Scanning for projects... [WARNING] Profile with id: 'eclipse' has not been activated.
[INFO]
[ERROR] BUILD FAILURE [INFO]
[INFO]
You must specify at least one goal or lifecycle phase to perform build steps. The following list illustrates some commonly used build commands:
mvn clean Deletes any build output (e.g. class files or JARs). mvn test Runs the unit tests for the project. mvn install Copies the project artifacts into your local repository. mvn deploy Copies the project artifacts into the remote repository. mvn site Creates project documentation (e.g. reports or Javadoc).
Please see http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht... for a complete description of available lifecycle phases.
Use "mvn --help" to show general usage information about Maven's command line.
[INFO]
[DEBUG] Trace org.apache.maven.BuildFailureException:
You must specify at least one goal or lifecycle phase to perform build steps. The following list illustrates some commonly used build commands:
mvn clean Deletes any build output (e.g. class files or JARs). mvn test Runs the unit tests for the project. mvn install Copies the project artifacts into your local repository. mvn deploy Copies the project artifacts into the remote repository. mvn site Creates project documentation (e.g. reports or Javadoc).
Please see http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.ht... for a complete description of available lifecycle phases.
Use "mvn --help" to show general usage information about Maven's command line.
at
org .apache .maven .lifecycle .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:173) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137) at org.apache.maven.cli.MavenCli.main(MavenCli.java:356) 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) [INFO]
[INFO] Total time: < 1 second [INFO] Finished at: Thu Aug 27 19:21:48 EDT 2009 [INFO] Final Memory: 1M/40M [INFO]
Merry Snailing,
-Paul
Paul J. Morris Biodiversity Informatics Manager Harvard University Herbaria/Museum of Comparative Zoölogy mole@morris.net AA3SD PGP public key available