0

工具:

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”,arch:“x86_64”,家族:“mac”

我按照文档中的说明设置了 settings.xml 和 pom.xml,然后运行了命令:

mvn clean install ghDownloads:upload

但引发了以下错误:

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

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

4

1 回答 1

0

我只需将以下内容放在 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>
于 2013-03-22T19:52:55.953 回答