作者 shenhailong

docker 复制jar包到dacker目录 部署

正在显示 1 个修改的文件 包含 17 行增加0 行删除
@@ -149,6 +149,23 @@ @@ -149,6 +149,23 @@
149 <verbose>true</verbose> 149 <verbose>true</verbose>
150 </configuration> 150 </configuration>
151 </plugin> 151 </plugin>
  152 +
  153 + <plugin>
  154 + <artifactId>maven-antrun-plugin</artifactId>
  155 + <executions> <execution>
  156 + <id>gen-webadmin</id>
  157 + <phase>package</phase>
  158 + <configuration>
  159 + <tasks>
  160 + <copy todir="docker" file="target/${project.artifactId}-${project.version}.${project.packaging}" />
  161 + </tasks>
  162 + </configuration>
  163 + <goals>
  164 + <goal>run</goal>
  165 + </goals>
  166 + </execution>
  167 + </executions>
  168 + </plugin>
152 </plugins> 169 </plugins>
153 </build> 170 </build>
154 171