我们正在使用 JDeb maven 插件来构建我们的单罐项目的 debian 包。
我们有两个 APT 存储库,一个用于预发布版本,一个用于发布版本。
我们正在使用 Wagon 插件上传工件,但我们不知道如何只将发布发送到发布存储库,并将快照发送到预发布存储库。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>wagon-maven-plugin</artifactId>
<executions>
<execution>
<id>upload-to-nexus</id>
<phase>deploy</phase>
<goals>
<goal>upload-single</goal>
</goals>
<configuration>
<serverId>xxx-all</serverId>
<fromFile>${project.build.directory}/${jdeb.name}</fromFile>
<url>https://xxx.xxx.xxx/repository/xxx-apt-pre</url>
</configuration>
</execution>
</executions>
</plugin>
我们需要将xxx-apt-pre上面的内容更改xxx-apt-dist为发布插件运行的时间。对于我的一生,我想不出办法做到这一点。
我最初尝试使用 build-helper 插件${project.build.finalName}为短语正则表达式SNAPSHOT,但它不会覆盖现有属性。
欢迎任何想法。
jeck猫
相关分类