|
@@ -0,0 +1,277 @@
|
|
|
|
+<?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.persagy</groupId>
|
|
|
|
+ <artifactId>fm-parent</artifactId>
|
|
|
|
+ <version>3.0.0</version>
|
|
|
|
+ <packaging>pom</packaging>
|
|
|
|
+
|
|
|
|
+ <parent>
|
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
|
+ <artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
+ <version>2.1.14.RELEASE</version>
|
|
|
|
+ </parent>
|
|
|
|
+ <properties>
|
|
|
|
+ <fm.version>3.0.0</fm.version>
|
|
|
|
+ <platform.version>1.0.0</platform.version>
|
|
|
|
+ </properties>
|
|
|
|
+
|
|
|
|
+ <dependencyManagement>
|
|
|
|
+ <dependencies>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.persagy</groupId>
|
|
|
|
+ <artifactId>fm-server</artifactId>
|
|
|
|
+ <version>${fm.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.persagy</groupId>
|
|
|
|
+ <artifactId>integrated-common-core</artifactId>
|
|
|
|
+ <version>${platform.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>com.persagy</groupId>
|
|
|
|
+ <artifactId>integrated-log-spring-boot-starter</artifactId>
|
|
|
|
+ <version>${platform.version}</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ </dependencies>
|
|
|
|
+ </dependencyManagement>
|
|
|
|
+
|
|
|
|
+ <!-- 插件配置 -->
|
|
|
|
+ <build>
|
|
|
|
+ <pluginManagement>
|
|
|
|
+ <plugins>
|
|
|
|
+ <!-- compiler插件, 设定JDK版本 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
+ <version>3.7.0</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <source>${java.version}</source>
|
|
|
|
+ <target>${java.version}</target>
|
|
|
|
+ <showWarnings>true</showWarnings>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.scala-tools</groupId>
|
|
|
|
+ <artifactId>maven-scala-plugin</artifactId>
|
|
|
|
+ <version>2.15.2</version>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <id>scala-compile-first</id>
|
|
|
|
+ <phase>process-resources</phase>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>compile</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ </execution>
|
|
|
|
+ <execution>
|
|
|
|
+ <id>scala-test-compile</id>
|
|
|
|
+ <phase>process-test-resources</phase>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>testCompile</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
|
|
+ <!-- resource插件 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-resources-plugin</artifactId>
|
|
|
|
+ <version>3.0.2</version>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!-- test插件, 仅测试名称为*Test的类, 使用支持分组测试的surefire-junit47 driver -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
+ <version>2.20.1</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <includes>
|
|
|
|
+ <include>**/*Test.java</include>
|
|
|
|
+ <include>**/*Test.scala</include>
|
|
|
|
+ </includes>
|
|
|
|
+ <skipTests>true</skipTests>
|
|
|
|
+ </configuration>
|
|
|
|
+ <dependencies>
|
|
|
|
+ <dependency>
|
|
|
|
+ <groupId>org.apache.maven.surefire</groupId>
|
|
|
|
+ <artifactId>surefire-junit4</artifactId>
|
|
|
|
+ <version>2.18.1</version>
|
|
|
|
+ </dependency>
|
|
|
|
+ </dependencies>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!-- 增加更多的Source和Test Source目录插件 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
|
+ <artifactId>build-helper-maven-plugin</artifactId>
|
|
|
|
+ <version>3.0.0</version>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!-- cobertura 测试覆盖率统计插插件 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
|
+ <artifactId>cobertura-maven-plugin</artifactId>
|
|
|
|
+ <version>2.7</version>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!-- war打包插件, 设定war包名称不带版本号 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-war-plugin</artifactId>
|
|
|
|
+ <version>3.2.0</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <warName>${project.artifactId}${chassis.version}</warName>
|
|
|
|
+ <failOnMissingWebXml>false</failOnMissingWebXml>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!-- jar打包相关插件 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-jar-plugin</artifactId>
|
|
|
|
+ <version>3.1.0</version>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>test-jar</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ <configuration>
|
|
|
|
+ <archive>
|
|
|
|
+ <manifest>
|
|
|
|
+ <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
|
|
|
|
+ </manifest>
|
|
|
|
+ </archive>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-source-plugin</artifactId>
|
|
|
|
+ <version>3.0.1</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <attach>true</attach>
|
|
|
|
+ </configuration>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <phase>compile</phase>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>jar</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!-- clean插件 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-clean-plugin</artifactId>
|
|
|
|
+ <version>3.0.0</version>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!-- install插件 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-install-plugin</artifactId>
|
|
|
|
+ <version>2.5.2</version>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!-- enforcer插件, 避免被依赖的依赖引入过期的jar包 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-enforcer-plugin</artifactId>
|
|
|
|
+ <version>1.4.1</version>
|
|
|
|
+ <executions>
|
|
|
|
+ <execution>
|
|
|
|
+ <id>enforce-banned-dependencies</id>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>enforce</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ <configuration>
|
|
|
|
+ <rules>
|
|
|
|
+ <requireMavenVersion>
|
|
|
|
+ <version>3.0.3</version>
|
|
|
|
+ </requireMavenVersion>
|
|
|
|
+ <requireJavaVersion>
|
|
|
|
+ <version>1.7</version>
|
|
|
|
+ </requireJavaVersion>
|
|
|
|
+ <bannedDependencies>
|
|
|
|
+ <searchTransitive>true</searchTransitive>
|
|
|
|
+ <excludes>
|
|
|
|
+ <exclude>commons-logging</exclude>
|
|
|
|
+ <exclude>aspectj:aspectj*</exclude>
|
|
|
|
+ <exclude>org.springframework</exclude>
|
|
|
|
+ </excludes>
|
|
|
|
+ <includes>
|
|
|
|
+ <include>org.springframework:*:4.3.*</include>
|
|
|
|
+ </includes>
|
|
|
|
+ </bannedDependencies>
|
|
|
|
+ </rules>
|
|
|
|
+ <fail>true</fail>
|
|
|
|
+ </configuration>
|
|
|
|
+ </execution>
|
|
|
|
+ </executions>
|
|
|
|
+ </plugin>
|
|
|
|
+ <!-- dependency相关插件 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
+ <version>2.10</version>
|
|
|
|
+ </plugin>
|
|
|
|
+ <!-- ant插件 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-antrun-plugin</artifactId>
|
|
|
|
+ <version>1.8</version>
|
|
|
|
+ </plugin>
|
|
|
|
+
|
|
|
|
+ <!-- exec java 插件 -->
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
|
+ <artifactId>exec-maven-plugin</artifactId>
|
|
|
|
+ <version>1.6.0</version>
|
|
|
|
+ </plugin>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-release-plugin</artifactId>
|
|
|
|
+ <version>2.5.3</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <!--<tagBase>https://192.168.1.100:8443/svn/myapp/tags/</tagBase>-->
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.eclipse.m2e</groupId>
|
|
|
|
+ <artifactId>lifecycle-mapping</artifactId>
|
|
|
|
+ <version>1.0.0</version>
|
|
|
|
+ <configuration>
|
|
|
|
+ <lifecycleMappingMetadata>
|
|
|
|
+ <pluginExecutions>
|
|
|
|
+ <pluginExecution>
|
|
|
|
+ <pluginExecutionFilter>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
+ <versionRange>[2.0,)</versionRange>
|
|
|
|
+ <goals>
|
|
|
|
+ <goal>copy-dependencies</goal>
|
|
|
|
+ </goals>
|
|
|
|
+ </pluginExecutionFilter>
|
|
|
|
+ <action>
|
|
|
|
+ <ignore/>
|
|
|
|
+ </action>
|
|
|
|
+ </pluginExecution>
|
|
|
|
+ </pluginExecutions>
|
|
|
|
+ </lifecycleMappingMetadata>
|
|
|
|
+ </configuration>
|
|
|
|
+ </plugin>
|
|
|
|
+ </plugins>
|
|
|
|
+ </pluginManagement>
|
|
|
|
+ <plugins>
|
|
|
|
+ <plugin>
|
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
|
+ <artifactId>maven-source-plugin</artifactId>
|
|
|
|
+ </plugin>
|
|
|
|
+ </plugins>
|
|
|
|
+ </build>
|
|
|
|
+</project>
|