Open fubb-github opened 4 weeks ago
Hi @fubb-github! Is nothing shown in console when it's running from BASH?
你好@fubb-github! 从 BASH 运行时控制台中没有显示任何内容吗?
This is my packaging error message:
[INFO] Building jar: D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar
[INFO] Runnable jar created in D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar!
[INFO]
[INFO] Bundling JRE ... with D:\JDK\jdk17\jdk-17.0.7
[INFO] Creating customized JRE ...
[INFO] Getting required modules ...
[INFO] Executing command: cmd.exe /s /c "D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs"
[INFO] 错误: Modules io.netty.codec.xml and io.netty.codec export package io.netty.handler.codec.xml to module spring.aop
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 35.640 s
[INFO] Finished at: 2024-10-29T11:45:32+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.github.fvarrui:javapackager:1.7.6:package (default) on project kdew-protocol-vpn-client: Command execution failed: D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs -> [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/MojoExecutionException
Hi @fubb-github !
JP 1.7.6 fails sometimes when trying to figure out which modules have to be included in your customize JRE.
There's a patch for this in 1.7.7-SNAPSHOT, but until it's released, I encourage you to set customizedJre=false
, so a full JRE will be generated for your app.
This is a workaround.
I hope it helps!
Oh! you also can try this snapshot version: 1.7.7-20240703.192610-1
.
哦!您也可以尝试这个快照版本:
1.7.7-20240703.192610-1
。
After using version 1.7.7-snapshot, the same error still persists
哦!您也可以尝试这个快照版本:
1.7.7-20240703.192610-1
。After using version 1.7.7-snapshot, the same error still persists
Please, could you share Maven execution output?
BTW, if you are in a hurry and can't wait, you can set customizedJre=false
and skip this issue.
哦!您也可以尝试这个快照版本:
1.7.7-20240703.192610-1
。After using version 1.7.7-snapshot, the same error still persists
Please, could you share Maven execution output?
BTW, if you are in a hurry and can't wait, you can set
customizedJre=false
and skip this issue.
Thank you for you reply,this is my packaging error message:
[INFO] Bundling JRE ... with D:\JDK\jdk17\jdk-17.0.7 [INFO] Creating customized JRE ... [INFO] Getting required modules ... [INFO] Executing command: cmd.exe /s /c "D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar" [INFO] 错误: Modules io.netty.handler and io.netty.handler.ssl.ocsp export package io.netty.handler.ssl.ocsp to module io.netty.codec.stomp [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 26.513 s [INFO] Finished at: 2024-10-31T09:16:14+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal io.github.fvarrui:javapackager:1.7.7-SNAPSHOT:package (default) on project kdew-protocol-vpn-client: Command execution failed: D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar -> [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/MojoExecutionException
Hi @fubb-github! Please, could you run this command just after building process fails?
D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar
Hi @fubb-github! Please, could you run this command just after building process fails?
D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar
Ok, forgot last comment, I've just seen the error message:
[INFO] 错误: Modules io.netty.handler and io.netty.handler.ssl.ocsp export package io.netty.handler.ssl.ocsp to module io.netty.codec.stomp
I've been researching a little bit about this issue, and it seems to be caused by netty ... 2 modules are exporting the same package. AFAIK, it's not caused by JP, but you can try to do this:
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-codec</artifactId>
<version>{VERSION}</version>
<exclusions>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty-codec-xml</artifactId>
</exclusion>
</exclusions>
</dependency>
Hi @fubb-github! Please, could you run this command just after building process fails?
D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar
Ok, forgot last comment, I've just seen the error message:
[INFO] 错误: Modules io.netty.handler and io.netty.handler.ssl.ocsp export package io.netty.handler.ssl.ocsp to module io.netty.codec.stomp
I've been researching a little bit about this issue, and it seems to be caused by netty ... 2 modules are exporting the same package. AFAIK, it's not caused by JP, but you can try to do this:
<dependency> <groupId>io.netty</groupId> <artifactId>netty-codec</artifactId> <version>{VERSION}</version> <exclusions> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-codec-xml</artifactId> </exclusion> </exclusions> </dependency>
Hi @fubb-github! Please, could you run this command just after building process fails?
D:\JDK\jdk17\jdk-17.0.7\bin\jdeps -q --multi-release 17 --ignore-missing-deps --print-module-deps --add-modules=ALL-MODULE-PATH --module-path=D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar;D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\udun\libs D:\IDEA\workspace\protocol-vpn\kdew-protocol-vpn-client\target\kdew-protocol-vpn-client-1.0-SNAPSHOT-runnable.jar
Ok, forgot last comment, I've just seen the error message:
[INFO] 错误: Modules io.netty.handler and io.netty.handler.ssl.ocsp export package io.netty.handler.ssl.ocsp to module io.netty.codec.stomp
I've been researching a little bit about this issue, and it seems to be caused by netty ... 2 modules are exporting the same package. AFAIK, it's not caused by JP, but you can try to do this:
<dependency> <groupId>io.netty</groupId> <artifactId>netty-codec</artifactId> <version>{VERSION}</version> <exclusions> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-codec-xml</artifactId> </exclusion> </exclusions> </dependency>
I have tried to remove it, but it still reports this type of error. Using version 1.7.5 does not have this problem
I am using version 1.7.6 for packaging, but I cannot start after installing the deb package
Originally posted by @fubb-github in https://github.com/fvarrui/JavaPackager/issues/393#issuecomment-2428118293