赞
踩
使用maven下载mqtt 相关jar,配置如下
<dependency>
<groupId>org.eclipse.paho</groupId>
<artifactId>mqtt-client</artifactId>
<version>0.2.1</version>
</dependency>
Build errors for anjie31; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project anjie31: Could not resolve dependencies for project anjie31:anjie31:jar:0.0.1-SNAPSHOT: Could not find artifact org.eclipse.paho:mqtt-client:jar:0.4.0 in central (http://repo1.maven.org/maven2)
在central仓库找不到。
因为mqtt的包在Spring Plugins Repository
<repositories>
<repository>
<id>Spring Plugins Repository</id>
<name>Spring Plugins Repository</name>
<url>http://repo.spring.io/plugins-release/</url>
</repository>
</repositories>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。