Thanks Joe! The problem was the use of maven v2.0.8.

I am a bit surprised that the maven-enforcer-plugin in the top level pom did not picked this up as it is set to check for maven version 2.0.9 or higher. It seems like I hit this problem before the enforce goal in the validate phase has been executed ;(.

regards
  peter petersson

Joe Bohn wrote:

Peter,

The samples are a little in flux at the moment but they should build. I just started with a fresh checkout and clean repo and they built for me.

What version of maven are you using? It is strange that the versions are not specified in /repository/pom.xml ... but I don't hit the same errors (perhaps because there is only one version available for each from the referenced repository). BTW, you no longer need to pull the repository from geronimo server 2.1.2 since the tag is referenced in the /repository/pom.xml.

Please be sure that you have the latest source (svn up) and try mvn clean then mvn from the top level. If you still get the error we'll have to dig a little deeper.

Joe



Peter Petersson wrote:
Hi

I checked out https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1 and
https://svn.apache.org/repos/asf/geronimo/server/tags/2.1.2/repository
After installing the G "private" artifacts i run mvn install in the samples top level directory but got a maven validation error. It seem like there are a missing dependencyManagement section somewhere along the way originating from the repository pom (see below).

Am I missing something or are the samples in a flux at the moment ?

.../gsamples-2.1$ mvn install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.geronimo.samples:repository
POM Location: /usr/local/proj/gsamples-2.1/repository/pom.xml
Validation Messages:

[0] 'dependencies.dependency.version' is missing for org.apache.tomcat:catalina [1] 'dependencies.dependency.version' is missing for org.apache.tomcat:jasper [2] 'dependencies.dependency.version' is missing for com.sun.xml.ws:jaxws-tools [3] 'dependencies.dependency.version' is missing for com.sun.xml.ws:jaxws-rt [4] 'dependencies.dependency.version' is missing for org.apache.ant:ant-launcher


Reason: Failed to validate POM for project org.apache.geronimo.samples:repository at /usr/local/proj/gsamples-2.1/repository/pom.xml
  :
  :

regards
  peter petersson



Reply via email to