2017-05-02 13 views
-1

私はmulesoftで現在より新しくなっています。依存関係の問題に直面していますが、すべての依存関係がpomファイルで利用可能です。mulesoft依存関係エラー

[ERROR] Failed to execute goal on project panduit-sapi-01: Could not resolve dependencies for project com.panduit:panduit-sapi-01:mule:1.0.0-SNAPSHOT: Failed to collect dependencies at com.mulesoft.anypoint:api-gateway-client:jar:3.8.3: Failed to read artifact descriptor for com.mulesoft.anypoint:api-gateway-client:jar:3.8.3: Could not transfer artifact com.mulesoft.anypoint:api-gateway-extensions:pom:3.8.3 from/to mule-ee-releases (https://repository-master.mulesoft.org/nexus/content/repositories/releases-ee/): Not authorized , ReasonPhrase:Unauthorized. -> [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 
+0

次のリンクを確認してください。http://stackoverflow.com/questions/43627366/can-not-build-the-project-after-upgrading-to-mule-version-3-8-4-to-3- 7-4/43633297#43633297 –

答えて

2

エンタープライズリポジトリで構成されるMaven Nexusのアカウントが必要です。ライセンスを購入するとアカウントが提供されます。資格を取得したら、それをMavenのsetting.xmlに追加します。続行するために資格を追加する方法については、以下の

参照参照は、

https://books.sonatype.com/nexus-book/reference/_adding_credentials_to_your_maven_settings.html

、エンタープライズ・リポジトリを削除し、すべてが正常に動作するはずです。

+0

ありがとうございました –

0

お試しください。

<repositories> 
      <repository> 
      <id>Central</id> 
      <name>Central</name> 
      <url>http://repo1.maven.org/maven2/</url> 
      <layout>default</layout> 
     </repository> 
     <repository> 
      <id>mulesoft-releases</id> 
      <name>MuleSoft Releases Repository</name> 
      <url>http://repository.mulesoft.org/releases/</url> 
      <layout>default</layout> 
     </repository> 
    </repositories> 
    <pluginRepositories> 
     <pluginRepository> 
      <id>mulesoft-release</id> 
      <name>mulesoft release repository</name> 
      <layout>default</layout> 
      <url>http://repository.mulesoft.org/releases/</url> 
      <snapshots> 
       <enabled>false</enabled> 
      </snapshots> 
     </pluginRepository> 
    </pluginRepositories> 
-1

インストール済みのJREの環境設定を1.8 JDKに設定してみてください。それは問題を解決するはずです。

+0

これをやってみましたか? – Ashish

+0

エラーログを注意深く見ると、 "artifact com.mulesoft.anypoint:api-gateway-extensions:pom:3.8.3を/からmule-ee-releases(https:// repository)に転送できませんでした[ヘルプ1] " これは、受け入れられた回答で既に指摘されているように、Repoアクセスに関連することを示唆しています。 –

-1

すべての* -ee.jar依存関係は、ライセンスで利用できます。ライセンスを購入して、設定XMLにライセンスキーを含めるようにしてください。