I've opened http://jira.codehaus.org/browse/MNG-2796 to describe my understanding of what's going on.

There are at least 7 other maven issues that describe similar problems. I'd appreciate it if everyone affected by this problem could vote on this issue and maybe add comments.

Now I'll work on updating the openejb poms.

thanks
david jencks

On Jan 26, 2007, at 2:54 PM, David Jencks wrote:

Anita figured out that replacing ${pom.version} with 3.0-incubating- SNAPSHOT in openejb server pom fixes this problem. It turns out that jason dillon previously ran into this problem in geronimo and replaced all ${pom.version} in our poms with our own defined variable ${version}.

I'm investigating maven jira to make this problem better known and will update the openejb poms with the same workaround (${version} not ${pom.version})

thanks!

david jencks

On Jan 26, 2007, at 11:50 AM, Kevan Miller wrote:


Here's what seems to be the relevant section from the -X trace:

[DEBUG] Artifact not found - using stub model: System is offline.

  org.apache.openejb:container:pom:3.0-incubating-20070126.103431-20


[DEBUG] Using defaults for missing POM org.apache.openejb:container:pom:3.0-incubating-SNAPSHOT:compile [DEBUG] org.apache.openejb:container:pom:3.0- incubating-20070126.103431-20:compile (selected for compile) [DEBUG] org.apache.geronimo.specs:geronimo-ejb_3.0_spec:jar: 1.0-M1:compile (removed - nearer found: 1.0) [DEBUG] org.apache.openejb:container:pom:3.0- incubating-20070126.103431-20:compile (selected for compile)


And here's the contents of the relevant directories in my repo:


/Users/kevan/.m2/repository/org/apache/openejb/container/3.0- incubating-SNAPSHOT:
  total used in directory 80 available 3125712
-rw-r--r-- 1 kevan kevan 371 Jan 26 14:07 maven-metadata- apache-snapshots.xml -rw-r--r-- 1 kevan kevan 405 Jan 26 14:07 maven-metadata- apache.snapshots.xml -rw-r--r-- 1 kevan kevan 182 Jan 26 14:07 maven-metadata- codehaus-snapshots.xml
  drwxr-xr-x   12 kevan  kevan   408 Jan 26 12:36 .
-rw-r--r-- 1 kevan kevan 1521 Jan 26 12:36 container-3.0- incubating-20070126.103431-21.pom -rw-r--r-- 1 kevan kevan 1521 Jan 26 12:35 container-3.0- incubating-SNAPSHOT.pom
  drwxr-xr-x    3 kevan  kevan   102 Jan 26 12:15 ..
-rw-r--r-- 1 kevan kevan 40 Jan 26 12:15 container-3.0- incubating-20070126.103431-21.pom.sha1 -rw-r--r-- 1 kevan kevan 1557 Jan 26 12:15 container-3.0- incubating-20070126.103431-21.pom~ -rw-r--r-- 1 kevan kevan 1557 Jan 26 12:15 container-3.0- incubating-SNAPSHOT.pom~ -rw-r--r-- 1 kevan kevan 40 Jan 26 12:15 maven-metadata- apache-snapshots.xml.sha1 -rw-r--r-- 1 kevan kevan 40 Jan 26 12:15 maven-metadata- apache.snapshots.xml.sha1

/Users/kevan/.m2/repository/org/apache/openejb/server/3.0- incubating-SNAPSHOT:
  total used in directory 80 available 3127440
-rw-r--r-- 1 kevan kevan 368 Jan 26 12:38 maven-metadata- apache-snapshots.xml -rw-r--r-- 1 kevan kevan 402 Jan 26 12:38 maven-metadata- apache.snapshots.xml -rw-r--r-- 1 kevan kevan 179 Jan 26 12:38 maven-metadata- codehaus-snapshots.xml
  drwxr-xr-x   12 kevan  kevan   408 Jan 26 12:30 .
-rw-r--r-- 1 kevan kevan 2281 Jan 26 12:30 server-3.0- incubating-SNAPSHOT.pom -rw-r--r-- 1 kevan kevan 2281 Jan 26 12:29 server-3.0- incubating-20070126.103431-20.pom -rw-r--r-- 1 kevan kevan 40 Jan 26 12:15 maven-metadata- apache.snapshots.xml.sha1 -rw-r--r-- 1 kevan kevan 40 Jan 26 12:15 server-3.0- incubating-20070126.103431-20.pom.sha1 -rw-r--r-- 1 kevan kevan 2276 Jan 26 12:15 server-3.0- incubating-20070126.103431-20.pom~ -rw-r--r-- 1 kevan kevan 2276 Jan 26 12:15 server-3.0- incubating-SNAPSHOT.pom~
  drwxr-xr-x    3 kevan  kevan   102 Jan 26 12:15 ..
-rw-r--r-- 1 kevan kevan 40 Jan 26 12:15 maven-metadata- apache-snapshots.xml.sha1

Ignore the *~ backup filesgenerated emacs files...

Changing the dependencies in the SNAPSHOT and dated pom to the following fixes the problem. I can only guess that Geronimo is closing some loop that doesn't exist for pure OpenEJB...

  <dependencies>
    <!--
       This dependency is here to ensure that absolutely nothing
       under the container module section can be dependent on any
       server modules.
    -->
<!--     <dependency> -->
<!--       <groupId>org.apache.openejb</groupId> -->
<!--       <artifactId>container</artifactId> -->
<!--       <version>${pom.version}</version> -->
<!--       <type>pom</type> -->
<!--       <scope>compile</scope> -->
<!--     </dependency> -->
  </dependencies>

--kevan





Reply via email to