ln-common
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.github.bakerln</groupId>
<artifactId>ln-common</artifactId>
<version>1.0.2-RELEASE</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>
<groupId>com.github.bakerln</groupId>
<artifactId>ln-common</artifactId>
<packaging>pom</packaging>
<version>1.0.2-RELEASE</version>
<url>https://github.com/bakerln/ln-common</url>
<name>ln-common</name>
<description>a java framework for dev project</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>https://www.apache.org/licenses/LICENSE-2.0</url>
</license>
</licenses>
<developers>
<developer>
<name>Linan</name>
<email>linan.groot@outlook.com</email>
<organization>CARS</organization>
<roles>
<role>Project lead</role>
</roles>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/bakerln/ln-common.git</connection>
<url>git:https://github.com/bakerln/ln-common</url>
</scm>
<modules>
<module>common-eureka</module>
<module>common-framework</module>
<module>common-config</module>
<module>common-i18n</module>
<module>common-gateway</module>
</modules>
<properties>
<!-- 编译打包配置参数 -->
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- springboot基础依赖版本 -->
<spring-boot.version>2.3.2.RELEASE</spring-boot.version>
<!--springcloud基础配置-->
<spring-cloud.version>Hoxton.SR4</spring-cloud.version>
<!--<eureka-server.version>1.4.7.RELEASE</eureka-server.version>-->
<!-- spring基础依赖版本 -->
<spring.version>5.2.8.RELEASE</spring.version>
<!--工具依赖-->
<swagger.version>2.9.2</swagger.version>
<swagger.markup>1.3.3</swagger.markup>
<swagger.ui>1.9.6</swagger.ui>
<lombok.version>1.18.12</lombok.version>
<hutool.version>5.5.7</hutool.version>
<!--数据库-->
<mybatis-spring-boot-starter>2.1.4</mybatis-spring-boot-starter>
<druid-spring-boot-starter>1.2.5</druid-spring-boot-starter>
<!--plugins-->
<maven.compiler.plugin>3.8.1</maven.compiler.plugin>
<maven.source.plugin>3.0.0</maven.source.plugin>
<maven.surefire.plugin>2.12.4</maven.surefire.plugin>
<maven-shade-plugin>3.1.1</maven-shade-plugin>
<maven.javadoc.plugin>2.10.4</maven.javadoc.plugin>
<asciidoctor.maven.plugin>1.5.6</asciidoctor.maven.plugin>
<asciidoctorj.pdf>1.5.0-alpha.16</asciidoctorj.pdf>
<jruby.complete>1.7.21</jruby.complete>
<!--定义参数-->
<swagger.output.file>${project.build.directory}/swagger/adoc/InfaceDocument</swagger.output.file>
<swagger.output.dir>${project.build.directory}/swagger/adoc</swagger.output.dir>
<swagger.output.pdf.dir>${project.build.directory}/swagger/pdf</swagger.output.pdf.dir>
<swagger.output.html.dir>${project.build.directory}/swagger/html</swagger.output.html.dir>
<charset>UTF-8</charset>
<!--gpg-->
<gpg.executable>D:\software\gpg\GnuPG\bin\gpg.exe</gpg.executable>
</properties>
<distributionManagement>
<snapshotRepository>
<id>snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>releases</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
</distributionManagement>
<dependencyManagement>
<dependencies>
<!-- spring Boot-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>${spring-cloud.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- lombok -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>compile</scope>
</dependency>
<!--日常转换工具,https://www.hutool.cn/docs-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
<scope>compile</scope>
</dependency>
<!-- springfox -->
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger2</artifactId>
<version>${swagger.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>${swagger.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.github.xiaoymin</groupId>
<artifactId>swagger-bootstrap-ui</artifactId>
<version>${swagger.ui}</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-bean-validators</artifactId>
<version>${swagger.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>io.github.swagger2markup</groupId>
<artifactId>swagger2markup</artifactId>
<version>${swagger.markup}</version>
<scope>compile</scope>
</dependency>
<!--数据库-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot-starter}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>${druid-spring-boot-starter}</version>
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>aliyun</id>
<name>*</name>
<url>https://maven.aliyun.com/repository/central</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>jcentral</id>
<name>bintray</name>
<url>https://jcenter.bintray.com</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>jcenter-snapshots</id>
<name>jcenter</name>
<url>https://oss.jfrog.org/artifactory/oss-snapshot-local/</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<build>
<plugins>
<!--编译版本-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${maven.compiler.plugin}</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<!--测试依赖-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.plugin}</version>
<configuration>
<!--<skipTests>true</skipTests>-->
<!--将参数传递给测试类-->
<systemPropertyVariables>
<swagger.output.file>${swagger.output.file}</swagger.output.file>
</systemPropertyVariables>
</configuration>
</plugin>
<!-- Run the generated asciidoc through Asciidoctor to generate
other documentation types, such as PDFs or HTML5 -->
<plugin>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
<version>${asciidoctor.maven.plugin}</version>
<!-- Include Asciidoctor PDF for pdf generation -->
<dependencies>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-pdf</artifactId>
<version>${asciidoctorj.pdf}</version>
</dependency>
<dependency>
<groupId>org.jruby</groupId>
<artifactId>jruby-complete</artifactId>
<version>${jruby.complete}</version>
</dependency>
</dependencies>
<!-- Configure generic document generation settings -->
<configuration>
<sourceDirectory>${swagger.output.dir}</sourceDirectory>
<!--<sourceDocumentName>${swagger.output.file}</sourceDocumentName>-->
<attributes>
<doctype>book</doctype>
<toc>left</toc>
<toclevels>3</toclevels>
<numbered></numbered>
<hardbreaks></hardbreaks>
<sectlinks></sectlinks>
<sectanchors></sectanchors>
<!--<generated>${generated.asciidoc.directory}</generated>-->
</attributes>
</configuration>
<!-- Since each execution can only handle one backend, run
separate executions for each desired output type -->
<executions>
<execution>
<id>output-html</id>
<phase>test</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>html5</backend>
<outputDirectory>${swagger.output.html.dir}</outputDirectory>
</configuration>
</execution>
<execution>
<id>output-pdf</id>
<phase>test</phase>
<goals>
<goal>process-asciidoc</goal>
</goals>
<configuration>
<backend>pdf</backend>
<outputDirectory>${swagger.output.pdf.dir}</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>releases</id>
<distributionManagement>
<snapshotRepository>
<id>snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>releases</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>${maven.source.plugin}</version>
<configuration>
<attach>true</attach>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!--doc文档-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>${maven.javadoc.plugin}</version>
<configuration>
<encoding>${charset}</encoding>
<aggregate>true</aggregate>
<charset>${charset}</charset>
<docencoding>${charset}</docencoding>
<!--<!– jdk1.8要加上,1.7要去掉,否则会报错 –>-->
<!--<additionalJOptions>-->
<!--<additionalJOption>-Xdoclint:none</additionalJOption>-->
<!--</additionalJOptions>-->
<!--增加date标签-->
<tags>
<tag>
<name>date</name>
<placement>a</placement>
</tag>
</tags>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<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>1.6</version>
<executions>
<execution>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>