V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  baiyekaslana  ›  全部回复第 1 页 / 共 2 页
回复总数  35
1  2  
@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
我执行这样就行了
@ikas [ERROR] Unknown lifecycle phase ".skip". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, init
ialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
我加参数就会提示这个
@ikas 除啦这个 maven 配置和 jdk 配置还需要啥操作嘛,我 idea 换成 24.2.2 也还是不行
@ikas 构建的时候还有个 gpg 认证的吧,这个不跳过不行吧?
@ikas 没想非要执行这些操作,就是现在 maven 这些都配置了,jdk 也配置了,然后编译和 maven 的操作都有报错
@ikas ./mvnw -T 1C clean install package -Dspotbugs.skip -Dgpg.skip -Dcheckstyle.skip -DskipTests=true
在那个官网上,说要使用命令行执行这个,但是我用 idea 就提示识别不了.skip ,用的 windows10 ,要加这些参数再 idea 上能加嘛,还是只能去 pom 文件里加
@ikas 提示找不到 tools.jar,好像是引用的时候有个..到上一级目录,是 jdk-11/../lib/tools.jar,然后把 lib 复制到外面之后就不报这个错了,我用的 jdk11,和 maven3.6.3 版本,现在是 clean 正常,但是 package 的时候又报错了,idea 是 2023.3.6 版本
@a33291 试过了,还是提示没有 tools.jar
95 天前
回复了 baiyekaslana 创建的主题 MySQL Mysql 主从同步问题
@pollux 有的企业没事儿的时候停没停电觉得没啥问题,停电也不说,有事儿的时候就开始说有主从为啥没备份好
95 天前
回复了 baiyekaslana 创建的主题 MySQL Mysql 主从同步问题
@Mrun 好的,谢了
96 天前
回复了 baiyekaslana 创建的主题 MySQL Mysql 主从同步问题
@hetal 就是一些客户企业的服务器有时会断电,数据库服务器断电重启后主从复制基本就不会同步了
1  2  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2654 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 10:01 · PVG 18:01 · LAX 02:01 · JFK 05:01
Developed with CodeLauncher
♥ Do have faith in what you're doing.