7

maven-deployコマンドを使用してプラグインをリモート リポジトリにデプロイする際に問題が発生しています。Release プラグインの最新バージョン (2.0.2) をインストールしました。

次のエラーが表示されます。

| Loading Grails 2.0.4
| Configuring classpath.
| Environment set to development.....
| Packaging Grails application.....
| Compiling 33 GSP files for package [myPackage].....
| Plugin packaged grails-plugin-myPlugin.jar
| Skipping POM generation because 'pom.xml' exists in the root of the project..
| Error Error executing script MavenDeploy: : Error downloading wagon provider from the remote repository: Missing:
----------
1) org.apache.maven.wagon:wagon-http:jar:1.0-beta-2
Try downloading the file manually from the project website.
Then, install it using the command: 
  mvn install:install-file -DgroupId=org.apache.maven.wagon -DartifactId=wagon-http -Dversion=1.0-beta-2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there: 
  mvn deploy:deploy-file -DgroupId=org.apache.maven.wagon -DartifactId=wagon-http -Dversion=1.0-beta-2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency: 
1) unspecified:unspecified:jar:0.0
2) org.apache.maven.wagon:wagon-http:jar:1.0-beta-2
----------
1 required artifact is missing.

for artifact: 
 unspecified:unspecified:jar:0.0
from the specified remote repositories:
 central (http://repo1.maven.org/maven2)
(Use --stacktrace to see the full trace)

ご協力いただきありがとうございます

4

3 に答える 3

1

私は同じ問題を抱えていて、この方法で処理できました:

  • Maven2 をインストールする
  • こちらの説明に従ってプロキシを構成します

これはあなたの問題を解決するのに十分です。

Maven サーバーで認証が必要な場合は、こちらまたはこちらの説明に従って進めることができます

~/.m2/settings.xml:

<settings>
  <proxies>
   <proxy>
      <active>true</active>
      <protocol>http</protocol>
      <host>proxyserver.mydomain.com</host>
      <port>8080</port>
      <username>user</username>
      <password>pass</password>
      <nonProxyHosts>*.bla.com.br|*.blabla.biz</nonProxyHosts>
    </proxy>
  </proxies>
  <servers>
    <server>
      <id>myrepo</id>
      <username>user</username>
      <password>pass</password>
    </server>
  </servers>
</settings>
于 2013-03-21T19:05:23.127 に答える
0

これはMavenの問題のようです:

Maven が必要な依存関係 org.apache.maven.wagon:wagon-http:jar:1.0-beta-2http://repo1.maven.org/maven2からダウンロードできない

必要なアーティファクトはMaven セントラルで見つけることができるため、これはネットワークの問題の結果である可能性があります

于 2012-06-06T07:36:56.257 に答える