You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Antonio <an...@vieiro.net> on 2017/10/15 09:29:03 UTC

Should we use Eclipse Maven Repository too?

Hi all,


Modules "o.eclipse.core.**" contain binaries that are either hard or 
impossible to find in Maven central. Some times the versions are not 
exactly equal, and I'm not sure if we should downgrade to a previous 
version or upgrade to a newest one. We're talking of old binaries 
(2012/2013 in certain cases) that are possibly gone forever.

Would it be possible to fetch these binaries from the 
https://repo.eclipse.org/ maven repository instead? I think this has 
many more versions that maven.central. (Don't know if this is the 
official Eclipse maven repo, though).

We could add some sort of key in external/binaries-list in order to 
select a Maven repository. In order not to interfere with the existing 
contents we could use a comment-tag to specify the repository. Something 
like:

#maven-repository: eclipse

Is this a good idea? How would it affect to the cached binaries? Should 
I downgrade binaries to previous versions and leave this for a future 
enhancement?

Thanks,
Antonio

Re: Should we use Eclipse Maven Repository too?

Posted by Antonio Vieiro <an...@vieiro.net>.
> El 15 oct 2017, a las 15:50, Emilian Bold <em...@gmail.com> escribió:
> 
> It's part of the Apache IP clearance. We need to know our dependencies. A
> binary JAR won't do, specifically because we patch stuff too. We can't just
> go through classes and add small license headers when we imports lots and
> lots of binaries as external dependencies. Knowing the exact (legal) status
> of our dependencies is even more important than going through the codebase
> imho.
> 

So the important thing here is to _identify_ the exact procedence of each binary dependency & its license and legal status, but not to actually compile modules against binaries, am I right?


>> I'd prefer upgrading to modern versions than seeking old ones.
> 
> This involve potential breaking changes, code refactoring and potential
> bugs. Why risk all that?
> 
> Let's just make an inventory of everything (ie. IP clearance) and build
> with the JARs we have tested before!
> 

If possible yes, of course. Trouble is when you can’t find a jar from 2009 :-)

Thanks for your clarification, Emi, this helps.

Un abrazo,
Antonio


Re: Should we use Eclipse Maven Repository too?

Posted by Antonio Vieiro <an...@vieiro.net>.
> El 15 oct 2017, a las 15:52, Emilian Bold <em...@gmail.com> escribió:
> 
> PS: Using Maven also helps because http://hg.netbeans.org/binaries/ will
> disappear in the (near) future.
> 
> 

Ah! This clarifies the question in my previous email: it’s not just about identifying the procedence & legal status of third-party binaries; it’s also important to be able to compile against them.

Thanks, Emi, this closes the questions.

Otro abrazo,
Antonio


Re: Should we use Eclipse Maven Repository too?

Posted by Emilian Bold <em...@gmail.com>.
PS: Using Maven also helps because http://hg.netbeans.org/binaries/ will
disappear in the (near) future.


--emi

On Sun, Oct 15, 2017 at 4:50 PM, Emilian Bold <em...@gmail.com>
wrote:

> >So, what's the point of adding maven coordinates for external binaries?
> Is this some requirement of the code donation? Or is this an effort to try
> to achieve some kind of "repeteable build" mechanism? (I've arrived late to
> the party, so I surely missed the thread where this was discussed).
>
> It's part of the Apache IP clearance. We need to know our dependencies. A
> binary JAR won't do, specifically because we patch stuff too. We can't just
> go through classes and add small license headers when we imports lots and
> lots of binaries as external dependencies. Knowing the exact (legal) status
> of our dependencies is even more important than going through the codebase
> imho.
>
> >I'd prefer upgrading to modern versions than seeking old ones.
>
> This involve potential breaking changes, code refactoring and potential
> bugs. Why risk all that?
>
> Let's just make an inventory of everything (ie. IP clearance) and build
> with the JARs we have tested before!
>
>
> --emi
>
> On Sun, Oct 15, 2017 at 4:01 PM, Antonio <an...@vieiro.net> wrote:
>
>>
>>
>> On 15/10/17 13:30, Emilian Bold wrote:
>>
>>>   Should I downgrade binaries to previous versions and leave this for a
>>>
>>>> future enhancement?
>>>>
>>>
>>>
>>> No, don't downgrade binaries. We are not beholden to Maven Central.
>>>
>>>
>> I've already have downgraded to previous versions, as Yarda suggested.
>>
>> So, what's the point of adding maven coordinates for external binaries?
>> Is this some requirement of the code donation? Or is this an effort to try
>> to achieve some kind of "repeteable build" mechanism? (I've arrived late to
>> the party, so I surely missed the thread where this was discussed).
>>
>> If it's not related to the code donation then I think I'd prefer
>> finishing the code donation first and reviewing the modules and upgrading
>> them to the most modern versions later on. We're currently seeking versions
>> of 2009/2010 in some cases, and things have changed since. I'd prefer
>> upgrading to modern versions than seeking old ones.
>>
>> Cheers,
>> Antonio
>>
>
>

Re: Should we use Eclipse Maven Repository too?

Posted by Emilian Bold <em...@gmail.com>.
>So, what's the point of adding maven coordinates for external binaries? Is
this some requirement of the code donation? Or is this an effort to try to
achieve some kind of "repeteable build" mechanism? (I've arrived late to
the party, so I surely missed the thread where this was discussed).

It's part of the Apache IP clearance. We need to know our dependencies. A
binary JAR won't do, specifically because we patch stuff too. We can't just
go through classes and add small license headers when we imports lots and
lots of binaries as external dependencies. Knowing the exact (legal) status
of our dependencies is even more important than going through the codebase
imho.

>I'd prefer upgrading to modern versions than seeking old ones.

This involve potential breaking changes, code refactoring and potential
bugs. Why risk all that?

Let's just make an inventory of everything (ie. IP clearance) and build
with the JARs we have tested before!


--emi

On Sun, Oct 15, 2017 at 4:01 PM, Antonio <an...@vieiro.net> wrote:

>
>
> On 15/10/17 13:30, Emilian Bold wrote:
>
>>   Should I downgrade binaries to previous versions and leave this for a
>>
>>> future enhancement?
>>>
>>
>>
>> No, don't downgrade binaries. We are not beholden to Maven Central.
>>
>>
> I've already have downgraded to previous versions, as Yarda suggested.
>
> So, what's the point of adding maven coordinates for external binaries? Is
> this some requirement of the code donation? Or is this an effort to try to
> achieve some kind of "repeteable build" mechanism? (I've arrived late to
> the party, so I surely missed the thread where this was discussed).
>
> If it's not related to the code donation then I think I'd prefer finishing
> the code donation first and reviewing the modules and upgrading them to the
> most modern versions later on. We're currently seeking versions of
> 2009/2010 in some cases, and things have changed since. I'd prefer
> upgrading to modern versions than seeking old ones.
>
> Cheers,
> Antonio
>

Re: Should we use Eclipse Maven Repository too?

Posted by Antonio <an...@vieiro.net>.

On 15/10/17 13:30, Emilian Bold wrote:
>   Should I downgrade binaries to previous versions and leave this for a
>> future enhancement?
> 
> 
> No, don't downgrade binaries. We are not beholden to Maven Central.
> 

I've already have downgraded to previous versions, as Yarda suggested.

So, what's the point of adding maven coordinates for external binaries? 
Is this some requirement of the code donation? Or is this an effort to 
try to achieve some kind of "repeteable build" mechanism? (I've arrived 
late to the party, so I surely missed the thread where this was discussed).

If it's not related to the code donation then I think I'd prefer 
finishing the code donation first and reviewing the modules and 
upgrading them to the most modern versions later on. We're currently 
seeking versions of 2009/2010 in some cases, and things have changed 
since. I'd prefer upgrading to modern versions than seeking old ones.

Cheers,
Antonio

Re: Should we use Eclipse Maven Repository too?

Posted by Emilian Bold <em...@gmail.com>.
I've noticed this in another email:

Do note that Eclipse doesn't really use Maven Central but
> https://repo.eclipse.org/content/groups/releases/
>


Take a look there too.


I guess if this repo is the canonical source for those JARs we should use
it.

We have the hash to make sure it's the right binary.

#maven-repository: eclipse
> Is this a good idea?


If the ant task is updated to use this, why not?

 How would it affect to the cached binaries?


These are in .hgexternalcache anyhow...  I doubt we'll have conflicts (same
hash, no?).

 Should I downgrade binaries to previous versions and leave this for a
> future enhancement?


No, don't downgrade binaries. We are not beholden to Maven Central.



--emi

On Sun, Oct 15, 2017 at 12:29 PM, Antonio <an...@vieiro.net> wrote:

> Hi all,
>
>
> Modules "o.eclipse.core.**" contain binaries that are either hard or
> impossible to find in Maven central. Some times the versions are not
> exactly equal, and I'm not sure if we should downgrade to a previous
> version or upgrade to a newest one. We're talking of old binaries
> (2012/2013 in certain cases) that are possibly gone forever.
>
> Would it be possible to fetch these binaries from the
> https://repo.eclipse.org/ maven repository instead? I think this has many
> more versions that maven.central. (Don't know if this is the official
> Eclipse maven repo, though).
>
> We could add some sort of key in external/binaries-list in order to select
> a Maven repository. In order not to interfere with the existing contents we
> could use a comment-tag to specify the repository. Something like:
>
> #maven-repository: eclipse
>
> Is this a good idea? How would it affect to the cached binaries? Should I
> downgrade binaries to previous versions and leave this for a future
> enhancement?
>
> Thanks,
> Antonio
>