baiyekaslana 最近的时间轴更新
baiyekaslana

baiyekaslana

V2EX 第 617120 号会员,加入于 2023-03-04 15:22:57 +08:00
baiyekaslana 最近回复了
@ikas
现在好了,为啥需要手动编译前端文件才行,他自己那个命令就会报错?
[INFO] datacap-notify-spi ................................. SUCCESS [ 0.231 s]
[INFO] datacap-http ....................................... SUCCESS [ 0.620 s]
[INFO] datacap-notify-dingtalk ............................ SUCCESS [ 0.314 s]
[INFO] datacap-server ..................................... SUCCESS [01:11 min]
[INFO] datacap-jdbc-mongo ................................. SUCCESS [ 0.628 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:42 min
[INFO] Finished at: 2024-09-30T14:52:42+08:00
[INFO] ------------------------------------------------------------------------
PS C:\Users\baiye\Desktop\datacap_dev\datacap>
@ikas

PS C:\Users\baiye\Desktop\datacap_dev\datacap\core\datacap-ui> yarn --legacy-peer-deps install
yarn install v1.22.22
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
Done in 153.99s.
PS C:\Users\baiye\Desktop\datacap_dev\datacap\core\datacap-ui>
@ikas 我看文件里自带 package-lock.json ,这个是 npm 使用的锁文件吧,程序用 yarn 不会相互影响嘛
@baiyekaslana
@ikas 我搜了下,是在对应的模块目录下的终端执行是吗
@ikas 您说的这个手动到模块下执行 yarn --legacy-peer-deps install ,是说的 maven 那个对应的模块里输入这个命令嘛?
@ikas 应该是 datacap-server 的模块无法下载,datacap-ui 的我还没拉。
@ikas 这个是当时执行的。
[INFO] datacap-notify-dingtalk ............................ SUCCESS [ 0.269 s]
[INFO] datacap-server ..................................... FAILURE [02:27 min]
[INFO] datacap-jdbc-mongo ................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:51 min
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:yarn (yarn install) on project datacap-server: Failed to run task: 'yarn --legacy-peer-deps install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <args> -rf :datacap-server
@ikas [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:yarn (yarn install) on project datacap-server: Failed to run task: 'yarn --legacy-peer-deps install' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1]
本地已经下载 yarn ,path 里也加了,但是还是报这个错误
之前问 gpt 也没提示
@baiyekaslana
@ikas 这个错误找到了,windows 的 power shell 终端执行这个命令需要在每个参数两边加单引号
mvn compile -U '-Dspotbugs.skip' '-Dgpg.skip' '-Dcheckstyle.skip' -DskipTests=true
我执行这样就行了
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3348 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 16ms · UTC 11:41 · PVG 19:41 · LAX 03:41 · JFK 06:41
Developed with CodeLauncher
♥ Do have faith in what you're doing.