You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Dain Sundstrom <da...@iq80.com> on 2006/02/07 06:00:05 UTC

Maven 2 Repository for Geronimo

I have added a repository that can read a repo using the maven 2  
layout.  This required a few changes to the Repository interface, so  
please take a look at it.  The code is the configId branch that David  
Jencks and I are working on for the quick 1.1 release (old 1.0.1).

Specifically, Aaron can you take a look at this?  It will impact the  
console code and I don't want to create a mess for you to deal with.

http://svn.apache.org/viewcvs.cgi/geronimo/branches/configid/modules/ 
system/src/java/org/apache/geronimo/system/repository/ 
Maven2Repository.java

Thanks,

-dain

Re: Maven 2 Repository for Geronimo

Posted by Joe Bohn <jo...@earthlink.net>.
I took a quick look.  How closely do you think you will be able to 
support the current ListableRepository, WriteableRepository, and 
Repository interfaces?   The console currently makes use of both forms 
of the copyToRepository method (inputstream and file) ... but I suspect 
we could conform to just the inputstream.  We also make use of listURIs 
(which I assume gets replaced with just list?).

Does the URI form of the artifact change much?

Joe

Dain Sundstrom wrote:
> I have added a repository that can read a repo using the maven 2  
> layout.  This required a few changes to the Repository interface, so  
> please take a look at it.  The code is the configId branch that David  
> Jencks and I are working on for the quick 1.1 release (old 1.0.1).
> 
> Specifically, Aaron can you take a look at this?  It will impact the  
> console code and I don't want to create a mess for you to deal with.
> 
> http://svn.apache.org/viewcvs.cgi/geronimo/branches/configid/modules/ 
> system/src/java/org/apache/geronimo/system/repository/ 
> Maven2Repository.java
> 
> Thanks,
> 
> -dain
> 
> 

-- 
Joe Bohn
joe.bohn at earthlink.net

"He is no fool who gives what he cannot keep, to gain what he cannot 
lose."   -- Jim Elliot

Re: Maven 2 Repository for Geronimo

Posted by Jason Dillon <ja...@planet57.com>.
> At the very least, I'd like the interface to be the same.

So far I have not found any reason to believe that use of the  
org.apache.geronimo.kernel.repository.* interfaces will be a  
problem.  We just write a facade that impls our repo interfaces and  
then delegates to the Maven2 API.

Except for WriteableRepository that is... not sure how that relates  
directly.  It should be possible, but since Maven2 could really bet a  
set of repositories it is unclear how to properly implement this  
interface.  Could be that writable methods always operate on the  
local repository cache.


> Can you find and post the maven2 repository interface to this list?

As soon as I figure out which interfaces are relevant.  There is no  
single interface, but stuff from org.apache.maven.artifact.*


> My feeling on this is if it works it works.  I don't think we  
> should turn on downloading by default anytime soon, but I think we  
> should make it available as an options so people can begin to play  
> with it.

I don't think it should ever be on by default.  But if it works, it  
would be nice to see a configuration portlet to allow repositories to  
be setup and then enabled/disabled.  Then we could ship with a remote  
repository configured, but diabled (so no remote, unless someone  
enables it).

Anyways, too soon for that... first thing is to get it working.

I have to work on some of this XA Oracle stuff first, but after that  
I will get an example put together and publish it to the group.

--jason

Re: Maven 2 Repository for Geronimo

Posted by Dain Sundstrom <da...@iq80.com>.
At the very least, I'd like the interface to be the same.  Can you  
find and post the maven2 repository interface to this list?

My feeling on this is if it works it works.  I don't think we should  
turn on downloading by default anytime soon, but I think we should  
make it available as an options so people can begin to play with it.

-dain

On Feb 8, 2006, at 3:17 AM, Jason Dillon wrote:

> Okay... though I think it should be relatively simple...
>
> I had been chatting with some Atlassian developers about  
> potentially using the maven2 repo for plugin discover/download for  
> confluence and jira.
>
> From chatting with some maven2 peeps looks like it might be  
> relatively simple to get something basic functional.  I think it  
> would be positive direction for Geronimo... as if it works, then G  
> would be able to pull artifacts from multiple local and remote  
> repositories.
>
> If I can get it to work, and objections to potentially including this?
>
> --jason
>
>
> On Feb 7, 2006, at 12:27 PM, Dain Sundstrom wrote:
>
>> Cuz, I think that is will be too much work to get in and tested.   
>> We're trying to get this done in the next few days, so it is just  
>> easier to write one that can read the m2 layout.
>>
>> -dain
>>
>> On Feb 7, 2006, at 1:39 PM, Jason Dillon wrote:
>>
>>> Why not reuse the Maven2 code to handle repository access/ 
>>> aggregation/etc ?
>>>
>>> --jason
>>>
>>>
>>> On Feb 6, 2006, at 9:00 PM, Dain Sundstrom wrote:
>>>
>>>> I have added a repository that can read a repo using the maven 2  
>>>> layout.  This required a few changes to the Repository  
>>>> interface, so please take a look at it.  The code is the  
>>>> configId branch that David Jencks and I are working on for the  
>>>> quick 1.1 release (old 1.0.1).
>>>>
>>>> Specifically, Aaron can you take a look at this?  It will impact  
>>>> the console code and I don't want to create a mess for you to  
>>>> deal with.
>>>>
>>>> http://svn.apache.org/viewcvs.cgi/geronimo/branches/configid/ 
>>>> modules/system/src/java/org/apache/geronimo/system/repository/ 
>>>> Maven2Repository.java
>>>>
>>>> Thanks,
>>>>
>>>> -dain
>>


Re: Maven 2 Repository for Geronimo

Posted by Jason Dillon <ja...@planet57.com>.
Okay... though I think it should be relatively simple...

I had been chatting with some Atlassian developers about potentially  
using the maven2 repo for plugin discover/download for confluence and  
jira.

 From chatting with some maven2 peeps looks like it might be  
relatively simple to get something basic functional.  I think it  
would be positive direction for Geronimo... as if it works, then G  
would be able to pull artifacts from multiple local and remote  
repositories.

If I can get it to work, and objections to potentially including this?

--jason


On Feb 7, 2006, at 12:27 PM, Dain Sundstrom wrote:

> Cuz, I think that is will be too much work to get in and tested.   
> We're trying to get this done in the next few days, so it is just  
> easier to write one that can read the m2 layout.
>
> -dain
>
> On Feb 7, 2006, at 1:39 PM, Jason Dillon wrote:
>
>> Why not reuse the Maven2 code to handle repository access/ 
>> aggregation/etc ?
>>
>> --jason
>>
>>
>> On Feb 6, 2006, at 9:00 PM, Dain Sundstrom wrote:
>>
>>> I have added a repository that can read a repo using the maven 2  
>>> layout.  This required a few changes to the Repository interface,  
>>> so please take a look at it.  The code is the configId branch  
>>> that David Jencks and I are working on for the quick 1.1 release  
>>> (old 1.0.1).
>>>
>>> Specifically, Aaron can you take a look at this?  It will impact  
>>> the console code and I don't want to create a mess for you to  
>>> deal with.
>>>
>>> http://svn.apache.org/viewcvs.cgi/geronimo/branches/configid/ 
>>> modules/system/src/java/org/apache/geronimo/system/repository/ 
>>> Maven2Repository.java
>>>
>>> Thanks,
>>>
>>> -dain
>


Re: Maven 2 Repository for Geronimo

Posted by Dain Sundstrom <da...@iq80.com>.
Cuz, I think that is will be too much work to get in and tested.   
We're trying to get this done in the next few days, so it is just  
easier to write one that can read the m2 layout.

-dain

On Feb 7, 2006, at 1:39 PM, Jason Dillon wrote:

> Why not reuse the Maven2 code to handle repository access/ 
> aggregation/etc ?
>
> --jason
>
>
> On Feb 6, 2006, at 9:00 PM, Dain Sundstrom wrote:
>
>> I have added a repository that can read a repo using the maven 2  
>> layout.  This required a few changes to the Repository interface,  
>> so please take a look at it.  The code is the configId branch that  
>> David Jencks and I are working on for the quick 1.1 release (old  
>> 1.0.1).
>>
>> Specifically, Aaron can you take a look at this?  It will impact  
>> the console code and I don't want to create a mess for you to deal  
>> with.
>>
>> http://svn.apache.org/viewcvs.cgi/geronimo/branches/configid/ 
>> modules/system/src/java/org/apache/geronimo/system/repository/ 
>> Maven2Repository.java
>>
>> Thanks,
>>
>> -dain


Re: Maven 2 Repository for Geronimo

Posted by Jason Dillon <ja...@planet57.com>.
Why not reuse the Maven2 code to handle repository access/aggregation/ 
etc ?

--jason


On Feb 6, 2006, at 9:00 PM, Dain Sundstrom wrote:

> I have added a repository that can read a repo using the maven 2  
> layout.  This required a few changes to the Repository interface,  
> so please take a look at it.  The code is the configId branch that  
> David Jencks and I are working on for the quick 1.1 release (old  
> 1.0.1).
>
> Specifically, Aaron can you take a look at this?  It will impact  
> the console code and I don't want to create a mess for you to deal  
> with.
>
> http://svn.apache.org/viewcvs.cgi/geronimo/branches/configid/ 
> modules/system/src/java/org/apache/geronimo/system/repository/ 
> Maven2Repository.java
>
> Thanks,
>
> -dain