Building Frontend infinite build

Hi, i have added a new addon (Apex Chart) to my pom. After that i made a prepear frontend which was successfull, but the build frontend i then started runs infinite.

I think it has something to do with our firwall, but when i add the jar manually to the project its the same.

  <dependency>
            <groupId>com.github.appreciated</groupId>
            <artifactId>apexcharts</artifactId>
            <version>24.0.2</version>
            <scope>system</scope>
            <systemPath>${project.basedir}/lib/apexcharts-24.0.2.jar</systemPath>
        </dependency>

Is there a way to get some output to see what is going on during the build?

Try to run maven with -X flag. Perhaps it could provide additional hints.
If the process is stuck, also taking a thread dump may help to investigate the issue.

1 Like

Yeah thanks, i added it some minutes ago and now i am waiting for a log

Now it printed out the following but does not proceed

[INFO] using ‘C:\Users\user.vaadin\node\node.exe C:\Users\user.vaadin\node\node_modules\npm\bin\npm-cli.js --no-update-notifier --no-audit --scripts-prepend-node-path=true --ignore-scripts install’ for frontend package installation
[DEBUG] Output of C:\Users\user\.vaadin\node\node.exe C:\Users\user\.vaadin\node\node_modules\npm\bin\npm-cli.js --no-update-notifier --no-audit --scripts-prepend-node-path=true --ignore-scripts install:

Once i remove the dependency from pom ist builds. So it looks like if it could not get a connection or what ever because of our firewall.

Or could it be because its not for 24.5.x?
ApexCharts.js | Vaadin Add-on Directory

Sounds like a firewall problem. Try configure npm to use your corporate proxy.

I dont have npm installed locally. In Windows Settings we have a auto setup script for proxy. Will check with a colleague. Thanks for confirming its not a project related issue ;)

This might help https://vaadin.com/docs/latest/flow/configuration/development-mode/node-js#proxy-settings-for-downloading-frontend-toolchain

Is there a way to see whats going on? Other addons i add locally are working fine. Maybe its a dependecy of the addon jar which could not be downloaded or is that some vaadin internal stuff?

Its definetley a infrastructure issue

[DEBUG] npm error code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
[DEBUG] npm error errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
[DEBUG] npm error request to https://registry.npmjs.org/apexcharts failed, reason: unable to get local issuer certificate

What could my colleague do? Should the URL be whitelisted? Do i need to add a certificate to maven etc? I received a certifificate but where do i need to add this? Into maven or anywhere in IntelliJ?