NutzCN Logo
问答 MqttWk 运行 mvn install 报错
发布于 2247天前 作者 qq_671c7872 1460 次浏览 复制 上一个帖子 下一个帖子
标签:

删除本地文件再运行还是一样错误。

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] MqttWk 1.0.5-netty ................................. SUCCESS [  1.311 s]
[INFO] mqtt-common ........................................ FAILURE [  0.040 s]
[INFO] mqtt-auth .......................................... SKIPPED
[INFO] mqtt-broker ........................................ SKIPPED
[INFO] mqtt-store 1.0.5-netty ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.286 s
[INFO] Finished at: 2018-09-21T09:41:00+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.4: 1 problem was encountered while building the effective model
[ERROR] [FATAL] Non-parseable POM D:\01_java_tools\repository\org\apache\maven\plugins\maven-jar-plugin\2.4\maven-jar-plugin-2.4.pom: unexpected character in markup   (position: START_TAG seen ... function init() {\n          loaded += 1;\n\n          if (loaded < ... @44:24)  @ line 44, column 24
[ERROR] -> [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/PluginResolutionException
10 回复

文件损坏 D:\01_java_tools\repository\org\apache\maven\plugins\maven-jar-plugin\2.4\maven-jar-plugin-2.4.pom

怎么解决呢?

我删除了,也不好使

贴当前报错, 感觉你的maven魔改过

我只是 把那个pom 文件删除了,然后在重新执行命令。还是报一样的错,但我的maven打包我其他的项目是可以的。是maven版本的问题吗 还是设置的问题

什么版本的maven?换最新版吧

3.5.3 ,行我下个新的试试

@Wizzercn
D:\mqtt>java -jar mqtt-broker-1.0.5-netty.jar
mqtt-broker-1.0.5-netty.jar中没有主清单属性
启动不了

没看说明? 不是直接package的

添加回复
请先登陆
回到顶部