This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 269264 - Download binaries from Maven Central
Summary: Download binaries from Maven Central
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2016-12-07 16:00 UTC by Jaroslav Tulach
Modified: 2017-04-01 03:14 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2016-12-07 16:00:58 UTC
In the process of donating the NetBeans code base to Apache, we need to change the way we deliver binaries. Rather than downloading them from our http://hg.netbeans.org/binaries mirror, it is suggested to download them from a Maven central (if they are hosted there).

This issue is created to track the progress of implementation of such downloading system.
Comment 1 Jaroslav Tulach 2016-12-07 16:04:34 UTC
The work is being done in MavenDownload269264 branch in ergonomics repository. The first commit is http://hg.netbeans.org/ergonomics/rev/4270da1cffd4
Comment 2 Jaroslav Tulach 2016-12-07 16:10:11 UTC
Build to verify the approach is available at http://deadlock.netbeans.org/job/prototypes-MavenDownload269264/
Comment 3 Tomas Zezula 2016-12-12 13:30:23 UTC
Possibility to download binaries from the maven central is a great feature.
Thanks Jardo!
Comment 4 Jaroslav Tulach 2016-12-15 14:01:38 UTC
Thanks. I plan to merge the change in tomorrow - unless there are some objections.
Comment 5 Jaroslav Tulach 2016-12-19 10:48:23 UTC
By default our jobs at deadlock.netbeans.org aren't configured to download from Maven repository. As such we get failures like this:

http://deadlock.netbeans.org/job/ergonomics/6813/

I had to change the configuration of the job to define following variable:

export http_proxy=http://our.proxy.at.oracle:80

as can be seen at
http://deadlock.netbeans.org/job/push-ergonomics/configure

Petr, if the Maven download change set gets integrated, it will be essential to have this variable set in all jobs that build NetBeans. Is it OK?
Comment 6 Jaroslav Tulach 2017-03-30 02:47:49 UTC
with the following change http://hg.netbeans.org/ergonomics/rev/508c9e09160b, the download shall allow us to specify Maven co-ordinates, yet fallback to our traditional server, if necessary.
Comment 7 Quality Engineering 2017-04-01 03:14:24 UTC
Integrated into 'main-silver', will be available in build *201704010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/508c9e09160b
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #269264: Try maven, but then fallback to hg.nb.org/binaries