jenkins编译kgtmes

[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.lowagie:itext:jar:2.1.7.js9 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for ktg 3.8.2:
[INFO] 
[INFO] ktg ................................................ SUCCESS [  0.100 s]
[INFO] ktg-common ......................................... SUCCESS [  3.062 s]
[INFO] ktg-system ......................................... SUCCESS [  0.960 s]
[INFO] ktg-framework ...................................... SUCCESS [  1.046 s]
[INFO] ktg-quartz ......................................... SUCCESS [  2.953 s]
[INFO] ktg-generator ...................................... SUCCESS [  0.871 s]
[INFO] ktg-mes ............................................ FAILURE [  0.153 s]
[INFO] ktg-admin .......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  14.557 s
[INFO] Finished at: 2024-10-15T13:13:30+08:00
[INFO] ------------------------------------------------------------------------
Waiting for Jenkins to finish collecting data
[ERROR] Failed to execute goal on project ktg-mes: Could not resolve dependencies for project com.ktg:ktg-mes:jar:3.8.2: The following artifacts could not be resolved: com.lowagie:itext:jar:2.1.7.js9 (absent): com.lowagie:itext:jar:2.1.7.js9 was not found in https://maven.aliyun.com/repository/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of aliyunmaven has elapsed or updates are forced -> [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] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :ktg-mes
[JENKINS] Archiving /root/.jenkins/workspace/kgtmes/ktg-common/pom.xml to com

这个错误出现以后,是因为itext jar不对,
https://jaspersoft.jfrog.io/ui/native/third-party-ce-artifacts/com/lowagie/itext/2.1.7.js9
下载jar和Pom文件

放到

[root@servermeeting kgtmes]# cd ~/.m2/repository/com/lowagie/itext/
2.1.7.js9/           itext-2.1.7.js9.jar  itext-2.1.7.js9.pom
[root@servermeeting kgtmes]# cd ~/.m2/repository/com/lowagie/itext/
[root@servermeeting itext]# pwd
/root/.m2/repository/com/lowagie/itext
[root@servermeeting itext]# ll
total 1112
drwxr-x---. 2 root root      72 Oct 15 13:26 2.1.7.js9
-rw-r--r--. 1 root root 1131549 Oct 15 13:25 itext-2.1.7.js9.jar
-rw-r--r--. 1 root root    3069 Oct 14  2021 itext-2.1.7.js9.pom
作者:严锋  创建时间:2024-10-15 13:28
最后编辑:严锋  更新时间:2025-05-09 15:48