






















运维的通用模版可能从项目根目录获取

<plugins>
<!-- 配置Antrun插件(仅子模块需要) -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals><goal>run</goal></goals>
<configuration>
<target>
<!-- 动态复制到父项目根目录 -->
<copy
file="${project.build.directory}/${project.artifactId}-${project.version}.jar"
tofile="../target/${project.artifactId}.jar"
overwrite="true"
/>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。