[maven] ant 复制 移动--maven-antrun-plugin

<plugin>
	<groupId>org.apache.maven.plugins</groupId>
	<artifactId>maven-antrun-plugin</artifactId>
	<executions>
		<execution>
			<phase>package</phase>
			<goals>
				<goal>run</goal>
			</goals>
		</execution>
	</executions>
	<configuration>
		<target>
			<echo message="▄▄▄▄▄▄▄复制文件开始▄▄▄▄▄▄▄▄▄" />
			<copy todir="${project.build.directory}\migration\config">
				<fileset dir="${basedir}\config"/>
			</copy>
			<copy todir="${project.build.directory}\migration\jmwInvestMigrationLib">
				<fileset dir="${project.build.directory}\jmwInvestMigrationLib"/>
			</copy>
			<copy file="${project.build.directory}\jmwInvestMigration.jar" tofile="${project.build.directory}\migration\jmwInvestMigration.jar"/>
			<move  file="${project.build.directory}\migration\config\run.bat" tofile="${project.build.directory}\migration\run.bat"/>
			<echo message="▄▄▄▄▄▄▄复制文件结束▄▄▄▄▄▄" />
		</target>
	</configuration>
</plugin>



你可能感兴趣的:([maven] ant 复制 移动--maven-antrun-plugin)