在线构建相关
# 在线构建异常
在使用在线构建中出现 xxx:未找到命令 等相关提示。
构建依赖的是系统环境,如果需要 maven 或者 node 需要服务端所在的服务器中有对应插件,如果已经启动服务端再安装的对应环境需要通过命令行重启服务端后才生效。
# 上传或者构建发布出现:Error writing to server
异常信息
org.dromara.jpom.system.AgentException: xxx节点异常:Error writing to server
at forward.org.dromara.jpom.common.NodeForward.responseException(NodeForward.java:235)
at forward.org.dromara.jpom.common.NodeForward.request(NodeForward.java:208)
at forward.org.dromara.jpom.common.NodeForward.request(NodeForward.java:90)
at org.dromara.jpom.outgiving.OutGivingRun.fileUpload(OutGivingRun.java:145)
at org.dromara.jpom.build.ReleaseManage.doProject(ReleaseManage.java:505)
at org.dromara.jpom.build.ReleaseManage.start(ReleaseManage.java:165)
at org.dromara.jpom.build.ReleaseManage.run(ReleaseManage.java:546)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11
出现上述信息可能是因为上传文件超过插件端上传文件大小限制,需要配置更大的上传文件限制
# 构建日志提示:xxx 不存在、处理构建产物失败
请优先检查构建命令执行结果是否如预期执行结果一致产生对应的文件
需要检查构建日志中是否存在异常,造成命令并未正常执行结束而是提前终止。
再检查构建产物目录填写是否正常
请注意构建产物目录是填写仓库下面的相对路径:如 dist
、/target/xxxx.jar
⚠️ 注意:
目前 Jpom 执行构建命令是逐行执行,如果需要切换命令或者多条命令需要同时执行需要使用 &&
比如:cd xxx && mvn clean package
(先将执行目录切换到 xxx 再执行 后续命令)
需要保证多条命令都必须执行成功,如果执行某条命令失败需要终止也是需要使用 && 来实现
比如:npm i && npm run build
需要先安装依赖并且成功安装后再打包
# 导入仓库时:服务异常:SSLProtocolException: Empty issuer DN not allowed in X509Certificates
Caused by: javax.net.ssl.SSLProtocolException: Empty issuer DN not allowed in X509Certificates
at sun.security.ssl.HandshakeMessage$CertificateMsg.<init>(HandshakeMessage.java:452)
at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:216)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:1026)
at sun.security.ssl.Handshaker.process_record(Handshaker.java:961)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062)
at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387)
at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559)
at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
at cn.hutool.http.HttpConnection.connect(HttpConnection.java:379)
at cn.hutool.http.HttpRequest.send(HttpRequest.java:1299)
... 81 common frames omitted
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
出现上述信息可能是因为JAVA 版本问题
目前无问题版本≤1.8.0_332
发现问题版本:1.8.0_121
1.8.0_332版本以下,出现升级版本即可 centos 命令yum -y install java-1.8.0-openjdk.x86_64
Ubantu自行百度
帮助我们改善此文档 (opens new window)
上次更新: 2023/09/20, 13:11:05