I also have Eclipse build problems with the claims example. I’ve tried with Galileo and Helios releases of Eclipse and the 0.10.2 m2eclipse plugin. I’m running on the Mac.
First issue I found is that there is no Import Maven project in the General list; there is one in the Maven list so I used that. Once imported I don’t see a project called claims but I do have example-claims which is the multi-module project. Initially all projects have errors and I have to go to the Maven config and tick Support Multiple Maven modules … this allows me to select the Nested Modules on the Maven menu for the example-claims project.
After all of this, and project refreshes, eclipse restarts, etc. The projects still show errors such as:
7/4/10 12:01:18 PM BST: Build errors for claims-webapp; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project claims-webapp: Unable to get dependency information for org.nakedobjects.distribution:claims-fixture:jar:4.0.0: Failed to process POM for org.nakedobjects.distribution:claims-fixture:jar:4.0.0: Non-resolvable parent POM org.nakedobjects.distribution:examples:4.0.0 for org.nakedobjects.distribution:example-claims:4.0.0: Failed to resolve POM for org.nakedobjects.distribution:examples:4.0.0 due to Missing:
1 required artifact is missing.
from the specified remote repositories:
central (http://repo2.maven.org/maven2, releases=true, snapshots=false)
7/4/10 12:43:29 PM BST: Missing artifact org.nakedobjects.core:bytecode-cglib:jar:4.0.0:compile
7/4/10 12:43:29 PM BST: Missing artifact org.nakedobjects.core:runtime:jar:4.0.0:compile
7/4/10 12:43:29 PM BST: Missing artifact org.nakedobjects.core:metamodel:jar:4.0.0:compile
plus many others.
If I execute a Maven build in Eclipse (right click project and then Run As … maven install) it builds correctly. If I try on the command line it fails with the same errors.
I suspect this has nothing to do with Naked Object and is Maven.
Any help gratefully received.