作为我的 Maven 构建的一部分,我想采取目标和
mv current_target_snapshot_123 current_target
请问这怎么做?
作为我的 Maven 构建的一部分,我想采取目标和
mv current_target_snapshot_123 current_target
请问这怎么做?
我会使用以下组合:
我知道有两种解决方案:
带有嵌入式 Groovy 脚本的GMaven插件
<plugin>
    <groupId>org.codehaus.gmaven</groupId>
    <artifactId>gmaven-plugin</artifactId>
    <executions>
        <execution>
            <phase>generate-resources</phase>
            <goals>
                <goal>execute</goal>
            </goals>
            <configuration>
                <source>
                new File('somefilename').renameTo('someotherfilename');
                </source>
            </configuration>
        </execution>
    </executions>
</plugin>
您可以使用maven-dependency-plugin将副本复制到不同的位置并剥离工件的版本。