[
https://issues.apache.org/jira/browse/GUACAMOLE-2098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18015826#comment-18015826
]
Nick Couchman commented on GUACAMOLE-2098:
------------------------------------------
The proxy issue is due to a bug in the frontend-maven-plugin where the proxy
options sent to npx via command line arguments are not placed properly and are
interpreted incorrectly. There is already a pull request with a fix, but the
project looks to have fallen into an unmaintained status, with the last commits
7 months ago:
https://github.com/eirslett/frontend-maven-plugin/pull/1120
There is a work-around for the proxy issue, but it involves telling the plugin
not to pull in the proxy information, which means either 1) npx will be unable
to download anything in environments where a proxy is required, or 2) users
will have to manually update the arguments section of the plugin call with the
flags for proxy information.
Beyond that, the only solution would be to find a different plugin to use for
running nodejs-related commands. I'm not sure what options are out there.
> Building the guacamole client fails because guacamole-common-js does not have
> jsdoc.
> ------------------------------------------------------------------------------------
>
> Key: GUACAMOLE-2098
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-2098
> Project: Guacamole
> Issue Type: Bug
> Components: guacamole-client, guacamole-common-js
> Affects Versions: 1.6.0
> Environment: OS: Ubuntu 22.04.5
> JAVA: java-11-openjdk-amd64
> mvn: Apache Maven 3.6.3
> local npm: {
> npm: '8.3.1',
> node: '12.22.9',
> v8: '7.8.279.23-node.56',
> uv: '1.43.0',
> zlib: '1.2.11',
> brotli: '1.0.9',
> ares: '1.18.1',
> modules: '72',
> nghttp2: '1.43.0',
> napi: '8',
> llhttp: '2.1.6',
> http_parser: '2.9.4',
> openssl: '1.1.1m',
> cldr: '40.0',
> icu: '70.1',
> tz: '2025b',
> unicode: '14.0'
> }
> or
> OS: CentOS Stream release 9
> JAVA: java-17-openjdk-17.0.15.0.6-3.el9.x86_64
> mvn: Apache Maven 3.6.3 (Red Hat 3.6.3-22)
> local npm: not installed
> Reporter: Kazuhiko Tanaka
> Priority: Minor
>
> When I run the `mvn package` command on guacamole-client, it stops at
> building `guacamole-common-js`.
> When I run it with the `-e -X` option, I get the error `sh: 1: jsdoc:
> Permission denied` (Ubuntu) or `sh: line 1: jsdoc: command not found` (CentOS
> Stream).
> On Ubuntu, after installing `jsdoc` (version 4.0.4) using the `npm` command,
> when I run the command the error message changes to `Unknown command-line
> option "".`.
> In CentOS, if you run `./npm install jsdoc` in `guacamole-common-js/node/`
> and then run `mvn package` again in guacamole-client, the error changes to
> `node:internal/modules/cjs/loader:1024`. Also, if I update the node-related
> files in `guacamole-common-js/node/` to the latest version, install jsdoc,
> and then run `mvn package`, the same error as in Ubuntu occurs.
> Probably `guacamole-common-js` does not contain the required jsdoc and is not
> compatible with the latest jsdoc.
> I have confirmed that building guacamole-client 1.5.5 on Ubuntu works fine.
> The problem only occurs with 1.6.0.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)