⚡ blade-report增加打包配置
This commit is contained in:
parent
256424b23b
commit
47ac4ec98c
|
|
@ -34,4 +34,49 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.spotify</groupId>
|
||||||
|
<artifactId>docker-maven-plugin</artifactId>
|
||||||
|
<version>${docker.plugin.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<imageName>${docker.registry.url}/blade/${project.artifactId}:${project.version}</imageName>
|
||||||
|
<dockerDirectory>${project.basedir}</dockerDirectory>
|
||||||
|
<dockerHost>${docker.registry.host}</dockerHost>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<targetPath>/</targetPath>
|
||||||
|
<directory>${project.build.directory}</directory>
|
||||||
|
<include>${project.build.finalName}.jar</include>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
|
<registryUrl>${docker.registry.url}</registryUrl>
|
||||||
|
<serverId>${docker.registry.url}</serverId>
|
||||||
|
<pushImage>true</pushImage>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-antrun-plugin</artifactId>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>run</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<tasks>
|
||||||
|
<!--suppress UnresolvedMavenProperty -->
|
||||||
|
<copy overwrite="true"
|
||||||
|
tofile="${session.executionRootDirectory}/target/${artifactId}.jar"
|
||||||
|
file="${project.build.directory}/${artifactId}.jar" />
|
||||||
|
</tasks>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ base(){
|
||||||
|
|
||||||
#启动程序模块
|
#启动程序模块
|
||||||
modules(){
|
modules(){
|
||||||
docker-compose up -d blade-gateway1 blade-gateway2 blade-admin blade-auth1 blade-auth2 blade-user blade-desk blade-system blade-log
|
docker-compose up -d blade-gateway1 blade-gateway2 blade-admin blade-auth1 blade-auth2 blade-user blade-desk blade-system blade-log blade-report
|
||||||
}
|
}
|
||||||
|
|
||||||
#关闭所有模块
|
#关闭所有模块
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user