-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
打包时报错,请教大神解决办法 #2
Comments
加了 repository吗 |
|
加了
|
哦哦 版本写错 是 v1.0.8 |
好的,可以了,谢谢 |
OK |
请问怎么运行? 运行 xjar? java -jar ?? |
java -jar /path/to/your/xjar |
你的类是不是没有包名 |
是没有包名。我就简单先弄了个工程看看能不能跑 |
可以帮忙弄个简单demo吗?或者 clone下 https://github.com/icielo/jitpack 看看 |
我先看下 |
我看了你的 demo 有两个问题
你改了这两个问题就可以了 |
可以了。非常感谢大神。 |
OK |
非spring-boot项目。通过在pom.xml文件中添加xjar-maven-plugin插件,抛出异常: java.lang.ClassNotFoundException: org.apache.commons.compress.archivers.jar.JarArchiveInputStream。 |
把本地这个文件夹删掉再build一次 |
文件夹删除后,不会自动下载。我是私服。如果通过在pom.xml配置中添加标签可以自动下载 |
你用版本多少 |
v2.0.6 |
不行,我先在外网写一个Demo试试。谢谢你 |
好的 |
运行
mvn package
时报错:org.apache.maven.plugin.InvalidPluginDescriptorException: Invalid plugin descriptor for com.github.core-lib:xjar-maven-plugin:1.0.8
,插件配置如下:The text was updated successfully, but these errors were encountered: