2021-02-01 12:49:12 +08:00
|
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
|
<parent>
|
|
|
|
|
<artifactId>blade-ops</artifactId>
|
|
|
|
|
<groupId>org.springblade</groupId>
|
2023-09-12 02:00:24 +08:00
|
|
|
|
<version>3.7.0</version>
|
2021-02-01 12:49:12 +08:00
|
|
|
|
</parent>
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
|
|
<artifactId>blade-swagger</artifactId>
|
|
|
|
|
<name>${project.artifactId}</name>
|
|
|
|
|
<version>${blade.project.version}</version>
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.springblade</groupId>
|
|
|
|
|
<artifactId>blade-core-launch</artifactId>
|
|
|
|
|
<version>${blade.tool.version}</version>
|
|
|
|
|
</dependency>
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
|
|
|
<artifactId>knife4j-aggregation-spring-boot-starter</artifactId>
|
|
|
|
|
</dependency>
|
2023-04-29 22:03:24 +08:00
|
|
|
|
<!--Mac M1笔记本会报错,参考:https://github.com/netty/netty/issues/11020-->
|
|
|
|
|
<!--<dependency>
|
|
|
|
|
<groupId>io.netty</groupId>
|
|
|
|
|
<artifactId>netty-resolver-dns-native-macos</artifactId>
|
|
|
|
|
<version>${netty.resolver.version}</version>
|
|
|
|
|
<classifier>osx-aarch_64</classifier>
|
|
|
|
|
</dependency>-->
|
2021-02-01 12:49:12 +08:00
|
|
|
|
</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>
|