Is this in any way due to transition from http to https
https://blog.sonatype.com/central-repository-moving-to-https


While trying to troubleshoot this, I thought maybe my cached artifacts had
in someway gotten corrupted so I decided to clear out my .m2 repository
cache and redownload everything and still have the problem.

I searched the netbeans code based and found in DownloadBinaries.java the
following:

    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 {
            url = "http://central.maven.org/maven2/"; + cacheName;
        }
        URL u = new URL(url);
        return downloadFromServer(u);
    }

So assume the way to reproduce this is have an empty maven repository cache
and attempt an ant build which should require pulldown external
dependencies via mavenFIles means and maybe it will trigger this.

--

However, after further checks, I'm guessing it may be my workspace may be a
little behind and may be related to
NETBEANS-3905 building netbeans from source fails to download components.
If this continues to not be the case then will come back on this.

Eric Bresie
[email protected]




On Thu, Apr 22, 2021 at 3:39 PM Přemysl Vyhnal <[email protected]> wrote:

> Just an observation: DA39A3EE5E6B4B0D3255BFEF95601890AFD80709 is sha1 of
> empty data and really the link in your email does not resolve. If you
> change "central" to "repo1" in that address it should work, but I
> don't know where is the build system getting that address from, sorry.
>
>
>
> On Thu, Apr 22, 2021 at 10:20 PM Eric Bresie <[email protected]> wrote:
>
> > Also got a similar one when trying an ant clean like the following:
> >
> > Process 'platform/libs.asm' location with 'clean' target
> > platform/libs.asm.init-tasks:
> > platform/libs.asm.default.init:
> > Updating property file:
> > C:\git\nb.netbeans\netbeans\nbbuild\netbeans\moduleCluster.properties
> > platform/libs.asm.common-init:
> > platform/libs.asm.basic-init:
> > platform/libs.asm.projectized-common.-release.files:
> > Creating
> > C:\git\nb.netbeans\netbeans\platform\libs.asm\external\asm-all-5.0.1.jar
> > Downloading:
> >
> http://central.maven.org/maven2/org/ow2/asm/asm-all/5.0.1/asm-all-5.0.1.jar
> > C:\git\nb.netbeans\netbeans\nbbuild\build.xml:1138: The following error
> > occurred while executing this line:
> > C:\git\nb.netbeans\netbeans\nbbuild\templates\projectized.xml:241:
> Download
> > of 2F7553F50B0D14ED811B849C282DA8C1FFC32AAE-asm-all-5.0.1.jar produced
> > content with hash DA39A3EE5E6B4B0D3255BFEF95601890AFD80709 when
> > 2F7553F50B0D14ED811B849C282DA8C1FFC32AAE was expected
> > BUILD FAILED (total time: 1 second)
> >
> >
> > Eric Bresie
> > [email protected]
> >
> >
> > On Thu, Apr 22, 2021 at 3:16 PM Eric Bresie <[email protected]> wrote:
> >
> > > For some reason I've started getting build issues while trying to do an
> > > ant build on my local workspace (may be a small bit behind master) like
> > the
> > > following:
> > >
> > > ant -f C:\\git\\nb.netbeans\\netbeans\\nbbuild
> > -Dpermit.jdk9.builds=true\"
> > > all
> > > bootstrap:
> > > Bootstrapping NetBeans-specific Ant extensions...
> > > init-tasks:
> > > prepare-vanilla-javac:
> > > init-module-list:
> > > unable to find revision info for
> > >
> C:\git\nb.netbeans\netbeans\.git\1e6dcbb7404c4eae5249f1559452358efd460508
> > > set-buildnumber:
> > > init:
> > > Loading module list from
> > > C:\Users\someplace\AppData\Local\Temp\nb-scan-cache-d87b531b-full.ser
> > > Cannot find build prerequisite org.netbeans.modules.hibernate of
> > > C:\git\nb.netbeans\netbeans\hibernateweb
> > > download-selected-extbins:
> > > Downloading external binaries (*/external/ directories) for
> > > cluster.config=basic...
> > > Creating
> > > C:\git\nb.netbeans\netbeans\ide\c.google.guava\external\guava-15.0.jar
> > > Downloading:
> > >
> >
> http://central.maven.org/maven2/com/google/guava/guava/15.0/guava-15.0.jar
> > > C:\git\nb.netbeans.ebresie\netbeans\nbbuild\build.xml:125: Download of
> > > ED727A8D9F247E2050281CB083F1C77B09DCB5CD-guava-15.0.jar produced
> content
> > > with hash DA39A3EE5E6B4B0D3255BFEF95601890AFD80709 when
> > > ED727A8D9F247E2050281CB083F1C77B09DCB5CD was expected
> > > BUILD FAILED (total time: 1 second)
> > >
> > > Is this some sort of indication of something compromised in someway on
> > the
> > > download site?
> > >
> > >
> > > Eric Bresie
> > > [email protected]
> > >
> >
>

Reply via email to