On 3/5/22 12:09 AM, Michael Bien wrote:
the last three threads I saw which were similar to this one were
resolved by making sure the project is properly cleaned before rebuild.
You sure this doesn't apply here too?
Every test was done with a freshly checked out clone. I have a local
clone, with nothing checked out. I clone that, do the build.
(Just started using a system with SSD, so I might be running these tests
just to amaze myself)
My path has jdk-17. Recall I've got
$ cat nbbuild/user.build.properties
nbjdk.home=/ref/openjdk/jdk-11.0.2
but this isn't sufficient. With user.build.properties and doing
JAVA_HOME=/ref/openjdk/jdk-11.0.2 ant build-nozip
fixes the problem. Also works defining JAVA_HOME and not nbjdk.home. I
guess nbjdk.home is deprecated.
-ernie
PS
If you're curious, here's the difference between release branch,
ignoring various .gitignore, and released source zip file
###
### repo: release-clean, netbeans-13-source.zip: netbeans-src
### diff -w -r netbeans-clean/ netbeans-src/ |& tee OUT.release130.diff
### grep -v '^Only in netbeans-clean.*: \.gitignore$'
###
Only in netbeans-clean/: .asf.yaml
Only in netbeans-clean/: contrib
Only in netbeans-clean/cpplite: README.md
Only in netbeans-src/: DEPENDENCIES
Only in netbeans-clean/enterprise: performance.javaee
Only in netbeans-clean/enterprise: performance.scripting
Only in netbeans-clean/enterprise: performance.web
Only in netbeans-clean/ergonomics: performance.ergonomics
Only in netbeans-clean/: .gitattributes
Only in netbeans-clean/: .github
Only in netbeans-clean/: .hg
Only in netbeans-clean/java: build.xml
Only in netbeans-clean/java: performance
Only in netbeans-clean/java: performance.java
diff -w -r netbeans-clean/LICENSE netbeans-src/LICENSE
204,208c204,513
...
Only in netbeans-src/: licenses
Only in netbeans-src/nbbuild: gitinfo.properties
Only in netbeans-src/nbbuild: netbeansrelease.json
diff -w -r netbeans-clean/NOTICE netbeans-src/NOTICE
2c2
< Copyright 2017-2022 The Apache Software Foundation
---
> Copyright 2017-2021 The Apache Software Foundation
12a13,38
...
Only in netbeans-clean/: .travis.yml
Have you tried to build a freshly checked out clone in a temp folder
or used the git clean command to force a fresh checkout? Have you
tried using a different JDK vendor (not one supplied by a linux
distribution)?
a lot of people (including me) just verified that the sources of NB 13
build fine on JDK 11 (see vote thread).
-mbien
On 05.03.22 00:06, Ernie Rael wrote:
With
$ cat nbbuild/user.build.properties
nbjdk.home=/ref/openjdk/jdk-11.0.2
and a repo starting here (abreviated):
$ hg log -r.
bookmark: release130
user: Neil C Smith <[email protected]>
date: Tue Feb 15 16:12:19 2022 +0000
summary: Merge pull request #3610 from apache/delivery
$ ant build-nozip
The build finishes with:
[repeat] 7 errors
[repeat] 15 warnings
[nbmerge] Failed to build target: all-j2eeserver
Tried building with cluster.config.myrelease.list which has
enterprise taken out and it still failed. Building with
cluster.config=basic works.
Cockpit error?
-ernie
Here's where it starts generating errors
[repeat] Note: parsing:
file:///ref/nb/src/netbeans/enterprise/j2eeserver/src/org/netbeans/modules/j2ee/deployment/plugins/api/netbeans-deployment.dtd
[repeat]
/ref/nb/src/netbeans/enterprise/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/gen/nbd/package-info.java:28:
error: Failed to process
[repeat] package org.netbeans.modules.j2ee.deployment.impl.gen.nbd;
[repeat] ^
[repeat] error: java.lang.reflect.InaccessibleObjectException:
Unable to make field transient java.util.HashMap$Node[]
java.util.HashMap.table accessible: module java.base does not "opens
java.util" to unnamed module @1e5e3850
[repeat] at
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
...
[repeat]
/ref/nb/src/netbeans/enterprise/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/Server.java:47:
error: cannot find symbol
[repeat] import
org.netbeans.modules.j2ee.deployment.impl.gen.nbd.ConfigBean;
[repeat] ^
[repeat] symbol: class ConfigBean
[repeat] location: package
org.netbeans.modules.j2ee.deployment.impl.gen.nbd
[repeat]
/ref/nb/src/netbeans/enterprise/j2eeserver/src/org/netbeans/modules/j2ee/deployment/impl/Server.java:48:
error: cannot find symbol
[repeat] import
org.netbeans.modules.j2ee.deployment.impl.gen.nbd.NetbeansDeployment;
[repeat] ^
[repeat] symbol: class NetbeansDeployment
[repeat] location: package
org.netbeans.modules.j2ee.deployment.impl.gen.nbd
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists