maven打包移动文件
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<id>mvn-copy-file</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<configuration>
<tasks>
<!--<delete dir="${basedir}/target" />-->
<mkdir dir="${basedir}/target/${project.name}"/>
<mkdir dir="${basedir}/target/${project.name}/bin"/>
<copy todir="${basedir}/target/${project.name}">
<fileset dir="${basedir}/target/" includes="*.jar"/>
</copy>
<copy todir="${basedir}/target/${project.name}/bin">
<fileset dir="${basedir}/bin/" includes="*.sh"/>
</copy>
</tasks>
</configuration>
</plugin>
本文标题:maven打包移动文件
本文链接:https://www.haomeiwen.com/subject/kmxcmctx.html
网友评论