Vaadin 新应用程序的构建(mvn安装)需要很长时间

Vaadin 新应用程序的构建(mvn安装)需要很长时间,vaadin,Vaadin,我试图使用现有的应用程序作为新应用程序的起点。 因此,我复制了src文件夹、pom和一些特定于IDE的配置文件。 然后,我对所有这些进行了重构,给了它一个新的路径和应用程序名,然后我想进行第一次构建,并输入了mvn install 在vaadin-maven-plugin:18.0.2:build-frontend(参见下面的完整控制台输出)中,这个过程现在已经挂起了1个半小时 这是意料之中的事,或者为什么要花这么长时间?我能不能弄清楚,为什么要挂在哪里 我错过了什么?在构建(甚至尝试)新的Va

我试图使用现有的应用程序作为新应用程序的起点。 因此,我复制了src文件夹、pom和一些特定于IDE的配置文件。 然后,我对所有这些进行了重构,给了它一个新的路径和应用程序名,然后我想进行第一次构建,并输入了
mvn install

vaadin-maven-plugin:18.0.2:build-frontend
(参见下面的完整控制台输出)中,这个过程现在已经挂起了1个半小时

这是意料之中的事,或者为什么要花这么长时间?我能不能弄清楚,为什么要挂在哪里

我错过了什么?在构建(甚至尝试)新的Vaadin应用程序之前,除了上面提到的文件之外,是否还有其他文件必须存在

[INFO] Scanning for projects...
[INFO]
[INFO] --------------< ch.zh.ksta.monitoring:my_app >---------------
[INFO] Building KStA-ZH-Monitoring 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ my_app ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 7 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) @ my_app ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- vaadin-maven-plugin:18.0.2:prepare-frontend (default) @ my_app ---
[INFO] writing file D:\Projects\my_app\target\flow-frontend\package.json.
[INFO] writing file D:\Projects\my_app\target\flow-frontend\form\package.json.
[INFO] writing file 'D:\Projects\my_app\target\index.html'
[INFO] writing file 'D:\Projects\my_app\target\index.ts'
[INFO] Copying frontend resources from jar files ...
[INFO] Visited 173 resources. Took 2229 ms.
[INFO]
[INFO] --- vaadin-maven-plugin:18.0.2:build-frontend (default) @ my_app ---
[INFO] Scanning classes to find frontend configurations and dependencies...
[INFO] Visited 720 classes. Took 2553 ms.
[INFO] Visited 126 classes. Took 138 ms.
[INFO] writing file D:\Projects\my_app\target\flow-frontend\package.json.
[INFO] writing file D:\Projects\my_app\target\flow-frontend\form\package.json.
[INFO] writing file 'D:\Projects\my_app\target\index.html'
[INFO] writing file 'D:\Projects\my_app\target\index.ts'
[INFO] Parsing java files from [D:\Projects\my_app\src\main\java]
[INFO] There are no connect endpoints to generate.
[INFO] Running `pnpm install` to resolve and optionally download frontend dependencies. This may take a moment, please stand by...
[INFO] Generated pnpmfile hook file: 'D:\Projects\my_app\pnpmfile.js'
[INFO] installing pnpm version 4.4.0 locally
[INFO] using 'C:\Users\mmo\.vaadin\node\node.exe C:\Users\mmo\.vaadin\node_modules\pnpm\bin\pnpm.js' for frontend package installation
如果我重新启动构建,它将再次挂起


哎呀,这易碎吗-(

1 1 1/2小时听起来异常缓慢。由于maven和npm加载了大量依赖项,第一个版本自然较慢。因此,我想知道您的所有版本都需要这么长时间,还是只需要第一个版本。如果只是第一个版本,那么我会说这是由于网络速度较慢。我还建议将版本更新到19.0.8,这是最新版本现在,直到本周晚些时候20.0.0发布。@Tata这肯定不是网络速度!半GB/秒肯定足够快,这是目前唯一存在问题的应用程序。更新到v19.0.8:我以前尝试过,但它破坏了SuperDateTimePicker。如果Superfeelds广告中的应用程序是这样的话,我会再试一次但它还是坏了,你可以在
...
2021-05-31 18:24:40,199 ERROR [task-1] com.vaadin.flow.server.frontend.TaskRunNpmInstall: Command `C:\Program Files\nodejs\node.exe C:\Users\mmo\.vaadin\node_modules\pnpm\bin\pnpm.js --shamefully-hoist=true install` failed:
Using hooks from: D:\Projects\my_app\pnpmfile.jsreadPackage hook is declared. Manifests of dependencies might get overridden
2021-05-31 18:24:40,201 ERROR [task-1] com.vaadin.flow.server.frontend.TaskRunNpmInstall: >>> Dependency ERROR. Check that all required dependencies are deployed in pnpm repositories.
2021-05-31 18:24:40,205 DEBUG [task-1] com.vaadin.flow.server.startup.DevModeInitializer: Could not initialize dev mode handler. One of the node tasks failed
com.vaadin.flow.server.ExecutionFailedException: Pnpm install has exited with non zero status. Some dependencies are not installed. Check pnpm command output
        at com.vaadin.flow.server.frontend.TaskRunNpmInstall.runNpmInstall(TaskRunNpmInstall.java:405)
        at com.vaadin.flow.server.frontend.TaskRunNpmInstall.execute(TaskRunNpmInstall.java:120)
        at com.vaadin.flow.server.frontend.NodeTasks.execute(NodeTasks.java:634)
        at com.vaadin.flow.server.startup.DevModeInitializer.runNodeTasks(DevModeInitializer.java:471)
        at com.vaadin.flow.server.startup.DevModeInitializer.lambda$initDevModeHandler$0(DevModeInitializer.java:381)
        at java.base/java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1736)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)