0

実行する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$
4

3 に答える 3

1

jar をローカルにインストールし、コメントの下の pom.xml ファイルを変更する必要があります: ここで、mvnrepo への新しい URL は次のようになります: http://maker01.cloud.thingworx.com/mvnrepo現在の URL は現在http://maker01.ptcmanaged.com/mvnrepo

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

ありがとう

于 2015-10-27T09:12:56.453 に答える
0

プロジェクト temperature-thing で目標を実行できませんでした: プロジェクト 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 を ptc-managed-services-public ( https://maker01.ptcmanaged.com/mvnrepo ) との間で転送できませんでした:

maker01.ptcmanaged.com:443 [maker01.ptcmanaged.com/54.173.81.52] に接続できませんでした: 操作がタイムアウトになりました -> [ヘルプ 1]

于 2015-10-27T05:17:38.140 に答える