【问题标题】:Missing github maven plugin artifact缺少 github maven 插件工件
【发布时间】:2013-03-12 17:49:15
【问题描述】:

工具:

Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500) Maven 主页: /usr/share/maven Java 版本:1.6.0_43,供应商:Apple Inc. Java 主页: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home 默认语言环境:en_US,平台编码:MacRoman 操作系统名称:“mac os x”,版本:“10.8.3”,拱:“x86_64”,家庭:“mac”

我按照documentation 中的指定设置了 settings.xml 和 pom.xml,然后运行了命令:

mvn clean install ghDownloads:upload

但是抛出了以下错误:

在当前项目中找不到前缀“ghDownloads”的插件 插件组...

之后,我在公司的 Nexus 存储库中查找,但找不到该工件。 ghDownloads 驻留在哪里?

【问题讨论】:

    标签: maven github maven-3 maven-plugin


    【解决方案1】:

    我只需将以下内容放入 pom.xml:

            <plugin>
                <groupId>com.github.github</groupId>
                <artifactId>downloads-maven-plugin</artifactId>
                <version>0.5</version>
                <configuration>
                    <description>${project.version} release of ${project.name}</description>
                    <override>true</override>
                    <includeAttached>true</includeAttached>
                </configuration>
            </plugin>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-01-04
      • 2013-07-12
      • 1970-01-01
      • 2015-05-08
      • 1970-01-01
      • 1970-01-01
      • 2023-04-02
      • 2016-09-13
      相关资源
      最近更新 更多