You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shale.apache.org by Matthias Wessendorf <ma...@apache.org> on 2006/08/29 00:46:24 UTC

Bug in Shale 103 parent pom

Hi,

the parent pom 103 defines the maven-snapshot-repository.
that should not be in there, maybe only inside "distributionManagement" section.

-Matthias

-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Bug in Shale 103 parent pom

Posted by Wendy Smoak <ws...@gmail.com>.
On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:

> I think it should not be in there,
> because it's a snapshot repo,
> not a regular repo.
>
> some users try to avoid dependency against a SNAPSHOt

Then they should not declare dependencies on -SNAPSHOT versions.

The presence of a repository that contains snapshots does not mean
that snapshot versions will be used.

The alternative would be for each of us to put that repository in
settings.xml, and remove it from the shale-parent pom.  It would still
be in Maven's list of repos, but without releases enabled, as we would
be inheriting it from the Apache parent pom.

-- 
Wendy

Re: Bug in Shale 103 parent pom

Posted by Matthias Wessendorf <ma...@apache.org>.
I think it should not be in there,
because it's a snapshot repo,
not a regular repo.

some users try to avoid dependency against a SNAPSHOt

On 8/28/06, Wendy Smoak <ws...@gmail.com> wrote:
> On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
>
> > the parent pom 103 defines the maven-snapshot-repository.
> > that should not be in there, maybe only inside "distributionManagement" section.
>
> It needs to be there so we can re-define it with
>    <releases><enabled>true</enabled></releases>
> which is different from what we inherit from the Apache parent pom.
> That's because we deploy non-snapshot versions to the snapshot repo.
>
> Why do you think it should not be there?
>
> (We do need to change the URL to repo/m2-snapshot-repository, though.)
>
> --
> Wendy
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Bug in Shale 103 parent pom

Posted by Wendy Smoak <ws...@gmail.com>.
On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:

> the parent pom 103 defines the maven-snapshot-repository.
> that should not be in there, maybe only inside "distributionManagement" section.

It needs to be there so we can re-define it with
   <releases><enabled>true</enabled></releases>
which is different from what we inherit from the Apache parent pom.
That's because we deploy non-snapshot versions to the snapshot repo.

Why do you think it should not be there?

(We do need to change the URL to repo/m2-snapshot-repository, though.)

-- 
Wendy

Re: Bug in Shale 103 parent pom

Posted by Matthias Wessendorf <ma...@apache.org>.
http://people.apache.org/maven-snapshot-repository

does not contain the org:apache:apache:2


On 8/28/06, Wendy Smoak <ws...@gmail.com> wrote:
> On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
> > I get this error
> > (we have no! snapshot repo defined, and won't do that)
>
> Who is 'we' in this case... Oracle?
>
> > Reason: Cannot find parent: org.apache:apache for project:
> > org.apache.shale:shale-master:pom:1
>
> It looks like you're using a mirror of central, and it does not
> contain the org.apache:apache:2 pom.  It's there on ibiblio:
>
>    http://www.ibiblio.org/maven2/org/apache/apache/2/
>
> --
> Wendy
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Bug in Shale 103 parent pom

Posted by Matthias Wessendorf <ma...@apache.org>.
Yeah,

I think I move the question over.
FYI, I am behind a proxy and using a mirror (yes it is there).

-Matthias

On 8/30/06, Wendy Smoak <ws...@gmail.com> wrote:
> On 8/30/06, Matthias Wessendorf <ma...@apache.org> wrote:
>
> > what's going wrong is that b/c in parent there is the link to m2-snap
> > and it tries to look apache2-pom up in m2-snap and the listed java.net repo.
> >
> > I have other repositories (like ibiblio) in my settings.xml.
>
> Ibiblio is the default central repository, you shouldn't need to add
> it to settings.xml
>
> > I am wondering, why it looks for apache2-pom only inside these two repos.
>
> Restated, I'm wondering why it does *not* check the central repo,
> where it would find that pom.  Are you using a mirror of central? If
> so, are you sure it's available?
>
> If 'central' is getting blacklisted earlier in the build because Maven
> can't connect, that might be the reason it never gets checked for the
> Apache pom.
>
> This sounds like a question for the Maven users list.  I don't think
> the Shale pom is doing anything wrong, (except increasing the load on
> people.apache.org.)
>
> --
> Wendy
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Bug in Shale 103 parent pom

Posted by Wendy Smoak <ws...@gmail.com>.
On 8/30/06, Matthias Wessendorf <ma...@apache.org> wrote:

> what's going wrong is that b/c in parent there is the link to m2-snap
> and it tries to look apache2-pom up in m2-snap and the listed java.net repo.
>
> I have other repositories (like ibiblio) in my settings.xml.

Ibiblio is the default central repository, you shouldn't need to add
it to settings.xml

> I am wondering, why it looks for apache2-pom only inside these two repos.

Restated, I'm wondering why it does *not* check the central repo,
where it would find that pom.  Are you using a mirror of central? If
so, are you sure it's available?

If 'central' is getting blacklisted earlier in the build because Maven
can't connect, that might be the reason it never gets checked for the
Apache pom.

This sounds like a question for the Maven users list.  I don't think
the Shale pom is doing anything wrong, (except increasing the load on
people.apache.org.)

-- 
Wendy

Re: Bug in Shale 103 parent pom

Posted by Matthias Wessendorf <ma...@apache.org>.
what's going wrong is that b/c in parent there is the link to m2-snap
and it tries to look apache2-pom up in m2-snap and the listed java.net repo.

I have other repositories (like ibiblio) in my settings.xml.

I am wondering, why it looks for apache2-pom only inside these two repos.

thanks

On 8/30/06, Wendy Smoak <ws...@gmail.com> wrote:
> > On 8/30/06, Wendy Smoak <ws...@gmail.com> wrote:
> > > Are we talking about building Shale itself, or building your own
> > > separate webapp that uses Shale?
>
> On 8/30/06, Matthias Wessendorf <ma...@apache.org> wrote:
> > later
>
> Okay, then to build your own webapp that depends on Shale, you do not
> need Apache's m2 snapshot repo in your project's pom, (or your
> settings.xml) because as you pointed out 1.0.3 is already on ibiblio.
>
> What is going wrong?
>
> --
> Wendy
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Bug in Shale 103 parent pom

Posted by Wendy Smoak <ws...@gmail.com>.
> On 8/30/06, Wendy Smoak <ws...@gmail.com> wrote:
> > Are we talking about building Shale itself, or building your own
> > separate webapp that uses Shale?

On 8/30/06, Matthias Wessendorf <ma...@apache.org> wrote:
> later

Okay, then to build your own webapp that depends on Shale, you do not
need Apache's m2 snapshot repo in your project's pom, (or your
settings.xml) because as you pointed out 1.0.3 is already on ibiblio.

What is going wrong?

-- 
Wendy

Re: Bug in Shale 103 parent pom

Posted by Matthias Wessendorf <ma...@apache.org>.
later

On 8/30/06, Wendy Smoak <ws...@gmail.com> wrote:
> On 8/30/06, Matthias Wessendorf <ma...@apache.org> wrote:
>
> > Ok, so for Shale 103 we still need a "snapshot repository", as far as
> > I got your mail.
> ...
>
> Are we talking about building Shale itself, or building your own
> separate webapp that uses Shale?
>
> --
> Wendy
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Bug in Shale 103 parent pom

Posted by Wendy Smoak <ws...@gmail.com>.
On 8/30/06, Matthias Wessendorf <ma...@apache.org> wrote:

> Ok, so for Shale 103 we still need a "snapshot repository", as far as
> I got your mail.
...

Are we talking about building Shale itself, or building your own
separate webapp that uses Shale?

-- 
Wendy

Re: Bug in Shale 103 parent pom

Posted by Matthias Wessendorf <ma...@apache.org>.
Ok, so for Shale 103 we still need a "snapshot repository", as far as
I got your mail.

But I am wondering b/c that stuff is already on ibiblio

http://www.ibiblio.org/maven2/org/apache/shale/shale-parent/1.0.3/

maybe I still don't get the point ...

sorry if I am confusing you all, but I am confused

On 8/28/06, Craig McClanahan <cr...@apache.org> wrote:
> On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
> >
> > yea,
> >
> > my thing is that 103 is not more a snapshot, so why should I add a
> > snapshot repo?
> > Depending on a snapshot can be *dangerous*. Somethings you know that
> > something changes, sometimes not.
> >
> > Craig was so nice to tell us that he changes stuff in
> > shale-test-103-SNAP. But not everybody is providing such a great
> > service ;)
>
>
> Matthias,
>
> Currently, we do not post just snapshot releases to this repository ... we
> publish the real ones too (1.0.3 in this case).  This has to do with a
> conundrum in our release process ... how can we vote on bits unless they're
> deployed to some repository to evaluate?  And how can we post those bits to
> a real production repository without a vote?
>
> The workaround we used here is to post the 1.0.3 artifacts themselves to the
> "m2-snapshot-repository" and then hold the vote.  After the vote (if
> successful) the artifacts can be moved to the rsync repository because they
> are in fact not snapshots.  The latter part of that process is currently
> pretty tedious and error prone, but it worked.  (Wendy followed a very
> similar approach on Struts 1.3.5 ... I was basically following in her
> learning path.)
>
> Moral of the story -- a snapshot is a treated as a snapshot based on its
> version number, not on what repository you got it from.  Likewise for real
> releases.  And that's a Good Thing (tm :-).
>
> Craig
>
>
> On 8/28/06, Paul Spencer <pa...@apache.org> wrote:
> > > Matthias,
> > > As general practice, I will define a snapshot repo in pom.xml that
> > contains the snapshot dependency.
> > >
> > > See
> > http://wiki.apache.org/myfaces/Using_MyFaces_in_a_Project_built_with_Maven
> > >
> > > Paul Spencer
> > >
> > >
> > > Matthias Wessendorf wrote:
> > > > we is my settings.xml
> > > > ;)
> > > >
> > > > looks like my mirror is down
> > > >
> > > > On 8/28/06, Wendy Smoak <ws...@gmail.com> wrote:
> > > >
> > > >> On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
> > > >> > I get this error
> > > >> > (we have no! snapshot repo defined, and won't do that)
> > > >>
> > > >> Who is 'we' in this case... Oracle?
> > > >>
> > > >> > Reason: Cannot find parent: org.apache:apache for project:
> > > >> > org.apache.shale:shale-master:pom:1
> > > >>
> > > >> It looks like you're using a mirror of central, and it does not
> > > >> contain the org.apache:apache:2 pom.  It's there on ibiblio:
> > > >>
> > > >>    http://www.ibiblio.org/maven2/org/apache/apache/2/
> > > >>
> > > >> --
> > > >> Wendy
> > > >>
> > > >
> > > >
> > >
> > >
> >
> >
> > --
> > Matthias Wessendorf
> >
> > further stuff:
> > blog: http://jroller.com/page/mwessendorf
> > mail: mwessendorf-at-gmail-dot-com
> >
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Bug in Shale 103 parent pom

Posted by Craig McClanahan <cr...@apache.org>.
On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
>
> yea,
>
> my thing is that 103 is not more a snapshot, so why should I add a
> snapshot repo?
> Depending on a snapshot can be *dangerous*. Somethings you know that
> something changes, sometimes not.
>
> Craig was so nice to tell us that he changes stuff in
> shale-test-103-SNAP. But not everybody is providing such a great
> service ;)


Matthias,

Currently, we do not post just snapshot releases to this repository ... we
publish the real ones too (1.0.3 in this case).  This has to do with a
conundrum in our release process ... how can we vote on bits unless they're
deployed to some repository to evaluate?  And how can we post those bits to
a real production repository without a vote?

The workaround we used here is to post the 1.0.3 artifacts themselves to the
"m2-snapshot-repository" and then hold the vote.  After the vote (if
successful) the artifacts can be moved to the rsync repository because they
are in fact not snapshots.  The latter part of that process is currently
pretty tedious and error prone, but it worked.  (Wendy followed a very
similar approach on Struts 1.3.5 ... I was basically following in her
learning path.)

Moral of the story -- a snapshot is a treated as a snapshot based on its
version number, not on what repository you got it from.  Likewise for real
releases.  And that's a Good Thing (tm :-).

Craig


On 8/28/06, Paul Spencer <pa...@apache.org> wrote:
> > Matthias,
> > As general practice, I will define a snapshot repo in pom.xml that
> contains the snapshot dependency.
> >
> > See
> http://wiki.apache.org/myfaces/Using_MyFaces_in_a_Project_built_with_Maven
> >
> > Paul Spencer
> >
> >
> > Matthias Wessendorf wrote:
> > > we is my settings.xml
> > > ;)
> > >
> > > looks like my mirror is down
> > >
> > > On 8/28/06, Wendy Smoak <ws...@gmail.com> wrote:
> > >
> > >> On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
> > >> > I get this error
> > >> > (we have no! snapshot repo defined, and won't do that)
> > >>
> > >> Who is 'we' in this case... Oracle?
> > >>
> > >> > Reason: Cannot find parent: org.apache:apache for project:
> > >> > org.apache.shale:shale-master:pom:1
> > >>
> > >> It looks like you're using a mirror of central, and it does not
> > >> contain the org.apache:apache:2 pom.  It's there on ibiblio:
> > >>
> > >>    http://www.ibiblio.org/maven2/org/apache/apache/2/
> > >>
> > >> --
> > >> Wendy
> > >>
> > >
> > >
> >
> >
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>

Re: Bug in Shale 103 parent pom

Posted by Wendy Smoak <ws...@gmail.com>.
On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:

> my thing is that 103 is not more a snapshot, so why should I add a
> snapshot repo?
> Depending on a snapshot can be *dangerous*. Somethings you know that
> something changes, sometimes not.
>
> Craig was so nice to tell us that he changes stuff in
> shale-test-103-SNAP. But not everybody is providing such a great
> service ;)

I agree, it's not ideal to have that snapshot repo re-defined to
enable releases.

I have some thoughts about using a series of 'temporary' staging
repositories for future releases, and will write more on it soon.

-- 
Wendy

Re: Bug in Shale 103 parent pom

Posted by Matthias Wessendorf <ma...@apache.org>.
yea,

my thing is that 103 is not more a snapshot, so why should I add a
snapshot repo?
Depending on a snapshot can be *dangerous*. Somethings you know that
something changes, sometimes not.

Craig was so nice to tell us that he changes stuff in
shale-test-103-SNAP. But not everybody is providing such a great
service ;)



On 8/28/06, Paul Spencer <pa...@apache.org> wrote:
> Matthias,
> As general practice, I will define a snapshot repo in pom.xml that contains the snapshot dependency.
>
> See http://wiki.apache.org/myfaces/Using_MyFaces_in_a_Project_built_with_Maven
>
> Paul Spencer
>
>
> Matthias Wessendorf wrote:
> > we is my settings.xml
> > ;)
> >
> > looks like my mirror is down
> >
> > On 8/28/06, Wendy Smoak <ws...@gmail.com> wrote:
> >
> >> On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
> >> > I get this error
> >> > (we have no! snapshot repo defined, and won't do that)
> >>
> >> Who is 'we' in this case... Oracle?
> >>
> >> > Reason: Cannot find parent: org.apache:apache for project:
> >> > org.apache.shale:shale-master:pom:1
> >>
> >> It looks like you're using a mirror of central, and it does not
> >> contain the org.apache:apache:2 pom.  It's there on ibiblio:
> >>
> >>    http://www.ibiblio.org/maven2/org/apache/apache/2/
> >>
> >> --
> >> Wendy
> >>
> >
> >
>
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Bug in Shale 103 parent pom

Posted by Paul Spencer <pa...@apache.org>.
Matthias,
As general practice, I will define a snapshot repo in pom.xml that contains the snapshot dependency.

See http://wiki.apache.org/myfaces/Using_MyFaces_in_a_Project_built_with_Maven

Paul Spencer


Matthias Wessendorf wrote:
> we is my settings.xml
> ;)
> 
> looks like my mirror is down
> 
> On 8/28/06, Wendy Smoak <ws...@gmail.com> wrote:
> 
>> On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
>> > I get this error
>> > (we have no! snapshot repo defined, and won't do that)
>>
>> Who is 'we' in this case... Oracle?
>>
>> > Reason: Cannot find parent: org.apache:apache for project:
>> > org.apache.shale:shale-master:pom:1
>>
>> It looks like you're using a mirror of central, and it does not
>> contain the org.apache:apache:2 pom.  It's there on ibiblio:
>>
>>    http://www.ibiblio.org/maven2/org/apache/apache/2/
>>
>> -- 
>> Wendy
>>
> 
> 


Re: Bug in Shale 103 parent pom

Posted by Matthias Wessendorf <ma...@apache.org>.
but the strange thing is, that maven is only looking for the
org.apache:apache:2 pom
on those two repos (maven-snap AND java.net), that are mentioned in
the parent pom...

non of my other mirrors (settings.xml) is asked.



[INFO] [xrts:generate-sources {execution: default}]
[INFO] Generating 1 XRTS bundles to
d:\Oracle\TRUNK\adf-richclient-impl\target\maven-xrts-plugin\main\java
Downloading: http://people.apache.org/maven-snapshot-repository/org/apache/apache/2/apache-2.pom
[WARNING] Unable to get resource from repository apache.snapshots
(http://people.apache.org/maven-snapshot-repository)
Downloading: https://maven-repository.dev.java.net/nonav/repository/org.apache/poms/apache-2.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.shale:shale-master:pom:1

Reason: Cannot find parent: org.apache:apache for project:
org.apache.shale:shale-master:pom:1


On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
> we is my settings.xml
> ;)
>
> looks like my mirror is down
>
> On 8/28/06, Wendy Smoak <ws...@gmail.com> wrote:
> > On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
> > > I get this error
> > > (we have no! snapshot repo defined, and won't do that)
> >
> > Who is 'we' in this case... Oracle?
> >
> > > Reason: Cannot find parent: org.apache:apache for project:
> > > org.apache.shale:shale-master:pom:1
> >
> > It looks like you're using a mirror of central, and it does not
> > contain the org.apache:apache:2 pom.  It's there on ibiblio:
> >
> >    http://www.ibiblio.org/maven2/org/apache/apache/2/
> >
> > --
> > Wendy
> >
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Bug in Shale 103 parent pom

Posted by Matthias Wessendorf <ma...@apache.org>.
we is my settings.xml
;)

looks like my mirror is down

On 8/28/06, Wendy Smoak <ws...@gmail.com> wrote:
> On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
> > I get this error
> > (we have no! snapshot repo defined, and won't do that)
>
> Who is 'we' in this case... Oracle?
>
> > Reason: Cannot find parent: org.apache:apache for project:
> > org.apache.shale:shale-master:pom:1
>
> It looks like you're using a mirror of central, and it does not
> contain the org.apache:apache:2 pom.  It's there on ibiblio:
>
>    http://www.ibiblio.org/maven2/org/apache/apache/2/
>
> --
> Wendy
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Re: Bug in Shale 103 parent pom

Posted by Wendy Smoak <ws...@gmail.com>.
On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
> I get this error
> (we have no! snapshot repo defined, and won't do that)

Who is 'we' in this case... Oracle?

> Reason: Cannot find parent: org.apache:apache for project:
> org.apache.shale:shale-master:pom:1

It looks like you're using a mirror of central, and it does not
contain the org.apache:apache:2 pom.  It's there on ibiblio:

   http://www.ibiblio.org/maven2/org/apache/apache/2/

-- 
Wendy

Re: Bug in Shale 103 parent pom

Posted by Matthias Wessendorf <ma...@apache.org>.
I get this error
(we have no! snapshot repo defined, and won't do that)

Downloading: http://stacy27.us.oracle.com/mirrors/www.ibiblio.org/maven2/org/apache/shale/shale-test/1.0.3/shale-test-1.0.3.
1K downloaded
Downloading: http://stacy27.us.oracle.com/mirrors/www.ibiblio.org/maven2/org/apache/shale/shale-parent/1.0.3/shale-parent-1.
16K downloaded
Downloading: http://people.apache.org/maven-snapshot-repository/org/apache/shale/shale-master/1/shale-master-1.pom
6K downloaded
Downloading: http://people.apache.org/maven-snapshot-repository/org/apache/apache/2/apache-2.pom
[WARNING] Unable to get resource from repository apache.snapshots
(http://people.apache.org/maven-snapshot-repository)
Downloading: https://maven-repository.dev.java.net/nonav/repository/org.apache/poms/apache-2.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.shale:shale-master:pom:1

Reason: Cannot find parent: org.apache:apache for project:
org.apache.shale:shale-master:pom:1


On 8/28/06, Matthias Wessendorf <ma...@apache.org> wrote:
> Hi,
>
> the parent pom 103 defines the maven-snapshot-repository.
> that should not be in there, maybe only inside "distributionManagement" section.
>
> -Matthias
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://jroller.com/page/mwessendorf
> mail: mwessendorf-at-gmail-dot-com
>


-- 
Matthias Wessendorf

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com