0

我已经在“RPM as Secondary Artifact”样式配置中实现了 maven rpm 插件(http://mojo.codehaus.org/rpm-maven-plugin/usage.html

    <execution>
        <id>attach-rpm</id>
        <phase>deploy</phase>
        <goals>
            <goal>attached-rpm</goal>
        </goals>
    </execution>

我们在父级中配置了分发管理,这可以很好地部署战争。

rpm 已创建,但不会上传到 nexus。

我被要求在部署阶段调用 rpm 插件。这可能是rpm没有上传到nexus的原因吗?是否必须在打包期间创建?

4

1 回答 1

0

You indeed answered your question. The rpm needs to be created as part of the packaging phase so that is available during the deploy phase. Likely what is occurring is that the actual deploy work of pushing out to the repository is occurring before the rpm plugin is being invoked.

于 2015-01-02T14:50:31.290 回答