15 Mar 2010, 00:55
Generic-user-small

Barbara Wood (3 posts)

Dan,

I followed the instructions in the book and installed the components on my Macbook running OS X 10.6.2. I am using Java 1.6.0_7, Maven 2.2.0, Eclipse 3.5, m2eclipse 0.10.0, and Naked Objects 4.0.0

When I load the claims app, I get the following errors

Description Resource Path Location Type AbstractFactoryAndRepository cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 12 Java Problem AbstractFactoryAndRepository cannot be resolved to a type EmployeeRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/employee line 11 Java Problem AbstractFixture cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 12 Java Problem Claim cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 25 Java Problem Claim cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 26 Java Problem Claim cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 32 Java Problem Claim cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 34 Java Problem Claim cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 40 Java Problem Claim cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 41 Java Problem Claim cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 41 Java Problem Claim cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 45 Java Problem Claim cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 50 Java Problem Claim cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 51 Java Problem Claim cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 51 Java Problem Claim cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 20 Java Problem Claim cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 43 Java Problem Claim cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 44 Java Problem Claim cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 44 Java Problem Claim cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 54 Java Problem Claimant cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 40 Java Problem Claimant cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 50 Java Problem ClaimItem cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 55 Java Problem ClaimItem cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 55 Java Problem ClaimRepository cannot be resolved to a type ClaimRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/claim line 12 Java Problem Date cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 47 Java Problem Date cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 47 Java Problem Date cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 56 Java Problem Date cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 56 Java Problem Employee cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 16 Java Problem Employee cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 17 Java Problem Employee cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 34 Java Problem Employee cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 34 Java Problem Employee cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 35 Java Problem Employee cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 36 Java Problem Employee cannot be resolved to a type ClaimsFixture.java /claims-fixture/src/main/java/org/nakedobjects/examples/claims/fixture line 43 Java Problem Employee cannot be resolved to a type EmployeeRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/employee line 24 Java Problem Employee cannot be resolved to a type EmployeeRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/employee line 25 Java Problem Employee cannot be resolved to a type EmployeeRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/employee line 31 Java Problem Employee cannot be resolved to a type EmployeeRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/employee line 32 Java Problem EmployeeRepository cannot be resolved to a type EmployeeRepositoryInMemory.java /claims-service/src/main/java/org/nakedobjects/examples/claims/service/employee line 11 Java Problem Missing artifact asm:asm:jar:3.1:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact asm:asm:jar:3.1:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact cglib:cglib-nodep:jar:2.1_3:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact cglib:cglib-nodep:jar:2.1_3:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact commons-cli:commons-cli:jar:1.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact commons-cli:commons-cli:jar:1.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact commons-codec:commons-codec:jar:1.3:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact commons-codec:commons-codec:jar:1.3:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact commons-collections:commons-collections:jar:3.2.1:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact commons-collections:commons-collections:jar:3.2.1:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact commons-httpclient:commons-httpclient:jar:3.1:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact commons-lang:commons-lang:jar:1.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact commons-lang:commons-lang:jar:1.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact commons-logging:commons-logging:jar:1.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact commons-logging:commons-logging:jar:1.0.4:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact javassist:javassist:jar:3.8.0.GA:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact javassist:javassist:jar:3.8.0.GA:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact junit:junit:jar:3.7:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact junit:junit:jar:3.7:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact log4j:log4j:jar:1.2.14:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact log4j:log4j:jar:1.2.14:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.hamcrest:hamcrest-core:jar:1.1:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.hamcrest:hamcrest-core:jar:1.1:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.hamcrest:hamcrest-library:jar:1.1:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.hamcrest:hamcrest-library:jar:1.1:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.mortbay.jetty:jetty-util:jar:6.1.16:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.mortbay.jetty:jetty:jar:6.1.16:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.mortbay.jetty:servlet-api:jar:2.5-20081211:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects:applib:jar:4.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects:applib:jar:4.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.core:bytecode-cglib:jar:4.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.core:bytecode-cglib:jar:4.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.core:bytecode-javassist:jar:4.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.core:bytecode-javassist:jar:4.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.core:metamodel:jar:4.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.core:metamodel:jar:4.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.core:metamodel:test-jar:tests:4.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.core:metamodel:test-jar:tests:4.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.core:remoting:jar:4.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.core:remoting:jar:4.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.core:runtime:jar:4.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.core:runtime:jar:4.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.core:runtime:test-jar:tests:4.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.core:runtime:test-jar:tests:4.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.core:webapp:jar:4.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.core:webapp:jar:4.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.core:webserver:jar:4.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.plugins:dnd-viewer:jar:1.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.plugins:headless-applib:jar:1.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.plugins:headless-applib:jar:1.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.plugins:headless-embedded:jar:1.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.plugins:headless-embedded:jar:1.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.plugins:headless-viewer:jar:1.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.plugins:headless-viewer:jar:1.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.plugins:html-viewer:jar:1.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.plugins:html-viewer:jar:1.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.plugins:http-remoting-client:jar:1.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.plugins:http-remoting-server:jar:1.0.0:compile pom.xml /claims-commandline line 1 Maven Problem Missing artifact org.nakedobjects.plugins:http-remoting-server:jar:1.0.0:compile pom.xml /claims-webapp line 1 Maven Problem Missing artifact org.nakedobjects.plugins:xml-persistor:jar:1.0.0:compile pom.xml /claims-commandline line 1 Maven Problem

15 Mar 2010, 01:39
Generic-user-small

Barbara Wood (3 posts)

I upgraded to Maven 2.2.1 and all appears to be well

16 Mar 2010, 07:48
Danhaywood-2011-282x282_pragsmall

Dan Haywood (131 posts)

Good-o!

I wonder whether there was something a little screwy with your original Maven install? As I recall I built the app using Maven 2.0.9.

Anyway, you’re working, so I guess it matters not.

Dan

19 Mar 2010, 22:28
Cartoon_pragsmall

Melvin Pérez-Cedano (5 posts)

I’m having this problem in both Windows and Mac.

My environment: Apache Maven 2.2.1 (r801777; 2009-08-06 15:16:01-0400) Java version: 1.5.0_22 Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home Default locale: en_US, platform encoding: MacRoman OS name: “mac os x” version: “10.5.8” arch: “i386” Family: “unix”

Eclipse 3.5

23 Mar 2010, 23:48
Danhaywood-2011-282x282_pragsmall

Dan Haywood (131 posts)

Melvin, Can you provide any further info? Where did you get through in the walkthrough? Does it compile with vanilla Maven, ie is the problem in Eclipse/m2eclipse?

Not sure if it’ll help, but I did a screencast a while back (http://danhaywood.com/2009/09/17/naked-objects-example-claims-app-and-other-resources). Although admittedly that was on my old Win PC (I am now a MacBook convert too…)

Dan

01 Apr 2010, 22:27
Cartoon_pragsmall

Melvin Pérez-Cedano (5 posts)

Hi Dan,

Sorry I did not get back to you sooner. (I was expecting to receive an automatic notification on your reply)

Currently I am getting the errors below when I open the project:

4/1/10 6:23:08 PM EDT: Build errors for claims-commandline; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project claims-commandline: 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) org.nakedobjects.distribution:examples:pom:4.0.0 ———- 1 required artifact is missing.

for artifact: org.nakedobjects.distribution:examples:pom:4.0.0

from the specified remote repositories: central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

4/1/10 6:23:06 PM EDT: Updating index central|http://repo1.maven.org/maven2 4/1/10 6:23:07 PM EDT: Downloading d9d714e11cb097b3ffcec91cccc65d3e : nexus-maven-repository-index.properties 4/1/10 6:23:07 PM EDT: Downloaded Repository[d9d714e11cb097b3ffcec91cccc65d3e|http://repo1.maven.org/maven2/.index]/nexus-maven-repository-index.properties 4/1/10 6:23:08 PM EDT: Updated index for central|http://repo1.maven.org/maven2 4/1/10 6:23:08 PM EDT: Maven Builder: AUTO_BUILD requireFullBuild 4/1/10 6:23:08 PM EDT: [WARN] 4/1/10 6:23:08 PM EDT: [WARN] Some problems were encountered while building the effective model for org.nakedobjects.distribution:claims-commandline:jar:4.0.0 4/1/10 6:23:08 PM EDT: [WARN] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.nakedobjects.plugins:xml-persistor:jar -> duplicate declaration of version 1.0.0 @ org.nakedobjects:release:4.0.0 4/1/10 6:23:08 PM EDT: [WARN] The expression ${version} is deprecated. Please use ${project.version} instead. @ org.nakedobjects.distribution:claims-commandline:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/commandline/pom.xml 4/1/10 6:23:08 PM EDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-commandline:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/commandline/pom.xml 4/1/10 6:23:08 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ org.nakedobjects.distribution:claims-commandline:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/commandline/pom.xml 4/1/10 6:23:08 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-commandline:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/commandline/pom.xml 4/1/10 6:23:08 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.nakedobjects.distribution:claims-commandline:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/commandline/pom.xml 4/1/10 6:23:08 PM EDT: [WARN] 4/1/10 6:23:08 PM EDT: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 4/1/10 6:23:08 PM EDT: [WARN] 4/1/10 6:23:08 PM EDT: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 4/1/10 6:23:08 PM EDT: [WARN] 4/1/10 6:23:09 PM EDT: Maven Builder: AUTO_BUILD requireFullBuild 4/1/10 6:23:09 PM EDT: [WARN] 4/1/10 6:23:09 PM EDT: [WARN] Some problems were encountered while building the effective model for org.nakedobjects.distribution:claims-dom:jar:4.0.0 4/1/10 6:23:09 PM EDT: [WARN] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.nakedobjects.plugins:xml-persistor:jar -> duplicate declaration of version 1.0.0 @ org.nakedobjects:release:4.0.0 4/1/10 6:23:09 PM EDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-dom:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/dom/pom.xml 4/1/10 6:23:09 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ org.nakedobjects.distribution:claims-dom:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/dom/pom.xml 4/1/10 6:23:09 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-dom:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/dom/pom.xml 4/1/10 6:23:09 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.nakedobjects.distribution:claims-dom:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/dom/pom.xml 4/1/10 6:23:09 PM EDT: [WARN] 4/1/10 6:23:09 PM EDT: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 4/1/10 6:23:09 PM EDT: [WARN] 4/1/10 6:23:09 PM EDT: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 4/1/10 6:23:09 PM EDT: [WARN] 4/1/10 6:23:09 PM EDT: [WARN] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! 4/1/10 6:23:09 PM EDT: [INFO] Copying 5 resources 4/1/10 6:23:09 PM EDT: [INFO] Nothing to compile - all classes are up to date 4/1/10 6:23:09 PM EDT: [WARN] Using platform encoding (MacRoman actually) to copy filtered resources, i.e. build is platform dependent! 4/1/10 6:23:09 PM EDT: [INFO] skip non existing resourceDirectory /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/dom/src/test/resources 4/1/10 6:23:10 PM EDT: Maven Builder: AUTO_BUILD requireFullBuild 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: [WARN] Some problems were encountered while building the effective model for org.nakedobjects.distribution:claims-fixture:jar:4.0.0 4/1/10 6:23:10 PM EDT: [WARN] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.nakedobjects.plugins:xml-persistor:jar -> duplicate declaration of version 1.0.0 @ org.nakedobjects:release:4.0.0 4/1/10 6:23:10 PM EDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-fixture:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/fixture/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ org.nakedobjects.distribution:claims-fixture:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/fixture/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-fixture:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/fixture/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.nakedobjects.distribution:claims-fixture:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/fixture/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: Build errors for claims-fixture; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project claims-fixture: Unable to get dependency information for org.nakedobjects.distribution:claims-service:jar:4.0.0: Failed to process POM for org.nakedobjects.distribution:claims-service: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) org.nakedobjects.distribution:examples:pom:4.0.0 ———- 1 required artifact is missing.

for artifact: org.nakedobjects.distribution:examples:pom:4.0.0

from the specified remote repositories: central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

4/1/10 6:23:10 PM EDT: Maven Builder: AUTO_BUILD requireFullBuild 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: [WARN] Some problems were encountered while building the effective model for org.nakedobjects.distribution:claims-service:jar:4.0.0 4/1/10 6:23:10 PM EDT: [WARN] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.nakedobjects.plugins:xml-persistor:jar -> duplicate declaration of version 1.0.0 @ org.nakedobjects:release:4.0.0 4/1/10 6:23:10 PM EDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-service:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/service/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ org.nakedobjects.distribution:claims-service:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/service/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-service:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/service/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.nakedobjects.distribution:claims-service:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/service/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: Build errors for claims-service; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project claims-service: Unable to get dependency information for org.nakedobjects.distribution:claims-dom:jar:4.0.0: Failed to process POM for org.nakedobjects.distribution:claims-dom: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) org.nakedobjects.distribution:examples:pom:4.0.0 ———- 1 required artifact is missing.

for artifact: org.nakedobjects.distribution:examples:pom:4.0.0

from the specified remote repositories: central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

4/1/10 6:23:10 PM EDT: Maven Builder: AUTO_BUILD requireFullBuild 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: [WARN] Some problems were encountered while building the effective model for org.nakedobjects.distribution:claims-webapp:war:4.0.0 4/1/10 6:23:10 PM EDT: [WARN] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.nakedobjects.plugins:xml-persistor:jar -> duplicate declaration of version 1.0.0 @ org.nakedobjects:release:4.0.0 4/1/10 6:23:10 PM EDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-webapp:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/webapp/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.mortbay.jetty:maven-jetty-plugin @ org.nakedobjects.distribution:claims-webapp:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/webapp/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ org.nakedobjects.distribution:claims-webapp:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/webapp/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-webapp:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/webapp/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.nakedobjects.distribution:claims-webapp:4.0.0, /System/Library/Frameworks/nakedobjects-4.0.0/examples/claims/webapp/pom.xml 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 4/1/10 6:23:10 PM EDT: [WARN] 4/1/10 6:23:10 PM EDT: 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) org.nakedobjects.distribution:examples:pom:4.0.0 ———- 1 required artifact is missing.

for artifact: org.nakedobjects.distribution:examples:pom:4.0.0

from the specified remote repositories: central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

02 Apr 2010, 11:44
Danhaywood-2011-282x282_pragsmall

Dan Haywood (131 posts)

Hi Melvin, yeah, I guess having automatic emails out would be useful.

Anyway, to your problem. What Maven is telling us, rather verbosely, is that it can’t find the artifact org.nakedobjects.distribution:examples:pom:4.0.0 . This POM is, in fact, in the download, in the parent directory to claims.

So your problem might be that you’ve unzipped the nakedobjects-4.0.0-for-maven.tar.gz, and then (fairly reasonably) copied or moved the ‘claims’ directory somewhere else?

As a first pass, I suggest you unzip again and then just import the claims pom.xml directly, in situ.

Alternatively, looking at the pom.xml that’s missing, there’s actually not that much that it does. So what may also work is just changing the parent to:

    <parent>
        <groupId>org.nakedobjects</groupId>
        <artifactId>release</artifactId>
        <version>4.0.0</version>
    </parent>

Let me know how you get on.

Dan

02 Apr 2010, 21:05
Cartoon_pragsmall

Melvin Pérez-Cedano (5 posts)

Hi Dan,

Thanks for replying.

I followed the instructions provided in the book. Anyway, I cleaned everything up, unload nakedobjects… and imported the projects again… but the problem persists. I also tried changing the parent at claims-commandline/pom.xml

no luck either! :-(

03 Apr 2010, 08:32
Danhaywood-2011-282x282_pragsmall

Dan Haywood (131 posts)

Hi Melvin, sorry you’re still struggling. A few things to try:

First, you edited the wrong pom.xml. It’s not claims-commandline’s pom.xml to change, it is its parent, claim/pom.xml. So we would have

claim/pom.xml <- change the parent here commandline/pom.xml <- don't change this one dom/pom.xml fixture/pom.xml service/pom.xml webapp/pom.xml

Second, with or without changing the parent, does it build from the commandline (ie is the problem to do with the IDE, I wonder?) Go to the claims directory and type ‘mvn clean install’; what do you see?

Third (long shot) when working via proxies in hotels I’ve sometimes had my local repo get corrupted. Maybe something similar might have happened? Go to your ~/.m2/repository/org directory, and rename or delete the nakedobjects folder. This will cause NO to be downloaded again.

Fourth, does the Maven archetype work? If so, you could at worst case get that running and then, if you want, copy over the claims app classes - there aren’t that many.

Hopefully one of the above might work :-)

Cheers Dan

03 Apr 2010, 17:36
Cartoon_pragsmall

Melvin Pérez-Cedano (5 posts)

Hey Dan,

After changing the right pom.xml it is working now!

Thanks :-)

Melvin.

03 Apr 2010, 17:36
Cartoon_pragsmall

Melvin Pérez-Cedano (5 posts)

Hey Dan,

After changing the right pom.xml it is working now!

Thanks :-)

Melvin.

04 Apr 2010, 17:41
Danhaywood-2011-282x282_pragsmall

Dan Haywood (131 posts)

Hooray! Glad to help. Hope you enjoy the rest of the book, but do use this forum if you hit any further probs.

Cheers Dan

04 Apr 2010, 21:43
Generic-user-small

John I. Adams (4 posts)

Dan I am getting 4/4/10 3:22:19 PM MDT: Updating index central|http://repo1.maven.org/maven2 4/4/10 3:22:23 PM MDT: Downloading d9d714e11cb097b3ffcec91cccc65d3e : nexus-maven-repository-index.properties 4/4/10 3:22:23 PM MDT: Downloaded Repository[d9d714e11cb097b3ffcec91cccc65d3e|http://repo1.maven.org/maven2/.index]/nexus-maven-repository-index.properties 4/4/10 3:22:35 PM MDT: Updated index for central|http://repo1.maven.org/maven2 4/4/10 3:26:40 PM MDT: Refreshing [/claims-commandline/pom.xml, /claims-dom/pom.xml, /claims-fixture/pom.xml, /claims-service/pom.xml, /claims-webapp/pom.xml, /example-claims/pom.xml] 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:bytecode-cglib:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:runtime:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:metamodel:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects:applib:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.hamcrest:hamcrest-library:jar:1.1:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.hamcrest:hamcrest-core:jar:1.1:compile 4/4/10 3:26:47 PM MDT: Missing artifact commons-collections:commons-collections:jar:3.2.1:compile 4/4/10 3:26:47 PM MDT: Missing artifact log4j:log4j:jar:1.2.14:compile 4/4/10 3:26:47 PM MDT: Missing artifact commons-codec:commons-codec:jar:1.3:compile 4/4/10 3:26:47 PM MDT: Missing artifact commons-cli:commons-cli:jar:1.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact commons-logging:commons-logging:jar:1.0.4:compile 4/4/10 3:26:47 PM MDT: Missing artifact commons-lang:commons-lang:jar:1.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact junit:junit:jar:3.7:compile 4/4/10 3:26:47 PM MDT: Missing artifact asm:asm:jar:3.1:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.objenesis:objenesis:jar:1.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact cglib:cglib-nodep:jar:2.1_3:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:bytecode-javassist:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact javassist:javassist:jar:3.8.0.GA:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:remoting:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:dnd-viewer:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:html-viewer:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:metamodel:test-jar:tests:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:runtime:test-jar:tests:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:webapp:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:http-remoting-client:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact commons-httpclient:commons-httpclient:jar:3.1:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:http-remoting-server:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:headless-embedded:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:headless-viewer:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:headless-applib:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:xml-persistor:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:webserver:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.mortbay.jetty:jetty:jar:6.1.16:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.mortbay.jetty:jetty-util:jar:6.1.16:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.mortbay.jetty:servlet-api:jar:2.5-20081211:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:bytecode-cglib:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:runtime:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:metamodel:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects:applib:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.hamcrest:hamcrest-library:jar:1.1:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.hamcrest:hamcrest-core:jar:1.1:compile 4/4/10 3:26:47 PM MDT: Missing artifact commons-collections:commons-collections:jar:3.2.1:compile 4/4/10 3:26:47 PM MDT: Missing artifact log4j:log4j:jar:1.2.14:compile 4/4/10 3:26:47 PM MDT: Missing artifact commons-codec:commons-codec:jar:1.3:compile 4/4/10 3:26:47 PM MDT: Missing artifact commons-cli:commons-cli:jar:1.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact commons-logging:commons-logging:jar:1.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact commons-lang:commons-lang:jar:1.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact junit:junit:jar:3.7:compile 4/4/10 3:26:47 PM MDT: Missing artifact asm:asm:jar:3.1:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.objenesis:objenesis:jar:1.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact cglib:cglib-nodep:jar:2.1_3:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:bytecode-javassist:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact javassist:javassist:jar:3.8.0.GA:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:remoting:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:html-viewer:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:metamodel:test-jar:tests:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:runtime:test-jar:tests:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.core:webapp:jar:4.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:http-remoting-server:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:headless-embedded:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:headless-viewer:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:headless-applib:jar:1.0.0:compile 4/4/10 3:26:47 PM MDT: Missing artifact org.nakedobjects.plugins:xml-persistor:jar:1.0.0:compile 4/4/10 3:26:50 PM MDT: Generating sources /claims-dom/pom.xml 4/4/10 3:26:53 PM MDT: Adding source folder /claims-dom/src/main/java 4/4/10 3:26:53 PM MDT: Adding resource folder /claims-dom/src/main/resources 4/4/10 3:26:54 PM MDT: Generating sources /claims-service/pom.xml 4/4/10 3:26:54 PM MDT: Adding source folder /claims-service/src/main/java 4/4/10 3:26:54 PM MDT: Generating sources /claims-fixture/pom.xml 4/4/10 3:26:54 PM MDT: Adding source folder /claims-fixture/src/main/java 4/4/10 3:26:54 PM MDT: Generating sources /claims-commandline/pom.xml 4/4/10 3:26:54 PM MDT: Adding resource folder /claims-commandline/src/main/resources 4/4/10 3:26:54 PM MDT: Generating sources /claims-webapp/pom.xml 4/4/10 3:26:54 PM MDT: Adding resource folder /claims-webapp/src/main/resources 4/4/10 3:26:54 PM MDT: Project import completed 17 sec 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:bytecode-cglib:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:runtime:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:metamodel:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects:applib:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.hamcrest:hamcrest-library:jar:1.1:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.hamcrest:hamcrest-core:jar:1.1:compile 4/4/10 3:26:55 PM MDT: Missing artifact commons-collections:commons-collections:jar:3.2.1:compile 4/4/10 3:26:55 PM MDT: Missing artifact log4j:log4j:jar:1.2.14:compile 4/4/10 3:26:55 PM MDT: Missing artifact commons-codec:commons-codec:jar:1.3:compile 4/4/10 3:26:55 PM MDT: Missing artifact commons-cli:commons-cli:jar:1.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact commons-logging:commons-logging:jar:1.0.4:compile 4/4/10 3:26:55 PM MDT: Missing artifact commons-lang:commons-lang:jar:1.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact junit:junit:jar:3.7:compile 4/4/10 3:26:55 PM MDT: Missing artifact asm:asm:jar:3.1:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.objenesis:objenesis:jar:1.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact cglib:cglib-nodep:jar:2.1_3:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:bytecode-javassist:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact javassist:javassist:jar:3.8.0.GA:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:remoting:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:dnd-viewer:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:html-viewer:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:metamodel:test-jar:tests:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:runtime:test-jar:tests:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:webapp:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:http-remoting-client:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact commons-httpclient:commons-httpclient:jar:3.1:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:http-remoting-server:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:headless-embedded:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:headless-viewer:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:headless-applib:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:xml-persistor:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:webserver:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.mortbay.jetty:jetty:jar:6.1.16:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.mortbay.jetty:jetty-util:jar:6.1.16:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.mortbay.jetty:servlet-api:jar:2.5-20081211:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:bytecode-cglib:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:runtime:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:metamodel:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects:applib:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.hamcrest:hamcrest-library:jar:1.1:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.hamcrest:hamcrest-core:jar:1.1:compile 4/4/10 3:26:55 PM MDT: Missing artifact commons-collections:commons-collections:jar:3.2.1:compile 4/4/10 3:26:55 PM MDT: Missing artifact log4j:log4j:jar:1.2.14:compile 4/4/10 3:26:55 PM MDT: Missing artifact commons-codec:commons-codec:jar:1.3:compile 4/4/10 3:26:55 PM MDT: Missing artifact commons-cli:commons-cli:jar:1.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact commons-logging:commons-logging:jar:1.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact commons-lang:commons-lang:jar:1.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact junit:junit:jar:3.7:compile 4/4/10 3:26:55 PM MDT: Missing artifact asm:asm:jar:3.1:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.objenesis:objenesis:jar:1.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact cglib:cglib-nodep:jar:2.1_3:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:bytecode-javassist:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact javassist:javassist:jar:3.8.0.GA:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:remoting:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:html-viewer:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:metamodel:test-jar:tests:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:runtime:test-jar:tests:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.core:webapp:jar:4.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:http-remoting-server:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:headless-embedded:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:headless-viewer:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:headless-applib:jar:1.0.0:compile 4/4/10 3:26:55 PM MDT: Missing artifact org.nakedobjects.plugins:xml-persistor:jar:1.0.0:compile 4/4/10 3:26:58 PM MDT: Maven Builder: FULL_BUILD requireFullBuild 4/4/10 3:26:58 PM MDT: [WARN] 4/4/10 3:26:58 PM MDT: [WARN] Some problems were encountered while building the effective model for org.nakedobjects.distribution:claims-commandline:jar:4.0.0 4/4/10 3:26:58 PM MDT: [WARN] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.nakedobjects.plugins:xml-persistor:jar -> duplicate declaration of version 1.0.0 @ org.nakedobjects:release:4.0.0 4/4/10 3:26:58 PM MDT: [WARN] The expression ${version} is deprecated. Please use ${project.version} instead. @ org.nakedobjects.distribution:claims-commandline:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\commandline\pom.xml 4/4/10 3:26:58 PM MDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-commandline:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\commandline\pom.xml 4/4/10 3:26:58 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ org.nakedobjects.distribution:claims-commandline:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\commandline\pom.xml 4/4/10 3:26:58 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-commandline:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\commandline\pom.xml 4/4/10 3:26:58 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.nakedobjects.distribution:claims-commandline:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\commandline\pom.xml 4/4/10 3:26:58 PM MDT: [WARN] 4/4/10 3:26:58 PM MDT: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 4/4/10 3:26:58 PM MDT: [WARN] 4/4/10 3:26:58 PM MDT: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 4/4/10 3:26:58 PM MDT: [WARN] 4/4/10 3:26:58 PM MDT: Build errors for claims-commandline; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project claims-commandline: 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) org.nakedobjects.distribution:examples:pom:4.0.0 ———- 1 required artifact is missing.

for artifact: org.nakedobjects.distribution:examples:pom:4.0.0

from the specified remote repositories: central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

4/4/10 3:27:00 PM MDT: Maven Builder: FULL_BUILD requireFullBuild 4/4/10 3:27:00 PM MDT: [WARN] 4/4/10 3:27:00 PM MDT: [WARN] Some problems were encountered while building the effective model for org.nakedobjects.distribution:claims-dom:jar:4.0.0 4/4/10 3:27:00 PM MDT: [WARN] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.nakedobjects.plugins:xml-persistor:jar -> duplicate declaration of version 1.0.0 @ org.nakedobjects:release:4.0.0 4/4/10 3:27:00 PM MDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-dom:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\dom\pom.xml 4/4/10 3:27:00 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ org.nakedobjects.distribution:claims-dom:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\dom\pom.xml 4/4/10 3:27:00 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-dom:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\dom\pom.xml 4/4/10 3:27:00 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.nakedobjects.distribution:claims-dom:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\dom\pom.xml 4/4/10 3:27:00 PM MDT: [WARN] 4/4/10 3:27:00 PM MDT: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 4/4/10 3:27:00 PM MDT: [WARN] 4/4/10 3:27:00 PM MDT: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 4/4/10 3:27:00 PM MDT: [WARN] 4/4/10 3:27:08 PM MDT: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 4/4/10 3:27:08 PM MDT: [INFO] Copying 5 resources 4/4/10 3:27:09 PM MDT: [INFO] Nothing to compile - all classes are up to date 4/4/10 3:27:09 PM MDT: [WARN] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! 4/4/10 3:27:09 PM MDT: [INFO] skip non existing resourceDirectory E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\dom\src\test\resources 4/4/10 3:27:09 PM MDT: Maven Builder: FULL_BUILD requireFullBuild 4/4/10 3:27:09 PM MDT: [WARN] 4/4/10 3:27:09 PM MDT: [WARN] Some problems were encountered while building the effective model for org.nakedobjects.distribution:claims-fixture:jar:4.0.0 4/4/10 3:27:09 PM MDT: [WARN] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.nakedobjects.plugins:xml-persistor:jar -> duplicate declaration of version 1.0.0 @ org.nakedobjects:release:4.0.0 4/4/10 3:27:09 PM MDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-fixture:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\fixture\pom.xml 4/4/10 3:27:09 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ org.nakedobjects.distribution:claims-fixture:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\fixture\pom.xml 4/4/10 3:27:09 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-fixture:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\fixture\pom.xml 4/4/10 3:27:09 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.nakedobjects.distribution:claims-fixture:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\fixture\pom.xml 4/4/10 3:27:09 PM MDT: [WARN] 4/4/10 3:27:09 PM MDT: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 4/4/10 3:27:09 PM MDT: [WARN] 4/4/10 3:27:09 PM MDT: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 4/4/10 3:27:09 PM MDT: [WARN] 4/4/10 3:27:09 PM MDT: Build errors for claims-fixture; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project claims-fixture: Unable to get dependency information for org.nakedobjects.distribution:claims-service:jar:4.0.0: Failed to process POM for org.nakedobjects.distribution:claims-service: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) org.nakedobjects.distribution:examples:pom:4.0.0 ———- 1 required artifact is missing.

for artifact: org.nakedobjects.distribution:examples:pom:4.0.0

from the specified remote repositories: central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

4/4/10 3:27:11 PM MDT: Maven Builder: FULL_BUILD requireFullBuild 4/4/10 3:27:11 PM MDT: [WARN] 4/4/10 3:27:11 PM MDT: [WARN] Some problems were encountered while building the effective model for org.nakedobjects.distribution:claims-service:jar:4.0.0 4/4/10 3:27:11 PM MDT: [WARN] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.nakedobjects.plugins:xml-persistor:jar -> duplicate declaration of version 1.0.0 @ org.nakedobjects:release:4.0.0 4/4/10 3:27:11 PM MDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-service:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\service\pom.xml 4/4/10 3:27:11 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ org.nakedobjects.distribution:claims-service:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\service\pom.xml 4/4/10 3:27:11 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-service:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\service\pom.xml 4/4/10 3:27:11 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.nakedobjects.distribution:claims-service:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\service\pom.xml 4/4/10 3:27:11 PM MDT: [WARN] 4/4/10 3:27:11 PM MDT: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 4/4/10 3:27:11 PM MDT: [WARN] 4/4/10 3:27:11 PM MDT: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 4/4/10 3:27:11 PM MDT: [WARN] 4/4/10 3:27:11 PM MDT: Build errors for claims-service; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project claims-service: Unable to get dependency information for org.nakedobjects.distribution:claims-dom:jar:4.0.0: Failed to process POM for org.nakedobjects.distribution:claims-dom: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) org.nakedobjects.distribution:examples:pom:4.0.0 ———- 1 required artifact is missing.

for artifact: org.nakedobjects.distribution:examples:pom:4.0.0

from the specified remote repositories: central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

4/4/10 3:27:11 PM MDT: Maven Builder: FULL_BUILD requireFullBuild 4/4/10 3:27:11 PM MDT: [WARN] 4/4/10 3:27:11 PM MDT: [WARN] Some problems were encountered while building the effective model for org.nakedobjects.distribution:claims-webapp:war:4.0.0 4/4/10 3:27:11 PM MDT: [WARN] ‘dependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)’ must be unique: org.nakedobjects.plugins:xml-persistor:jar -> duplicate declaration of version 1.0.0 @ org.nakedobjects:release:4.0.0 4/4/10 3:27:11 PM MDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-webapp:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\webapp\pom.xml 4/4/10 3:27:11 PM MDT: [WARN] ‘build.plugins.plugin.version’ is missing for org.mortbay.jetty:maven-jetty-plugin @ org.nakedobjects.distribution:claims-webapp:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\webapp\pom.xml 4/4/10 3:27:11 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-project-info-reports-plugin @ org.nakedobjects.distribution:claims-webapp:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\webapp\pom.xml 4/4/10 3:27:11 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-surefire-report-plugin @ org.nakedobjects.distribution:claims-webapp:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\webapp\pom.xml 4/4/10 3:27:11 PM MDT: [WARN] ‘reporting.plugins.plugin.version’ is missing for org.apache.maven.plugins:maven-javadoc-plugin @ org.nakedobjects.distribution:claims-webapp:4.0.0, E:\SOFTWARE FILES\nakedobjects-4.0.0\examples\claims\webapp\pom.xml 4/4/10 3:27:11 PM MDT: [WARN] 4/4/10 3:27:11 PM MDT: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build. 4/4/10 3:27:11 PM MDT: [WARN] 4/4/10 3:27:11 PM MDT: [WARN] For this reason, future Maven versions might no longer support building such malformed projects. 4/4/10 3:27:11 PM MDT: [WARN] 4/4/10 3:27:11 PM MDT: 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) org.nakedobjects.distribution:examples:pom:4.0.0 ———- 1 required artifact is missing.

for artifact: org.nakedobjects.distribution:examples:pom:4.0.0

from the specified remote repositories: central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

which is probably the same as Barbara and Melvin. the same printout as the other two. I followed the instructions on page 10 and 11. The first time importing claim’s example I got a warning message that Maven needs JDK and not JRE. That I need to edit the eclipse.ini file (-vm ….) and the Installed JREs is pointing to the JDK and not the JRE. I exited eclipse. I edited the eclipse.int. Started up eclipse and checked the Installed JREs to ensure it was pointing to the JDK. I went File>Maven>Existing Maven Projects. Browsed to the naked object’s directory. Selected examples and claims. The pom “/pom.xml - org.nakedobjects.distribution:example-claims:4.00:pom”: displayed in the Projects window along with sub-poms, which were all checked. I pressed Finished. Finished would gray out if I deselect the pom. In the eclipse windo Package Explorer, it did not list claims as the project. It listed everything that was under the directory claims with red blocks contain white “X” and the above messages in the Console box. I have removed and reinstalled Java (jdk1.6.0_18), eclipse (SDK 3.5.2 for Windows), m2eclipse, Maven (apache-maven-2.2.1), and Naked Objects (nakedobjects-4.0.0) following the steps on page 10-11 several times. I did check the claims’ pom the parent is the same as you have above. Any suggestions.

John

05 Apr 2010, 08:40
Danhaywood-2011-282x282_pragsmall

Dan Haywood (131 posts)

Hi John,

Lots of info - thanks - so let’s go one step at a time.

The trouble with the zip file is that the three examples within it (claims, expenses, orders) all have org.nakedobjects.distribution:examples as their parent. This means that to load them up successfully using m2eclipse (and I have a sneaking suspicion that maybe m2eclipse has changed its behaviour since I wrote the instructions in the book) means loading the whole hierarchy, from the examples folder.

So, first up, do what Melvin did, which is to edit claims/pom.xml so that its parent is org.nakedobjects:release.

<parent>
  <groupId>org.nakedobjects</groupId>
  <artifactId>release</artifactId>
  <version>4.0.0</version>
</parent>

Then, see if Maven (without Eclipse) builds ok. For that, open up a command prompt in the claims directory, and do a ‘mvn clean install’. If that works then we’ll know that Maven is okay and the problem is with m2eclipse.

If that’s ok, then have a go at doing the import in m2eclipse; File>Import>Existing Maven Projects, browse to the @claims@ directory and hopefully it’ll pick up the hierarchy of poms (claims as the root, with 5 children).

One thing I didn’t mention in the book that might just be relevant: the workspace directory (ie where the .metadata directory must not be the claims directory; its parent (the examples directory) will work, or use somewhere completely different (eg @c:\workspaces\nakedobjects-claims@)

Let us know how you get on.

Dan

07 Apr 2010, 13:32
Generic-user-small

John I. Adams (1 post)

Dan I am sorry I did not get back with you sooner. The password I set up did not work. I requested a reset Monday Night, which pragprog.com was suppose to sent me an e-mail with instructions. I never received it. I sent an e-mail to support@pragprog.com, but have not received a response. I tried to make another account last night, but did not receive the e-mail to activate. I made a third account using my work address. That is how I am able to tell you, I believe I am still having problems. The following is what I did so far:

org.nakedobjects.distribution examples 4.0.0

To

org.nakedobjects release 4.0.0

After running mvn clean install, it did not run correctly, I guess, because I got the following:

BUILD ERROR cannot execute mojo: clean. It requires a project with an existing pom.xml but the build is not using one.

I re-downloaded maven from the following mirror: http://apache.mirrors.tds.net/maven/binaries/apache-maven-2.2.1-bin.zip

Extracted the files. Re-did mvn clean install and got the same BUILD ERROR

Once I get this working, my mentor and I are working together to become compentent, so I can introduce this to the division I work at.

Once again I am sorry for the delay response.

John

08 Apr 2010, 07:12
Danhaywood-2011-282x282_pragsmall

Dan Haywood (131 posts)

Hi John, Which directory did you run @mvn clean install@ from? I think Maven is saying that it cannot find any @pom.xml@ file.

You need to be in the root (@claims@) directory. If you did an @ls@, you’d see

commandline/
dom/
fixture/
pom.xml
service/
webapp/

I’ve uploaded a couple of screenshots to show this: # http://www.flickr.com/photos/danhaywood/4502278548/in/set-72157623678317809/ # http://www.flickr.com/photos/danhaywood/4501646321/in/set-72157623678317809/

Let’s hope when we track this down its something really simple…

Cheers Dan

09 Apr 2010, 03:02
Generic-user-small

John I. Adams (4 posts)

Dan I still not getting it. The following is what I have done with Maven.

I am installing Java, Maven, Eclipse, and Naked Objects on the E: partition.

My user variable definitions are:

        JAVA_HOME     E:\Java\jdk1.6.0_18
      M2_MAVEN       E:\apache-maven-2.2.1

The System variable: PATH %JAVA_HOME\bin;%M2_MAVEN\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;JOGL_HOME\lib;C:\Program Files\Common Files\Roxio Shared\DLLShared;

I open a command window and run mvn –version in the C partition. I get the following error message: ‘mvn’ is not recognized as an internal or external command, operable program or batch file.

I get the same error message when I run mvn clean install in the locations where claims is. I did change the pom.xml prior to the mvn clean install as reflected below.

   <parent>
        <groupId>org.nakedobjects</groupId>
        <artifactId>release</artifactId>
        <version>4.0.0</version>
  </parent>

I have tried the instructions on the maven download page to set up the user and system variables but still having the same problems.

I have download Maven and extracted the files several times but it seems nothing works.

John

09 Apr 2010, 07:14
Danhaywood-2011-282x282_pragsmall

Dan Haywood (131 posts)

John, This looks like a different error again, because last time you did have mvn on the path whereas now Windows isn’t finding it.

From what you’ve posted, it looks like the Windows variables need to be enclosed in % signs. However, that might just be this forum scrambling your message. Still, double check that.

At the end of the day, mvn is just a .bat file living (in your case) in @E:\apache-maven-2.2.1\bin@. I’m not sure I can help out much further - see if your mentor can help you with this bit (you obviously had it working at one stage because of your previous post).

Once you have Windows running mvn properly again, then then go back to my previous post and take it from there…

Dan

12 Apr 2010, 01:03
Generic-user-small

John I. Adams (4 posts)

Dan,

I installed both Maven and Naked Objects on the C: partiton. I left Java and Eclipse on the E: partition (D is DVD). I followed 2000/XP installation instructions on the Apache Maven site. I change the directory to the claims directory. I edited the claims pom.xlm for the changes you suggested. I ran mvn clean install and it built correctly.

Thank you

John

12 Apr 2010, 01:04
Generic-user-small

John I. Adams (4 posts)

Dan,

By the way, I was able to install claims correctly into Eclipse.

Thank You

John

12 Apr 2010, 07:04
Danhaywood-2011-282x282_pragsmall

Dan Haywood (131 posts)

Hooray! I now declare this thread closed! Now you’re past the starting line, ihope you enjoy the ‘meat’ of the book. Cheers, Dan

22 Jul 2010, 20:14
Generic-user-small

László Bővíz (4 posts)

Hi Dan!

It was very good to explain the modifications. Now I can continue with the ‘meat’ after two day break.

Laszlo

  You must be logged in to comment