New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(Re)enable building netbeans offline #2417
(Re)enable building netbeans offline #2417
Conversation
The intention of this PR is to ensure netbeans can be build without requiring a constant connection. @ehsavoie: The javaee parts were problematic because some of the XSDs imported external XSDs from internet servers. In all cases either the requires XSDs were already in the source base and just needed to be moved to the right place or absolute URLs had to replaced with relative paths. @lkishalmi Another problem was the building of the gradle tooling - I tested building it with the "--offline" option and that works. Do you see a problem here? @jtulach is this what you meant in your email? Could you please give it a spin? |
|
Requested review from Eric. I'm dubious about the instructions. Would have thought mirroring how the source release handles this might be better? eg. netbeansrelease.properties in nbbuild/ If existence of that file doesn't stop request for the release json (haven't checked that yet) that sounds like an error that needs fixing anyway?! EDIT : removed -1 because it's the instructions in the description, not the commits, that may need addressing. |
Hi @matthiasblaesing It make me think that step 3 -D parameters is a hack as json file should be detected and used. Maybe the following code on build.xml in nbbuild line 112 can avoid all the json mess.
EDIT to add the xml code |
@neilcsmith-net @ebarboni my target was enabling build offline - the procedure was just to show, that it can be successfully done, without to much fuzz. You can broaden the scope, but it was not intended to be. The approach to download the json file to some "build" directory will not work. |
For me this is ok to merge |
Thank you for the review. Let's get this in. |
Today I updated to most recent master and my build succeeded (instead of failing in |
This PR reestablishes the possibility to build netbeans offline. Offline in this case means, that thirdparty dependencies can be downloaded once and after that is done, the build can be done without a network connection.
This is the sequence:
wget -O ../netbeansrelease.json "https://gitbox.apache.org/repos/asf?p=netbeans-jenkins-lib.git;a=blob_plain;f=meta/netbeansrelease.json"
ant download-all-extbins
ant -Dmetabuild.jsonurl=file:../netbeansrelease.json
Steps 1+2 need an internet connection, step 3 can be run offline.