core-spring-boot-starter
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>io.github.ForteScarlet.simple-robot</groupId> <artifactId>core-spring-boot-starter</artifactId> <version>1.15.0</version> </dependency>
<?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"> <modelVersion>4.0.0</modelVersion> <packaging>jar</packaging> <parent> <groupId>org.sonatype.oss</groupId> <artifactId>oss-parent</artifactId> <version>7</version> </parent> <groupId>io.github.ForteScarlet.simple-robot</groupId> <artifactId>core-spring-boot-starter</artifactId> <!-- version 1.15.0 20/7/4 --> <version>1.15.0</version> <properties> <core.version>1.15.2</core.version> <spring-boot-starter.version>2.2.8.RELEASE</spring-boot-starter.version> </properties> <dependencies> <!-- springboot starter --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter</artifactId> <version>${spring-boot-starter.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/io.github.ForteScarlet/simple-robot-core --> <!-- 1.13.x中的最高版本: 1.13.2 --> <!-- 1.11.x中的最高版本: 1.11.2 --> <!-- 1.10.x中的最高版本: 1.10.7 --> <!-- 1.9.x中的最高版本: 1.9.0 --> <dependency> <groupId>io.github.ForteScarlet</groupId> <artifactId>simple-robot-core</artifactId> <version>${core.version}</version> </dependency> </dependencies> <scm> <url>https://github.com/ForteScarlet/simple-robot-core-springboot-starter</url> </scm> <build> <!--<pluginManagement>--> <plugins> <!-- maven仓库相关插件 --> <!-- (1) deploy插件 --> <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> <executions> <execution> <id>default-deploy</id> <phase>deploy</phase> <goals> <goal>deploy</goal> </goals> </execution> </executions> </plugin> <!-- (2)sonatype的staging插件 --> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.7</version> <extensions>true</extensions> <configuration> <serverId>oss</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> <!-- (3)SCM插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-plugin</artifactId> <version>1.8.1</version> </plugin> <!-- (4)release插件,下面checkModificationExcludes是排除一些目录文件不要发布。 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-release-plugin</artifactId> <version>2.5.3</version> <configuration> <mavenExecutorId>forked-path</mavenExecutorId> <useReleaseProfile>false</useReleaseProfile> <arguments>-Psonatype-oss-release</arguments> <pushChanges>false</pushChanges> <localCheckout>false</localCheckout> <autoVersionSubmodules>true</autoVersionSubmodules> <checkModificationExcludes> <checkModificationExclude>.idea/</checkModificationExclude> <checkModificationExclude>.idea/*</checkModificationExclude> <checkModificationExclude>test/</checkModificationExclude> <checkModificationExclude>test/*</checkModificationExclude> <checkModificationExclude>.idea/libraries/*</checkModificationExclude> <checkModificationExclude>pom.xml</checkModificationExclude> <checkModificationExclude>release-pom.xml</checkModificationExclude> <checkModificationExclude>jdonframework.iml</checkModificationExclude> <checkModificationExclude>JdonAccessory/jdon-hibernate3x/jdon-hibernate3x.iml</checkModificationExclude> <checkModificationExclude>JdonAccessory/jdon-jdbc/jdon-jdbc.iml</checkModificationExclude> <checkModificationExclude>JdonAccessory/jdon-remote/jdon-remote.iml</checkModificationExclude> <checkModificationExclude>JdonAccessory/jdon-struts1x/jdon-struts1x.iml</checkModificationExclude> </checkModificationExcludes> </configuration> <dependencies> <dependency> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-scm-plugin</artifactId> <version>1.8.1</version> </dependency> </dependencies> </plugin> <!-- 第2步:生成Javadoc和Source jar文件,您必须配置javadoc和源Maven插件。 在pom.xml的build一级目录下的plugins里面加入下面: --> <!-- java 版本 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>8</source> <target>8</target> </configuration> </plugin> <!-- java源码 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>2.2.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar-no-fork</goal> </goals> </execution> </executions> </plugin> <!-- javadoc --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.9.1</version> <configuration> <encoding>UTF-8</encoding> <aggregate>true</aggregate> <charset>UTF-8</charset> <docencoding>UTF-8</docencoding> </configuration> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> <configuration> <additionalparam>-Xdoclint:none</additionalparam> </configuration> </execution> </executions> </plugin> <!-- 第3步:进行GPG签名加密, 这是对生成的jar包,javadoc包等进行签名加密, 保证你的文件上传到服务器过程中不会被拦截和破解安全,服务器那边使用你提供的密钥对进行解密。 在pom.xml的build一级目录下的plugins里面加入下面: --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.5</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> </plugins> <!--</pluginManagement>--> </build> <!-- maven相关配置 --> <licenses> <license> <name>The Apache License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> </license> </licenses> <!-- 开发者信息 --> <developers> <developer> <!-- SCM里项目开发者的唯一标识符 --> <!--<id> HELLO WORLD </id>--> <!-- 项目开发者的主页的URL --> <!--<url></url>--> <!-- 项目开发者在项目中扮演的角色,角色元素描述了各种角色 --> <roles> <role>a single programmer</role> </roles> <!-- 项目开发者所属组织 --> <!--<organization> demo </organization>--> <!-- 项目开发者所属组织的URL --> <!--<organizationUrl> http://hi.baidu.com/xxx </organizationUrl>--> <!-- 项目开发者属性,如即时消息如何处理等 --> <!--<properties>--> <!--<dept> No </dept>--> <!--</properties>--> <!-- 项目开发者所在时区, -11到12范围内的整数。 --> <timezone>+8</timezone> <!-- 项目开发者的全名 --> <name>ForteScarlet</name> <!-- 项目开发者的email --> <email>ForteScarlet@163.com</email> </developer> </developers> <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> <profiles> <profile> <id>release</id> <build> <plugins> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.7</version> <extensions>true</extensions> <configuration> <serverId>oss</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.5</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project>