META-INF.maven.com.starmcc.qm-data.pom.xml Maven / Gradle / Ivy
<?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> <name>qm-data</name> <groupId>com.starmcc</groupId> <artifactId>qm-data</artifactId> <version>2.2.0-RELEASE</version> <url>https://github.com/starmcc/qm-data</url> <description>qm-data</description> <properties> <jdk.version>1.8</jdk.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <mybatis-spring-boot-starter.version>2.1.3</mybatis-spring-boot-starter.version> <cglib.version>2.2.2</cglib.version> <slf4j-api.version>1.7.25</slf4j-api.version> </properties> <!-- oss上传maven配置 --> <parent> <groupId>org.sonatype.oss</groupId> <artifactId>oss-parent</artifactId> <version>8</version> </parent> <!-- licenses证书 --> <licenses> <license> <name>The Apache Software License, Version 2.0</name> <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> </license> </licenses> <!-- scm --> <scm> <url>https://github.com/starmcc/qm-data</url> <connection>https://github.com/starmcc/qm-data.git</connection> <developerConnection>https://github.com/starmcc/</developerConnection> </scm> <!-- 开发者信息 --> <developers> <developer> <name>qm</name> <email>[email protected]</email> <url>https://www.starmcc.com</url> </developer> </developers> <!-- oss提交maven --> <distributionManagement> <repository> <id>ossrh</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> </repository> <snapshotRepository> <id>ossrh</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> </distributionManagement> <!-- 打包相关 --> <build> <resources> <resource> <directory>src/main/java</directory> <!--配置添加xml,mybatis的xml需要打包--> <includes> <include>**/*.xml</include> </includes> </resource> </resources> <plugins> <!-- java版本 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>${jdk.version}</source> <target>${jdk.version}</target> <encoding>${project.build.sourceEncoding}</encoding> </configuration> </plugin> <!-- javadoc --> <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> <!-- 该处屏蔽jdk1.8后javadoc的严格校验 --> <configuration> <additionalparam>-Xdoclint:none</additionalparam> </configuration> </execution> </executions> </plugin> <!-- 源码插件 --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </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> <!-- 依赖库 --> <dependencies> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>${mybatis-spring-boot-starter.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>${slf4j-api.version}</version> <scope>compile</scope> <optional>true</optional> </dependency> </dependencies> </project>