您的位置:首页 > 其它

Maven构建成功后复制jar包到指定位置插件

2015-12-26 11:20 309 查看
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.8</version>
<executions>
<execution>
<id>deploy</id>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<property name="servicemix_path" value="D:/apache-servicemix-5.4.0/deploy" />
<property name="target_file" value="${project.artifactId}-${project.version}.jar" />
<echo message="servicemix_path: ${servicemix_path}" />
<echo message="file: ${target_file}" />
<delete file="${servicemix_path}/${target_file}"></delete>
<copy file="target/${target_file}" todir="${servicemix_path}/" />
</target>
</configuration>
</execution>
</executions>
</plugin>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: