apache / netbeans

Apache NetBeans
https://netbeans.apache.org/
Apache License 2.0
2.62k stars 841 forks source link

Offline build impossible #5316

Open tbw777 opened 1 year ago

tbw777 commented 1 year ago

Apache NetBeans version

Apache NetBeans 16

What happened

You can't build NB without internet because of errors, for example:

https://gist.github.com/tbw777/15452e09e6b39080ca50589574913ece https://gist.github.com/tbw777/ac80cd1ebb162e8d87e4faa454c5fdc0

UPD 27.10.2023 origin/master d0186227 https://gist.github.com/tbw777/78abce84d18002e8a19cfdb1853f15ea

Tested on: origin/master:31028d28

How to reproduce

  1. Turn of internet
  2. Run ant

Did this work correctly in an earlier version?

No / Don't know

Operating System

windows 10

JDK

17

Apache NetBeans packaging

Other

Anything else

No response

Are you willing to submit a pull request?

No

Code of Conduct

Yes

neilcsmith-net commented 1 year ago

First of these might be fixed by #5372 ?

tbw777 commented 1 year ago

@neilcsmith-net no, the problem still exist And also i found a new case

neilcsmith-net commented 1 year ago

The last one shouldn't be an issue - it should be cached after first build, and a first build will always need an internet connection because of dependencies.

Note the fix I pointed to won't be in master until next week - you'll have to try delivery branch.

DevCharly commented 1 year ago

Aren't all external libraries downloaded from Maven Central during the build?

So why should a offline build work?

tbw777 commented 1 year ago

@DevCharly Becouse you cant rebuild project after all dependencies downloaded first time and exist in local repository

neilcsmith-net commented 1 year ago

Also see https://lists.apache.org/thread/qskflrfxv937v9db5jdv4pltb9cwyc3z by @jtulach which discussed this, and why, in 2020. The problem with metabuild info should be resolved, but we still have some edge cases. I keep meaning to look at why that asm file is always downloaded.

tbw777 commented 1 year ago

First of these might be fixed by #5372 ?

With this branch i dont see any messages like:

java.net.UnknownHostException: www.w3.org

BUILD SUCCESSFUL