|
@@ -4,18 +4,22 @@
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
<groupId>cn.com.qmth.examcloud</groupId>
|
|
|
<artifactId>examcloud-parent</artifactId>
|
|
|
- <version>v4.1.0-SNAPSHOT</version>
|
|
|
+ <version>${revision}</version>
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
|
<properties>
|
|
|
<!-- 云平台版本 -->
|
|
|
- <examcloud.version>v4.1.0-SNAPSHOT</examcloud.version>
|
|
|
+ <revision>v4.1.0-SNAPSHOT</revision>
|
|
|
<spring-boot.version>2.1.18.RELEASE</spring-boot.version>
|
|
|
<spring-cloud.version>Greenwich.SR6</spring-cloud.version>
|
|
|
- <druid.version>1.1.24</druid.version>
|
|
|
+ <maven-source-version>3.2.1</maven-source-version>
|
|
|
+ <maven-compiler-version>3.8.1</maven-compiler-version>
|
|
|
+ <maven-surefire-version>2.22.2</maven-surefire-version>
|
|
|
+ <maven-flatten-version>1.2.7</maven-flatten-version>
|
|
|
+ <maven.compiler.source>1.8</maven.compiler.source>
|
|
|
+ <maven.compiler.target>1.8</maven.compiler.target>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
- <java.version>1.8</java.version>
|
|
|
</properties>
|
|
|
|
|
|
<dependencyManagement>
|
|
@@ -35,8 +39,12 @@
|
|
|
<scope>import</scope>
|
|
|
</dependency>
|
|
|
|
|
|
-
|
|
|
<!-- 常用Jars start -->
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.alibaba</groupId>
|
|
|
+ <artifactId>druid</artifactId>
|
|
|
+ <version>1.1.24</version>
|
|
|
+ </dependency>
|
|
|
<dependency>
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
<artifactId>guava</artifactId>
|
|
@@ -119,7 +127,6 @@
|
|
|
</dependency>
|
|
|
<!-- 常用Jars end -->
|
|
|
|
|
|
-
|
|
|
<!-- Excel Jars start -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.poi</groupId>
|
|
@@ -138,7 +145,6 @@
|
|
|
</dependency>
|
|
|
<!-- Excel Jars end -->
|
|
|
|
|
|
-
|
|
|
<!-- Json Jars start -->
|
|
|
<dependency>
|
|
|
<groupId>com.google.code.gson</groupId>
|
|
@@ -178,7 +184,6 @@
|
|
|
</dependency>
|
|
|
<!-- Json Jars end -->
|
|
|
|
|
|
-
|
|
|
<!-- Swagger Jars start -->
|
|
|
<dependency>
|
|
|
<groupId>io.springfox</groupId>
|
|
@@ -202,7 +207,6 @@
|
|
|
</dependency>
|
|
|
<!-- Swagger Jars end -->
|
|
|
|
|
|
-
|
|
|
<!-- Sdk Jars start -->
|
|
|
<dependency>
|
|
|
<groupId>com.aliyun</groupId>
|
|
@@ -242,7 +246,6 @@
|
|
|
</dependency>
|
|
|
<!-- Sdk Jars end -->
|
|
|
|
|
|
-
|
|
|
<!-- Other Jars start -->
|
|
|
<dependency>
|
|
|
<groupId>org.hibernate</groupId>
|
|
@@ -339,31 +342,12 @@
|
|
|
</dependencies>
|
|
|
</dependencyManagement>
|
|
|
|
|
|
-
|
|
|
- <distributionManagement>
|
|
|
- <repository>
|
|
|
- <id>maven-releases</id>
|
|
|
- <name>Release repository</name>
|
|
|
- <url>http://192.168.10.201:8081/repository/maven-releases/</url>
|
|
|
- </repository>
|
|
|
- <snapshotRepository>
|
|
|
- <id>maven-snapshots</id>
|
|
|
- <name>Snapshots repository</name>
|
|
|
- <url>http://192.168.10.201:8081/repository/maven-snapshots/</url>
|
|
|
- </snapshotRepository>
|
|
|
- </distributionManagement>
|
|
|
-
|
|
|
-
|
|
|
<build>
|
|
|
<plugins>
|
|
|
- <plugin>
|
|
|
- <groupId>org.springframework.boot</groupId>
|
|
|
- <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
- </plugin>
|
|
|
-
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
+ <version>${maven-surefire-version}</version>
|
|
|
<configuration>
|
|
|
<testFailureIgnore>true</testFailureIgnore>
|
|
|
<skipTests>true</skipTests>
|
|
@@ -374,9 +358,10 @@
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>${maven-compiler-version}</version>
|
|
|
<configuration>
|
|
|
- <source>${java.version}</source>
|
|
|
- <target>${java.version}</target>
|
|
|
+ <source>${maven.compiler.source}</source>
|
|
|
+ <target>${maven.compiler.target}</target>
|
|
|
<compilerArgument>-proc:none</compilerArgument>
|
|
|
</configuration>
|
|
|
</plugin>
|
|
@@ -384,6 +369,7 @@
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
|
+ <version>${maven-source-version}</version>
|
|
|
<configuration>
|
|
|
<attach>true</attach>
|
|
|
</configuration>
|
|
@@ -396,6 +382,40 @@
|
|
|
</execution>
|
|
|
</executions>
|
|
|
</plugin>
|
|
|
+
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>flatten-maven-plugin</artifactId>
|
|
|
+ <version>${maven-flatten-version}</version>
|
|
|
+ <configuration>
|
|
|
+ <updatePomFile>true</updatePomFile>
|
|
|
+ <flattenMode>resolveCiFriendliesOnly</flattenMode>
|
|
|
+ <pomElements>
|
|
|
+ <dependencies>expand</dependencies>
|
|
|
+ </pomElements>
|
|
|
+ </configuration>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <id>flatten</id>
|
|
|
+ <phase>process-resources</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>flatten</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ <execution>
|
|
|
+ <id>flatten.clean</id>
|
|
|
+ <phase>clean</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>clean</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!--<plugin>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
+ </plugin>-->
|
|
|
</plugins>
|
|
|
</build>
|
|
|
|
|
@@ -403,26 +423,27 @@
|
|
|
<repository>
|
|
|
<id>nexus</id>
|
|
|
<name>nexus</name>
|
|
|
- <url>http://nexus-host:8081/repository/maven-public/</url>
|
|
|
+ <url>http://192.168.10.201:8081/repository/maven-public/</url>
|
|
|
</repository>
|
|
|
- </repositories>-->
|
|
|
-
|
|
|
- <!--<pluginRepositories>
|
|
|
+ </repositories>
|
|
|
+ <pluginRepositories>
|
|
|
<pluginRepository>
|
|
|
<id>nexus</id>
|
|
|
<name>nexus</name>
|
|
|
- <url>http://nexus-host:8081/repository/maven-public/</url>
|
|
|
+ <url>http://192.168.10.201:8081/repository/maven-public/</url>
|
|
|
</pluginRepository>
|
|
|
</pluginRepositories>-->
|
|
|
|
|
|
<!--<distributionManagement>
|
|
|
<repository>
|
|
|
- <id>releases</id>
|
|
|
- <url>http://nexus-host:8081/repository/maven-releases/</url>
|
|
|
+ <id>maven-releases</id>
|
|
|
+ <name>Release repository</name>
|
|
|
+ <url>http://192.168.10.201:8081/repository/maven-releases/</url>
|
|
|
</repository>
|
|
|
<snapshotRepository>
|
|
|
- <id>snapshots</id>
|
|
|
- <url>http://nexus-host:8081/repository/maven-snapshots/</url>
|
|
|
+ <id>maven-snapshots</id>
|
|
|
+ <name>Snapshots repository</name>
|
|
|
+ <url>http://192.168.10.201:8081/repository/maven-snapshots/</url>
|
|
|
</snapshotRepository>
|
|
|
</distributionManagement>-->
|
|
|
|