无法在项目温度上执行目标:无法解决项目com.ptcmanaged.thingworx的依赖关系:温度事物

时间:2015-10-27 04:02:22

标签: xml maven jar pom.xml thingworx

当我运行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$

3 个答案:

答案 0 :(得分:1)

您需要在本地安装jar并修改注释下的pom.xml文件:                           在这里,mvnrepo的新网址应该是:http://maker01.clould.thingworx.com/mvnrepo我相信当前的网址现在是http://maker01.ptcmanaged.com/mvnrepo

vi pom.xml 
  <!--<url>https://maker01.ptcmanaged.com/mvnrepo</url>-->
  <url>http://maker01.cloud.thingworx.com/mvnrepo </url>

由于

答案 1 :(得分:0)

无法在项目温度上执行目标:无法解析项目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]失败:操作超时 - &gt; [帮助1]

答案 2 :(得分:0)

打开pom.xml文件并通过在文件中搜索maker01来删除此行:

<url>https://maker01.ptcmanaged.com/mvnrepo</url>

并在同一个地方添加此行:

<url>http://maker01.cloud.thingworx.com/mvnrepo </url>