我在此链接上遵循运行信号服务器的指南:

https://github.com/lucaconte/BeatTheMeddler

当我尝试在此步骤运行PushServer时:
java -jar Push-Server-<VERSION>-capsule-fat.jar server YourPushServerConfigFile.yml
然后出现一个错误:
Failed to find Premain-Class manifest attribute in ...\PushServer\target\Push-Server-0.12.0-capsule-fat.jarError occurred during initialization of VMagent library failed to init: instrumentCAPSULE: Client connection failed.CAPSULE EXCEPTION: Accept timed out while processing null null: null (for stack trace, run with -Dcapsule.log=verbose)
我已经用这两个脚本创建了 list ,并且还将主类指向netbeans中的PushServer.java,但是问题仍然存在。
jar -tf Push-Server-0.12.0-capsule-fat.jarjar -xf Push-Server-0.12.0-capsule-fat.jar META-INF/MANIFEST.MF
有人知道这是什么问题吗?

最佳答案

好,这是胶囊的问题

pom.xml中,将版本更改为较新,在我的情况下为1.0.1

<!-- <capsule.maven.plugin.version>0.10.0</capsule.maven.plugin.version>-->
     <capsule.maven.plugin.version>1.0.1</capsule.maven.plugin.version>

从:
https://github.com/puniverse/capsule/issues/89

10-01 12:13