db-query-spring-boot-autoconfigure
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.jntoo</groupId> <artifactId>db-query-spring-boot-autoconfigure</artifactId> <version>1.2.20</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> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.3.12.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.jntoo</groupId> <artifactId>db-query-spring-boot-autoconfigure</artifactId> <version>1.2.20</version> <properties> <module.version>1.2.20</module.version> <project.release.version>${module.version}-SNAPSHOT</project.release.version> <maven.compiler.source>8</maven.compiler.source> <maven.compiler.target>8</maven.compiler.target> <module.name>com.jntoo.db.query.spring.boot.autoconfigure</module.name> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-autoconfigure-processor</artifactId> <optional>true</optional> <!--SpringBoot版本自选,本文使用的是SpringBoot2.7.0--> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> <dependency> <groupId>com.jntoo</groupId> <artifactId>db-query</artifactId> <version>${module.version}</version> </dependency> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.25</version> </dependency> </dependencies> <build> <plugins> <!-- 要生成Javadoc和Source jar文件,您必须配置javadoc和源Maven插件 --> <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> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>2.1</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>2.9.1</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> <configuration> <encoding>utf8</encoding> </configuration> </plugin> <!-- 必须配置GPG插件用于使用以下配置对组件进行签名 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.5</version> <configuration> <!-- <skip>true</skip>--> </configuration> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.sonatype.central</groupId> <artifactId>central-publishing-maven-plugin</artifactId> <version>0.4.0</version> <extensions>true</extensions> <configuration> <!-- 这里的serverId是之前在本地settings.xml中配置的<server><id>标签值(上述三(1)步骤) --> <publishingServerId>releases</publishingServerId> <tokenAuth>true</tokenAuth> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>deploy-to-sonatype</id> <!-- 更清晰的命名 --> <distributionManagement> <repository> <id>releases</id> <url>https://s01.oss.sonatype.org/content/repositories/releases/</url> </repository> <snapshotRepository> <id>snapshot</id> <url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url> </snapshotRepository> </distributionManagement> </profile> <profile> <id>deploy-to-aliyun</id> <!-- 更清晰的命名 --> <distributionManagement> <repository> <id>rdc-releases</id> <url>https://packages.aliyun.com/maven/repository/2130996-release-AYEHun/</url> </repository> <snapshotRepository> <id>rdc-snapshots</id> <url>https://packages.aliyun.com/maven/repository/2130996-snapshot-ryJBes/</url> </snapshotRepository> </distributionManagement> </profile> </profiles> </project>