JHipster ./mvnw -Pprod软件包奇怪的行为

时间:2018-08-22 09:50:55

标签: webpack jhipster production

我已经创建了JHipster应用程序
它具有JDL-Studio中生成的74个实体
在开发中,一切都完美无缺,一切正常。
./mvnw测试表明一切正常
纱线测试也说一切都很好

但是当我开枪时:

纱线运行webpack:prod

[root@localhost StoVehiclesManagementSystems]# yarn run webpack:prod
yarn run v1.9.4
$ node -p process.arch && yarn run cleanup && yarn run webpack:prod:main && yarn run clean-www
x64
$ rimraf target/{aot,www}
$ yarn run webpack --config webpack/webpack.prod.js --profile
$ node --max_old_space_size=10240 node_modules/webpack/bin/webpack.js --config webpack/webpack.prod.js --profile
(node:27830) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead

最后一行光标保持闪烁后,没有任何反应,没有警告或错误消息,什么都没有。

为了对其进行测试,我已经将其放置了6个小时,并且没有任何变化。

知道发生了什么吗? 有没有一种方法可以强制记录后台发生的情况

PS:

我正在Centos Linux中工作

更新: 这是我执行

时的日志
./mvnw -Pprod package


[root@localhost StoVehiclesManagementSystems]# ./mvnw -Pprod package
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------< com.sto.vms:sto-vehicles-management-systems >-------------
[INFO] Building Sto Vehicles Management Systems 0.0.1-SNAPSHOT
[INFO] --------------------------------[ war ]---------------------------------
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:copy-resources (default-resources) @ sto-vehicles-management-systems ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 147 resources
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:resources (default-resources) @ sto-vehicles-management-systems ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 147 resources
[INFO] 
[INFO] --- maven-enforcer-plugin:3.0.0-M2:enforce (enforce-versions) @ sto-vehicles-management-systems ---
[INFO] 
[INFO] --- maven-resources-plugin:3.1.0:copy-resources (docker-resources) @ sto-vehicles-management-systems ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] 
[INFO] --- jacoco-maven-plugin:0.8.1:prepare-agent (pre-unit-tests) @ sto-vehicles-management-systems ---
[INFO] argLine set to -javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.8.1/org.jacoco.agent-0.8.1-runtime.jar=destfile=/home/igor/JHipsterProjects/StoVehiclesManagementSystems/target/test-results/coverage/jacoco/jacoco.exec -Djava.security.egd=file:/dev/./urandom -Xmx256m
[INFO] 
[INFO] --- git-commit-id-plugin:2.2.4:revision (default) @ sto-vehicles-management-systems ---
[WARNING] Exception caught during execution of command '[git, config, --system, --edit]' in '/usr/local/git/bin', return code '128', error message 'fatal: Invalid path '/usr/local/git/etc': No such file or directory
'
[INFO] 
[INFO] --- spring-boot-maven-plugin:2.0.4.RELEASE:build-info (default) @ sto-vehicles-management-systems ---
[INFO] 
[INFO] --- frontend-maven-plugin:1.6:install-node-and-yarn (install node and yarn) @ sto-vehicles-management-systems ---
[INFO] Node v8.11.3 is already installed.
[INFO] Yarn 1.9.2 is already installed.
[INFO] 
[INFO] --- frontend-maven-plugin:1.6:yarn (yarn install) @ sto-vehicles-management-systems ---
[INFO] Running 'yarn install --force' in /home/igor/JHipsterProjects/StoVehiclesManagementSystems
[INFO] yarn install v1.9.2
[INFO] [1/5] Validating package.json...
[INFO] [2/5] Resolving packages...
[INFO] [3/5] Fetching packages...
[ERROR] warning Pattern ["colors@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v1/npm-colors-1.3.1-4accdb89cf2cabc7f982771925e9468784f32f3d" as pattern ["colors@^1.1.2","colors@^1.1.0"]. This could result in non-deterministic behavior, skipping.
[ERROR] warning Pattern ["object-assign@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v1/npm-object-assign-4.1.1-2109adc7965887cfc05cbbd442cac8bfbb360863" as pattern ["object-assign@^4.1.0","object-assign@^4.0.1","object-assign@^4.0.1","object-assign@^4.0.1","object-assign@^4.1.0","object-assign@^4","object-assign@^4.0.1","object-assign@^4.1.1","object-assign@^4.0.1","object-assign@^4.0.1","object-assign@^4.0.1","object-assign@^4.1.0","object-assign@^4.1.0","object-assign@^4.1.0","object-assign@^4.1.1","object-assign@^4.0.1","object-assign@^4.1.0","object-assign@^4.1.0","object-assign@^4.1.0","object-assign@^4.1.0","object-assign@^4.0.1","object-assign@^4.0.1","object-assign@^4.0.1","object-assign@^4.0.1","object-assign@^4.1.1","object-assign@^4.1.0"]. This could result in non-deterministic behavior, skipping.
[ERROR] warning Pattern ["opn@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v1/npm-opn-5.3.0-64871565c863875f052cfdf53d3e3cb5adb53b1c" as pattern ["opn@^5.1.0","opn@^5.1.0","opn@^5.3.0"]. This could result in non-deterministic behavior, skipping.
[ERROR] warning Pattern ["send@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v1/npm-send-0.16.2-6ecca1e0f8c156d141597559848df64730a6bbc1" as pattern ["send@0.16.2","send@0.16.2"]. This could result in non-deterministic behavior, skipping.
[INFO] info fsevents@1.2.4: The platform "linux" is incompatible with this module.
[INFO] info "fsevents@1.2.4" is an optional dependency and failed compatibility check. Excluding it from installation.
[INFO] [4/5] Linking dependencies...
[ERROR] warning " > ngx-webstorage@2.0.1" has incorrect peer dependency "@angular/core@^5.0.0".
[INFO] [5/5] Rebuilding all packages...
[INFO] success Saved lockfile.
[INFO] Done in 39.12s.
[INFO] 
[INFO] --- frontend-maven-plugin:1.6:yarn (webpack build prod) @ sto-vehicles-management-systems ---
[INFO] yarn not inheriting proxy config from Maven
[INFO] Running 'yarn run webpack:prod' in /home/igor/JHipsterProjects/StoVehiclesManagementSystems
[INFO] yarn run v1.9.2
[INFO] $ node -p process.arch && yarn run cleanup && yarn run webpack:prod:main && yarn run clean-www
[INFO] x64
[INFO] $ rimraf target/{aot,www}
[INFO] $ yarn run webpack --config webpack/webpack.prod.js --profile
[INFO] $ node --max_old_space_size=10240 node_modules/webpack/bin/webpack.js --config webpack/webpack.prod.js --profile
[ERROR] (node:7497) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead

最后一行光标保持闪烁

1 个答案:

答案 0 :(得分:0)

通过重新创建应用程序解决了这种情况,仅此而已,