windows在pom中执行move

windows在pom中执行move

 <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.8</version>
                <executions>
                    <execution>
                        <phase>generate-resources</phase>
                        <configuration>
                            <tasks>
                                <echo>Executing move command on Windows</echo>
                                <exec executable="cmd" dir="${basedir}">
                                    <arg value="/c"/>
                                    <arg value="move"/>
                                    <arg value="target/webinfo-obfuscated.jar"/>
                                    <arg value="target/${project.build.finalName}.jar"/>
                                </exec>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>


文/程忠 浏览次数:0次   2024-07-19 20:25:26

相关阅读


评论:
点击刷新

↓ 广告开始-头部带绿为生活 ↓
↑ 广告结束-尾部支持多点击 ↑