你好,

不需要将所有的依赖都改为snapshot,仅需要将我们项目内的版本加上 snapshot 后缀。
可以在项目中统一替换版本号 1.x.x -> 1.x.x-SNAPSHOT,或者使用 mvn versions:set 
-DnewVersion=1.x.x-SNAPSHOT 设置。


> 2023年8月2日 下午2:25,jinzhuguang <jinzhuguan...@163.com> 写道:
> 
> 非常感谢你的提醒,我现在用maven工具修改了所有的版本号为snapshot,但是flink-connectors(connectors的父模块)也变成snapshot,打包的时候仓库里找不到他了,而且也没法想flink-runtime这些包手动改下版本好,这种该怎么办
> 
>> 2023年7月27日 11:05,Jiabao Sun <jiabao....@xtransfer.cn.INVALID> 写道:
>> 
>> 你好,
>> 
>> 通常在 pom 中引入 maven-deploy-plugin,并且通过 <distributionManagement> 声明私服地址,使用 mvn 
>> clean deploy 命令部署到nexus私服。
>> 部署到 SNAPSHOT 仓库需要项目版本号包含 -SNAPSHOT 后缀,可以在IDE中全局替换,也可以使用 
>> versions-maven-plugin 统一设置。
>> 
>> <project>
>>   <build>
>>       <plugins>
>>           <plugin>
>>              <groupId>org.apache.maven.plugins</groupId>
>>              <artifactId>maven-deploy-plugin</artifactId>
>>              <version>2.8.2</version>
>>              <configuration>
>>                <skip>${maven.deploy.skip}</skip>
>>              </configuration>
>>            </plugin>
>>       </plugins>
>>   </build>
>> 
>>   <distributionManagement>
>>       <snapshotRepository>
>>           <id>private-snapshots</id>
>>           
>> <url>https://xxx.xxx.xxx/nexus/content/repositories/snapshots/</url>
>>       </snapshotRepository>
>>       <repository>
>>           <id>private-releases</id>
>>           <url>https://xxx.xxx.xxx/nexus/content/repositories/releases/</url>
>>       </repository>
>>   </distributionManagement>
>> </project>
>> 
>> 
>>> 2023年7月27日 上午10:48,jinzhuguang <jinzhuguan...@163.com> 写道:
>>> 
>>> 我是基于flink 1.16.0开发的,由于版本号没有snapshot,现在又无法发布release版本的,我该怎么办?

回复