无法执行项目温度事物的目标:无法解析项目 com.ptcmanaged.thingworx:temperature-thing 的依赖关系
Failed to execute goal on project temperature-thing: Could not resolve dependencies for project com.ptcmanaged.thingworx:temperature-thing
当我 运行 mvn package
我得到这个错误。知道如何解决这个问题吗?
Downloaded: https://repo.maven.apache.org/maven2/junit/junit/4.4/junit-4.4.pom (2 KB at 4.0 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:28 min
[INFO] Finished at: 2015-10-26T21:57:51-05:00
[INFO] Final Memory: 9M/222M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project temperature-thing: Could not resolve dependencies for project com.ptcmanaged.thingworx:temperature-thing:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.thingworxs:thingworx-common:jar:5.0.0: Failed to read artifact descriptor for com.thingworxs:thingworx-common:jar:5.0.0: Could not transfer artifact com.thingworxs:thingworx-common:pom:5.0.0 from/to ptc-managed-services-public (https://maker01.ptcmanaged.com/mvnrepo): Connect to maker01.ptcmanaged.com:443 [maker01.ptcmanaged.com/54.173.81.52] failed: Operation timed out -> [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/DependencyResolutionException
dyn-72-33-222-204:temperature-thing mona$ pwd
/Users/mona/iotlab/raspberry/temperature-thing
dyn-72-33-222-204:temperature-thing mona$ ls
README.md bin conf pom.xml src
dyn-72-33-222-204:temperature-thing mona$
无法执行项目温度事物的目标:无法解析项目 com.ptcmanaged.thingworx:temperature-thing:jar:1.0-SNAPSHOT 的依赖关系:
无法收集位于 com.thingworxs 的依赖项:thingworx-common:jar:5.0.0:
无法读取 com.thingworxs 的工件描述符:thingworx-common:jar:5.0.0:
无法传输工件 com.thingworxs:thingworx-common:pom:5.0.0 from/to ptc-managed-services-public (https://maker01.ptcmanaged.com/mvnrepo):
连接到 maker01.ptcmanaged.com:443 [maker01.ptcmanaged.com/54.173.81.52] 失败:操作超时 -> [帮助 1]
需要在本地安装jar,修改注释下的pom.xml文件:
在这里,mvnrepo 的新 URL 应该是:http://maker01.clould.thingworx.com/mvnrepo i believe that the current URL is now http://maker01.ptcmanaged.com/mvnrepo
vi pom.xml
<!--<url>https://maker01.ptcmanaged.com/mvnrepo</url>-->
<url>http://maker01.cloud.thingworx.com/mvnrepo </url>
谢谢
打开 pom.xml
文件并通过在文件中搜索 maker01
删除此行:
<url>https://maker01.ptcmanaged.com/mvnrepo</url>
并在同一位置添加此行:
<url>http://maker01.cloud.thingworx.com/mvnrepo </url>
当我 运行 mvn package
我得到这个错误。知道如何解决这个问题吗?
Downloaded: https://repo.maven.apache.org/maven2/junit/junit/4.4/junit-4.4.pom (2 KB at 4.0 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:28 min
[INFO] Finished at: 2015-10-26T21:57:51-05:00
[INFO] Final Memory: 9M/222M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project temperature-thing: Could not resolve dependencies for project com.ptcmanaged.thingworx:temperature-thing:jar:1.0-SNAPSHOT: Failed to collect dependencies at com.thingworxs:thingworx-common:jar:5.0.0: Failed to read artifact descriptor for com.thingworxs:thingworx-common:jar:5.0.0: Could not transfer artifact com.thingworxs:thingworx-common:pom:5.0.0 from/to ptc-managed-services-public (https://maker01.ptcmanaged.com/mvnrepo): Connect to maker01.ptcmanaged.com:443 [maker01.ptcmanaged.com/54.173.81.52] failed: Operation timed out -> [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/DependencyResolutionException
dyn-72-33-222-204:temperature-thing mona$ pwd
/Users/mona/iotlab/raspberry/temperature-thing
dyn-72-33-222-204:temperature-thing mona$ ls
README.md bin conf pom.xml src
dyn-72-33-222-204:temperature-thing mona$
无法执行项目温度事物的目标:无法解析项目 com.ptcmanaged.thingworx:temperature-thing:jar:1.0-SNAPSHOT 的依赖关系:
无法收集位于 com.thingworxs 的依赖项:thingworx-common:jar:5.0.0:
无法读取 com.thingworxs 的工件描述符:thingworx-common:jar:5.0.0:
无法传输工件 com.thingworxs:thingworx-common:pom:5.0.0 from/to ptc-managed-services-public (https://maker01.ptcmanaged.com/mvnrepo):
连接到 maker01.ptcmanaged.com:443 [maker01.ptcmanaged.com/54.173.81.52] 失败:操作超时 -> [帮助 1]
需要在本地安装jar,修改注释下的pom.xml文件: 在这里,mvnrepo 的新 URL 应该是:http://maker01.clould.thingworx.com/mvnrepo i believe that the current URL is now http://maker01.ptcmanaged.com/mvnrepo
vi pom.xml
<!--<url>https://maker01.ptcmanaged.com/mvnrepo</url>-->
<url>http://maker01.cloud.thingworx.com/mvnrepo </url>
谢谢
打开 pom.xml
文件并通过在文件中搜索 maker01
删除此行:
<url>https://maker01.ptcmanaged.com/mvnrepo</url>
并在同一位置添加此行:
<url>http://maker01.cloud.thingworx.com/mvnrepo </url>