sba-svr
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.github.rebue.scx.sba</groupId> <artifactId>sba-svr</artifactId> <version>3.3.2</version> </dependency>
<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/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.3.1</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.github.rebue.scx.sba</groupId> <artifactId>sba-svr</artifactId> <version>3.3.2</version> <name>Spring Boot Admin</name> <description>Spring Boot Admin</description> <properties> <docker.image.prefix>nnzbz</docker.image.prefix> <wheel.version>3.5.45</wheel.version> </properties> <dependencyManagement> <dependencies> <dependency> <groupId>com.github.rebue.scx.sba</groupId> <artifactId>sba</artifactId> <version>${project.version}</version> <type>pom</type> <scope>import</scope> </dependency> <dependency> <groupId>com.github.rebue.wheel</groupId> <artifactId>wheel</artifactId> <version>${wheel.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <dependencies> <dependency> <groupId>de.codecentric</groupId> <artifactId>spring-boot-admin-starter-server</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-consul-discovery</artifactId> </dependency> </dependencies> <url>https://github.com/rebue/scx</url> <developers> <developer> <name>zhangbaizi</name> <email>nnzbz@163.com</email> </developer> </developers> <licenses> <license> <name>MIT License</name> <url>https://www.opensource.org/licenses/mit-license.php</url> </license> </licenses> <scm> <connection>scm:git:https://github.com/rebue/scx</connection> <developerConnection>scm:git:https://github.com/rebue/scx.git</developerConnection> <url>https://github.com/rebue/scx.git</url> </scm> <build> <plugins> <!-- SpringBoot服务项目打包插件,会分全包和原始包,并且会配置MANIFEST.MF文件设置运行的主类 --> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> </plugin> <!-- 制作docker镜像的插件 --> <plugin> <groupId>com.spotify</groupId> <artifactId>dockerfile-maven-plugin</artifactId> <version>1.4.13</version> <executions> <execution> <id>default</id> <!-- 绑定到install阶段执行 --> <!-- <phase>install</phase>--> <!-- 不绑定到任何阶段,也就不会执行 --> <phase>none</phase> <goals> <goal>build</goal> <goal>push</goal> </goals> </execution> </executions> <configuration> <!-- 此选项指定在settings.xml文件中设置的server --> <useMavenSettingsForAuth>true</useMavenSettingsForAuth> <!-- 发布到仓库,${docker.host}在settings.xml中统一配置 --> <repository>${docker.host}/${docker.image.prefix}/${project.artifactId}</repository> <tag>${project.version}</tag> <buildArgs> <JAR_FILE>${project.build.finalName}.jar</JAR_FILE> <VERSION>${project.version}</VERSION> </buildArgs> <verbose>true</verbose> <googleContainerRegistryEnabled>false</googleContainerRegistryEnabled> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>deploy-private</id> <!-- 部署私服 --> <distributionManagement> <snapshotRepository> <id>my-snapshots</id> <name>my-snapshots</name> <url>${my-repository.url}</url> <uniqueVersion>true</uniqueVersion> </snapshotRepository> <repository> <id>my-releases</id> <name>my-releases</name> <url>${my-repository.url}</url> </repository> </distributionManagement> </profile> <profile> <id>deploy-public</id> <!-- 部署中央仓库 --> <distributionManagement> <snapshotRepository> <id>oss</id> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> </snapshotRepository> <repository> <id>oss</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> </distributionManagement> <build> <plugins> <!-- 创建源码包 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.3.0</version> <executions> <execution> <phase>package</phase> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <!-- 创建文档包 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.6.0</version> <executions> <execution> <phase>package</phase> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <!-- 部署时用GPG数字签名 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>3.2.7</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> <configuration> <!-- 指定密钥的名称(可能会有多个生成的密钥) --> <keyname>${gpg.keyname}</keyname> <!-- 如果gpg服务有密钥,在settings.xml文件中配置 --> <passphraseServerId>${gpg.keyname}</passphraseServerId> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>