zaproxy: Browser View add-on fails to build with aarch64
Describe the bug
Hi, Teams! ๐๐ผ how are you? Thereโs a problem. An error occurs while building by referring to the official build documentation(https://www.zaproxy.org/docs/developer/quick-start-build/) of zaproxy.
Steps to reproduce the behavior
First, place the zaproxy and zap-extension folders in the same root directory.
And go to the zap-extension folder and run ./gradlew copyZapAddOn
.
./gradlew copyZapAddOn
> Configure project :addOns:browserView
Project :addOns:browserView => no module-info.java found
> Task :addOns:browserView:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':addOns:browserView:compileJava'.
> Could not resolve all files for configuration ':addOns:browserView:compileClasspath'.
> Could not find javafx-web-11-mac-aarch64.jar (org.openjfx:javafx-web:11).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/openjfx/javafx-web/11/javafx-web-11-mac-aarch64.jar
> Could not find javafx-controls-11-mac-aarch64.jar (org.openjfx:javafx-controls:11).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/openjfx/javafx-controls/11/javafx-controls-11-mac-aarch64.jar
> Could not find javafx-media-11-mac-aarch64.jar (org.openjfx:javafx-media:11).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/openjfx/javafx-media/11/javafx-media-11-mac-aarch64.jar
> Could not find javafx-swing-11-mac-aarch64.jar (org.openjfx:javafx-swing:11).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/openjfx/javafx-swing/11/javafx-swing-11-mac-aarch64.jar
> Could not find javafx-graphics-11-mac-aarch64.jar (org.openjfx:javafx-graphics:11).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/openjfx/javafx-graphics/11/javafx-graphics-11-mac-aarch64.jar
> Could not find javafx-base-11-mac-aarch64.jar (org.openjfx:javafx-base:11).
Searched in the following locations:
https://repo.maven.apache.org/maven2/org/openjfx/javafx-base/11/javafx-base-11-mac-aarch64.jar
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
Next, go to zap-hud and run ./gradlew copyZapAddOn
.
./gradlew copyZapAddOn
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':nodeSetup'.
> Failed to query the value of task ':nodeSetup' property 'nodeArchiveFile'.
> Could not resolve all files for configuration ':detachedConfiguration1'.
> Could not find org.nodejs:node:10.24.1.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/org/nodejs/node/10.24.1/node-10.24.1.pom
- https://nodejs.org/dist/v10.24.1/node-v10.24.1-darwin-arm64.tar.gz
Required by:
project :
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 2s
10 actionable tasks: 10 up-to-date
Expected behavior
According to the official documentation, it should build without any errors. But distMacArm64 is well build.
./gradlew distMacArm64
> Task :zap:downloadMacOsJreArm64
Download https://api.adoptium.net/v3/binary/version/jdk-11.0.17+8/mac/aarch64/jre/hotspot/normal/eclipse?project=jdk
> Task :zap:distMacArm64
created: /Users/Eo/zaproxy/zap/build/distributions/ZAP_2.13.0-SNAPSHOT_aarch64.dmg
Can I just use it like this?
Software versions
Gradle Version
- Build Time: 2022-11-25 13:35:10 UTC
- Revision: daece9dbc5b79370cc8e4fd6fe4b2cd400e150a8
- Kotlin: 1.7.10
- Groovy: 3.0.13
- Ant: Apache Antโข version 1.10.11 compiled on July 10 2021
- JVM: 17.0.6 (Homebrew 17.0.6+0)
- OS: Mac OS X 13.1 aarch64
Screenshots
No response
Errors from the zap.log file
No response
Additional context
No response
Would you like to help fix this issue?
- Yes
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 15 (6 by maintainers)
Commits related to this issue
- browserView: support building in aarch64 Use JavaFX 17 when building on aarch64, which supports it. Update help to mention the requirements of the add-on. Fix zaproxy/zaproxy#7707 Signed-off-by: th... — committed to thc202/zap-extensions by thc202 a year ago
- browserView: support building in aarch64 Use JavaFX 17 when building on aarch64, which supports it. Update help to mention the requirements of the add-on. Fix zaproxy/zaproxy#7707 Signed-off-by: th... — committed to thc202/zap-extensions by thc202 a year ago
- browserView: support building in aarch64 Use JavaFX 17 when building on aarch64, which supports it. Update help to mention the requirements of the add-on. Fix zaproxy/zaproxy#7707 Signed-off-by: th... — committed to thc202/zap-extensions by thc202 a year ago
@thc202, Thanks to push request!
I didnโt know how to pull for a specific commit, so I modified
zap-extension/addOns/browserView/browserView.gradle.kts
to the same commit, and I tried./gradlew copyZapAddOn
again, and after a while, the following error occurs:I think itโs a paramdigger extension build error, can you help!
The problem is the architecture not the Gradle version (wrapper uses 7.5.x).