I got the build to work again... I patched this file:
nbbuild/antsrc/org/netbeans/nbbuild/extlibs/DownloadBinaries.java like this: ---- private byte[] mavenFile(MavenCoordinate mc) throws IOException { String cacheName = mc.toMavenPath(); File local = new File(new File(new File(new File(System.getProperty("user.home")), ".m2"), "repository"), cacheName.replace('/', File.separatorChar)); final String url; if (local.exists()) { url = local.toURI().toString(); } else { // 2020-01-16 jj5 - OLD: //url = "http://central.maven.org/maven2/" + cacheName; // 2020-01-16 jj5 - NEW: url = "https://repo1.maven.org/maven2/" + cacheName; // 2020-01-16 jj5 - END } URL u = new URL(url); return downloadFromServer(u); } ---- and now when I run 'ant' it seems to be working. Regards, John Elliot V On 16/1/20 8:13 am, John Elliot V | ProgClub wrote: > Hi Antonio, > > Thanks for your suggestion. > > There are a number of <downloadbinaries> tasks in nbbuild/build.xml. I > tried replacing all instances of: > > <downloadbinaries cache="${binaries.cache}" server="${binaries.server}"> > > with: > > <downloadbinaries cache="${binaries.cache}" repos="${binaries.server}"> > > but then when I try compiling [1] it fails with: > > downloadbinaries doesn't support the "repos" attribute > > Not sure what else I can try... > > Regards, > John Elliot V > > [1] > > jj5@jj-dev:~/desktop/netbeans/source$ ant -Dcluster.config=full > -Dpermit.jdk9.builds=true > Buildfile: /var/export/jj-dev/netbeans/source/build.xml > > -jdk-pre-preinit: > > -jdk-preinit: > > -jdk-warn: > > -jdk-presetdef-basic: > > -jdk-default: > > -jdk-init: > > -load-build-properties: > > bootstrap: > > BUILD FAILED > /var/export/jj-dev/netbeans/source/nbbuild/build.xml:71: > downloadbinaries doesn't support the "repos" attribute > > Total time: 0 seconds > > > On 16/1/20 7:50 am, antonio wrote: >> The DownloadBinariesTask has a "repos" variable you can set. This is a >> list of Maven repositories to use. >> >> This seems to default to >> >> ---- >> private String repos = "https://repo1.maven.org/maven2/"; >> >> >> /** >> * Space separated URL prefixes for maven repositories. >> * Should generally include a trailing slash. >> * You may include multiple URLs separated by spaces >> * in which case they will be tried in order. >> */ >> public void setRepos(String repos) { >> this.repos = repos; >> } >> ---- >> >> I imagine you can set the property in the "<downloadbinaries" task in >> nbbuild/build.xml, I haven't tried it myself, though. >> >> Cheers, >> Antonio >> >> El 15/1/20 a las 21:31, John Elliot V | ProgClub escribió: >>> Ah, thanks Fabian, that explains it. >>> >>> I tried grepping for central.maven.org, but I haven't been able to >>> figure out how to override the setting for http://central.maven.org/ >>> with https://repo1.maven.org/ -- can you tell me how I can do that..? >>> >>> Regards, >>> John Elliot V >>> >>> [1] >>> jj5@jj-dev:~/desktop/netbeans/source$ search central.maven.org >>> DEPENDENCIES: - jsr305-2.0.0.jar: JSR305 Annotations for Findbugs >>> (http://central.maven.org/maven2/com/google/code/findbugs/jsr305/2.0.0/jsr305-2.0.0.jar) >>> >>> nbbuild/antsrc/org/netbeans/nbbuild/extlibs/DownloadBinaries.java: >>> url = "http://central.maven.org/maven2/" + cacheName; >>> Binary file >>> nbbuild/build/antclasses/org/netbeans/nbbuild/extlibs/DownloadBinaries.class >>> >>> matches >>> Binary file nbbuild/netbeans/harness/tasks.jar matches >>> platform/api.annotations.common/external/jsr305-2.0.0-license.txt:URL: >>> http://central.maven.org/maven2/com/google/code/findbugs/jsr305/2.0.0/jsr305-2.0.0.jar >>> >>> >>> On 16/1/20 7:21 am, Fabian Bahle wrote: >>>> Hello John, >>>> >>>> Maven just announced >>>> (https://twitter.com/ASFMavenProject/status/1217495225905577984) that >>>> the turned off the HTTP support of Maven Central repo, you should use >>>> https://repo1.maven.org <https://repo1.maven.org/> instead. >>>> >>>> >>>> Regards, >>>> Fabian >>>> >>>>> Am 15.01.2020 um 21:12 schrieb John Elliot V | ProgClub >>>>> <j...@progclub.org>: >>>>> >>>>> Hello again. >>>>> >>>>> I've been following up on Eirik's request [1] for more testing of my >>>>> proposed patch on various Ubuntu desktops, but all of a sudden I'm >>>>> having trouble compiling from source. >>>>> >>>>> This worked yesterday but is failing now. My guess is it's a transient >>>>> networking problem? (Seems to be HTTP 501: Not Implemented) >>>>> >>>>> I'm building from netbeans-11.2-source.zip with the command: >>>>> >>>>> ant -Dcluster.config=full -Dpermit.jdk9.builds=true >>>>> >>>>> The error message looks like this [2]. >>>>> >>>>> Do I just wait for network services from http://central.maven.org/ to >>>>> resume? Or is there some other action I can take? >>>>> >>>>> Regards, >>>>> John Elliot V >>>>> >>>>> [1] >>>>> https://mail-archives.apache.org/mod_mbox/netbeans-dev/202001.mbox/%3CBL0PR20MB2098FA4608142A1F4F719C04A1340%40BL0PR20MB2098.namprd20.prod.outlook.com%3E >>>>> >>>>> >>>>> [2] >>>>> >>>>> nbantext: >>>>> [TestDownload] Creating >>>>> /var/export/jj-dev/netbeans/source/harness/apisupport.harness/build/asm-all-5.0.1.jar >>>>> >>>>> [TestDownload] Downloading: >>>>> http://central.maven.org/maven2/org/ow2/asm/asm-all/5.0.1/asm-all-5.0.1.jar >>>>> >>>>> [TestDownload] Could not download >>>>> 2F7553F50B0D14ED811B849C282DA8C1FFC32AAE-asm-all-5.0.1.jar to >>>>> /var/export/jj-dev/netbeans/source/harness/apisupport.harness/build/asm-all-5.0.1.jar: >>>>> >>>>> java.io.IOException: Skipping download from >>>>> http://central.maven.org/maven2/org/ow2/asm/asm-all/5.0.1/asm-all-5.0.1.jar >>>>> >>>>> due to response code 501 >>>>> [nbmerge] Failed to build target: all-apisupport.harness >>>>> >>>>> >>>>> -- >>>>> |_|O|_| ProgClub >>>>> |_|_|O| Because every programmer needs a good club! >>>>> |O|O|O| https://www.progclub.org/ >>>>> >>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org >>>>> For additional commands, e-mail: dev-h...@netbeans.apache.org >>>>> >>>>> For further information about the NetBeans mailing lists, visit: >>>>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >>>>> >>>> >>>> >>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org >>> For additional commands, e-mail: dev-h...@netbeans.apache.org >>> >>> For further information about the NetBeans mailing lists, visit: >>> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org >> For additional commands, e-mail: dev-h...@netbeans.apache.org >> >> For further information about the NetBeans mailing lists, visit: >> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org > For additional commands, e-mail: dev-h...@netbeans.apache.org > > For further information about the NetBeans mailing lists, visit: > https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists > -- |_|O|_| ProgClub |_|_|O| Because every programmer needs a good club! |O|O|O| https://www.progclub.org/
--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists