gpt4 book ai didi

java - 启动由 wildfly-swarm-plugin :1. 0.0.Alpha1 构建的 fatjar 时找不到 org.wildfly.swarm.bootstrap.Main

转载 作者:行者123 更新时间:2023-12-02 04:38:28 24 4
gpt4 key购买 nike

我已经查看了https://github.com/arun-gupta/wildfly-samples/tree/master/swarm作者:Arun Gupta,但是当尝试启动构建的 jar 时,我收到 Error: Could not find or load main class org.wildfly.swarm.bootstrap.Main.

\wildfly-samples-master\swarm>mvn clean install

[INFO] --- wildfly-swarm-plugin:1.0.0.Alpha1:create (default) @ swarm ---
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ swarm ---
[INFO] Installing \wildfly-samples-master\swarm\target\swarm-1.0-SNAPSHOT.war to \.m2\repository\org\wildfly\samples\swarm\swarm\1.0-SNAPSHOT\swarm-1.0-SNAPSHOT.war
[INFO] Installing \wildfly-samples-master\swarm\pom.xml to \.m2\repository\org\wildfly\samples\swarm\swarm\1.0-SNAPSHOT\swarm-1.0-SNAPSHOT.pom
[INFO] Installing \wildfly-samples-master\swarm\target\swarm-1.0-SNAPSHOT-swarm.jar to \.m2\repository\org\wildfly\samples\swarm\swarm\1.0-SNAPSHOT\swarm-1.0-SNAPSHOT-swarm.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8.115 s
[INFO] Finished at: 2015-05-26T21:06:59+01:00
[INFO] Final Memory: 49M/313M
[INFO] ------------------------------------------------------------------------

\wildfly-samples-master\swarm>java -jar target/swarm-1.0-SNAPSHOT-swarm.jar
Error: Could not find or load main class org.wildfly.swarm.bootstrap.Main


\wildfly-samples-master\swarm>mvn --version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: C:\tools\apache-maven-3.2.1
Java version: 1.7.0_21
Java home: C:\Progra~1\Java\jdk1.7.0_21\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

我不明白这里可能存在什么问题。

有人可以建议一下吗?

编辑:我首先尝试构建自己的示例,但遇到了同样的问题。引用一个对我来说失败的现有示例更容易。

最佳答案

这是 Alpha1 中的一个已知问题

该问题已修复 https://github.com/wildfly-swarm/wildfly-swarm/commit/761cdf1848a8720614b20a2272983bcd4e5f3c60

最好从源代码构建它,直到 Alpha2 版本完成。

关于java - 启动由 wildfly-swarm-plugin :1. 0.0.Alpha1 构建的 fatjar 时找不到 org.wildfly.swarm.bootstrap.Main,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30467167/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com