Grails Release 插件未在远程 maven 存储库上部署插件

标签 grails maven repository grails-plugin

我在使用命令 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)

谢谢你的帮助

最佳答案

我有同样的问题,可以这样处理:

  • 安装 Maven2
  • 按照描述配置代理 here

  • 这足以解决您的问题。

    如果您的 Maven 服务器需要身份验证,您可以按照 here 的说明进行操作。或 here

    ~/.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>
    

    关于Grails Release 插件未在远程 maven 存储库上部署插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10909371/

    相关文章:

    grails - Grails资源无法使用消除缓存的CKEditor版本(4.5.5+)

    grails - Grails Spring安全性插件身份验证失败

    grails - 如何将浏览器中 View 的URL映射到一个特定名称?

    java - Travis CI 无法从 GitHub 正确地将 war 文件部署到 Azure

    maven - 从 maven 构建的 jar 运行 Apache Beam/Google Cloud Dataflow 作业

    github - Github 领先/落后指标的含义

    javascript - 针对 Grails 后端的 PhoneGap 身份验证模式

    自动生成代理背后的 Maven

    git - 自动保持次要 repo 与主要 repo 同步?

    repository - DDD 中的聚合可以有多个存储库吗?