You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by Jarek Gawor <jg...@gmail.com> on 2011/09/20 19:14:36 UTC

$GERONIMO_HOME/repository as a Maven repository

Hi,

I'm curious about using $GERONIMO_HOME/repository as remote Maven
repository. We are not very religious (or at least we haven't been in
the past) about publishing snapshots of Geronimo (and other related)
code. So if somebody wants to build their own code against the same
exact versions of the dependencies as their Geronimo binary (snapshot)
uses that can be very difficult. So what about using
$GERONIMO_HOME/repository directly as a Maven repository? Would that
work (if we put the pom files in the repository/ dir? Especially for
snapshot dependencies?

Thanks,
Jarek

Re: $GERONIMO_HOME/repository as a Maven repository

Posted by Rex Wang <rw...@gmail.com>.
2011/9/21 Yi Xiao <xi...@gmail.com>

> It sounds good.
> I have a idea, as the $GERONIMO_HOME/repository is a OSGi bundle
> repository(OBR) now, Whether we can use obr.xml which contains all the meta
> data of dependencies to convert the OBR to maven repository?
>
> No, obr.xml don't  have enough metadate to generate pom files.

-Rex


>
> On Wed, Sep 21, 2011 at 1:14 AM, Jarek Gawor <jg...@gmail.com> wrote:
>
>> Hi,
>>
>> I'm curious about using $GERONIMO_HOME/repository as remote Maven
>> repository. We are not very religious (or at least we haven't been in
>> the past) about publishing snapshots of Geronimo (and other related)
>> code. So if somebody wants to build their own code against the same
>> exact versions of the dependencies as their Geronimo binary (snapshot)
>> uses that can be very difficult. So what about using
>> $GERONIMO_HOME/repository directly as a Maven repository? Would that
>> work (if we put the pom files in the repository/ dir? Especially for
>> snapshot dependencies?
>>
>> Thanks,
>> Jarek
>>
>
>
>
> --
> Best regards!
>
>
>                  John Xiao
>
>


-- 
Lei Wang (Rex)
rwonly AT apache.org

Re: $GERONIMO_HOME/repository as a Maven repository

Posted by Yi Xiao <xi...@gmail.com>.
It sounds good.
I have a idea, as the $GERONIMO_HOME/repository is a OSGi bundle
repository(OBR) now, Whether we can use obr.xml which contains all the meta
data of dependencies to convert the OBR to maven repository?


On Wed, Sep 21, 2011 at 1:14 AM, Jarek Gawor <jg...@gmail.com> wrote:

> Hi,
>
> I'm curious about using $GERONIMO_HOME/repository as remote Maven
> repository. We are not very religious (or at least we haven't been in
> the past) about publishing snapshots of Geronimo (and other related)
> code. So if somebody wants to build their own code against the same
> exact versions of the dependencies as their Geronimo binary (snapshot)
> uses that can be very difficult. So what about using
> $GERONIMO_HOME/repository directly as a Maven repository? Would that
> work (if we put the pom files in the repository/ dir? Especially for
> snapshot dependencies?
>
> Thanks,
> Jarek
>



-- 
Best regards!


               John Xiao

Re: $GERONIMO_HOME/repository as a Maven repository

Posted by Russell E Glaue <rg...@cait.org>.
Hi Jarek,

We have had some conversation about Geronimo repo as a Maven repo in regards to
the plugin farming.

http://www.mail-archive.com/user@geronimo.apache.org/msg12297.html

The discussion was concerning loading up one geronimo server's repository, and
pushing the artifacts out to other geronimo repositories.

We discussed using GeronimoAsMavenServlet which is bundled with Geronimo.

-RG


On 09/20/2011 12:14 PM, Jarek Gawor wrote:
> Hi,
> 
> I'm curious about using $GERONIMO_HOME/repository as remote Maven
> repository. We are not very religious (or at least we haven't been in
> the past) about publishing snapshots of Geronimo (and other related)
> code. So if somebody wants to build their own code against the same
> exact versions of the dependencies as their Geronimo binary (snapshot)
> uses that can be very difficult. So what about using
> $GERONIMO_HOME/repository directly as a Maven repository? Would that
> work (if we put the pom files in the repository/ dir? Especially for
> snapshot dependencies?
> 
> Thanks,
> Jarek

Re: $GERONIMO_HOME/repository as a Maven repository

Posted by Jarek Gawor <jg...@gmail.com>.
Right. The question is whether we should consider also putting the pom
metatype information along with the jar files in the repository and if
that would be useful.

In certain "controlled" environments Maven might be configured with a
specific set of remote repositories so that the artifacts are always
pulled from the right locations (therefore having a good control over
the what versions of the artifacts or snapshots are used).

Jarek

On Tue, Sep 20, 2011 at 1:37 PM, Forrest Xia <fo...@gmail.com> wrote:
> GERONIMO_HOME/repository as a remote repository? I think
> GERONIMO_HOME/repository is lack of maven repo metadata information, doubt
> if it could be a remote repository.
>
> On the other hand, if there are snapshot dependencies in user's and geronimo
> project, maven will always pull something newest from online, that will
> cause the intent of using exact same binaries failed to achieve.
>
> Just a cent for discussion.
>
> Forrest
>
> On Wed, Sep 21, 2011 at 1:14 AM, Jarek Gawor <jg...@gmail.com> wrote:
>>
>> Hi,
>>
>> I'm curious about using $GERONIMO_HOME/repository as remote Maven
>> repository. We are not very religious (or at least we haven't been in
>> the past) about publishing snapshots of Geronimo (and other related)
>> code. So if somebody wants to build their own code against the same
>> exact versions of the dependencies as their Geronimo binary (snapshot)
>> uses that can be very difficult. So what about using
>> $GERONIMO_HOME/repository directly as a Maven repository? Would that
>> work (if we put the pom files in the repository/ dir? Especially for
>> snapshot dependencies?
>>
>> Thanks,
>> Jarek
>
>

Re: $GERONIMO_HOME/repository as a Maven repository

Posted by Forrest Xia <fo...@gmail.com>.
GERONIMO_HOME/repository as a remote repository? I think
GERONIMO_HOME/repository is lack of maven repo metadata information, doubt
if it could be a remote repository.

On the other hand, if there are snapshot dependencies in user's and geronimo
project, maven will always pull something newest from online, that will
cause the intent of using exact same binaries failed to achieve.

Just a cent for discussion.

Forrest

On Wed, Sep 21, 2011 at 1:14 AM, Jarek Gawor <jg...@gmail.com> wrote:

> Hi,
>
> I'm curious about using $GERONIMO_HOME/repository as remote Maven
> repository. We are not very religious (or at least we haven't been in
> the past) about publishing snapshots of Geronimo (and other related)
> code. So if somebody wants to build their own code against the same
> exact versions of the dependencies as their Geronimo binary (snapshot)
> uses that can be very difficult. So what about using
> $GERONIMO_HOME/repository directly as a Maven repository? Would that
> work (if we put the pom files in the repository/ dir? Especially for
> snapshot dependencies?
>
> Thanks,
> Jarek
>

Re: $GERONIMO_HOME/repository as a Maven repository

Posted by Rex Wang <rw...@gmail.com>.
If user wants to use the snapshot artifacts in geronimo repo, could just
copy them to override the artifacts in his local maven repo work? If this is
not enough, I think set a hudson server in his local machine to build
geronimo every night to get the latest maven repo is the right thing to do.
Setting geronimo repo as the maven repo would contaminate the our artifacts
when user build his project, which might bring some difficulties to identify
the causes when help user analysis his problems. We definitely hope user
always has a "clean" server when he gets problems.

Anyway, as Forrest said, once there is a newer snapshot in public repo,
maven would first try download the latest one, unless user uses the -o
option.

-Rex

2011/9/21 Jarek Gawor <jg...@gmail.com>

> Hi,
>
> I'm curious about using $GERONIMO_HOME/repository as remote Maven
> repository. We are not very religious (or at least we haven't been in
> the past) about publishing snapshots of Geronimo (and other related)
> code. So if somebody wants to build their own code against the same
> exact versions of the dependencies as their Geronimo binary (snapshot)
> uses that can be very difficult. So what about using
> $GERONIMO_HOME/repository directly as a Maven repository? Would that
> work (if we put the pom files in the repository/ dir? Especially for
> snapshot dependencies?
>
> Thanks,
> Jarek
>



-- 
Lei Wang (Rex)
rwonly AT apache.org