geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevan Miller <kevan.mil...@gmail.com>
Subject Re: Openejb question
Date Fri, 26 Jan 2007 17:56:55 GMT

On Jan 26, 2007, at 11:45 AM, David Jencks wrote:

>
> On Jan 26, 2007, at 8:03 AM, anita kulshreshtha wrote:
>
>>    This is a fragment from openejb3/server's pom.xml. Could someone
>> please explain how this works?
>
>
> I haven't investigate thoroughly, but I believe that this is an  
> easy way to make sure that if any container module references any  
> server module as a dependency you will get a circular dependency  
> and maven will refuse to build.
>

Anita,
Interesting. If I remove that dependency from the pom in my local  
repo, I can build modules/geronimo-openejb with mvn -o. With the  
dependency, I get the following error:

[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]  
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.openejb:container:pom:3.0-incubating-SNAPSHOT
   Path to dependency:
   	1) org.apache.geronimo.modules:geronimo-openejb:jar:2.0-SNAPSHOT
   	2) org.apache.openejb:openejb-ejbd:jar:3.0-incubating-SNAPSHOT
   	3) org.apache.openejb:container:pom:3.0- 
incubating-20070126.103431-20

----------
1 required artifact is missing.

for artifact:
   org.apache.geronimo.modules:geronimo-openejb:jar:2.0-SNAPSHOT

--kevan

>
>>
>> Thanks
>> Anita
>> ................................................................
>> <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>



Mime
View raw message