This commit is contained in:
ms group dev 2019-12-04 18:08:53 +08:00
parent ac217e7c8a
commit c4efd8d439
1 changed files with 282 additions and 99 deletions

381
pom.xml
View File

@ -1,100 +1,283 @@
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
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">
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent>
<modelVersion>4.0.0</modelVersion> <groupId>org.sonatype.oss</groupId>
<groupId>net.mingsoft</groupId> <artifactId>oss-parent</artifactId>
<artifactId>mcms</artifactId> <version>9</version>
<version>4.7.2</version> </parent>
<name>ms-mcms</name> <modelVersion>4.0.0</modelVersion>
<properties> <groupId>net.mingsoft</groupId>
<java.version>1.8</java.version> <artifactId>ms-mcms</artifactId>
</properties> <version>5.0.0-SNAPSHOT</version>
<repositories> <name>${project.groupId}:${project.artifactId}</name>
<repository> <description>ms-mcms tools Library</description>
<id>sonatype-nexus-snapshots</id> <url>https://github.com/ming-soft/ms-mcms</url>
<name>Sonatype Nexus Snapshots</name> <licenses>
<url>http://repo1.maven.org/maven2/</url> <license>
<releases> <name>The MIT License (MIT)</name>
<enabled>true</enabled> <url>http://mit-license.org</url>
</releases> </license>
<snapshots> </licenses>
<enabled>true</enabled> <developers>
</snapshots> <developer>
</repository> <name>mingsoft develop group</name>
<repository> <email>service@mingsoft.net</email>
<id>sonatype</id> <organization>mingsoft</organization>
<name>Sonatype Snapshots</name> <organizationUrl>http://www.mingsoft.net</organizationUrl>
<url>https://oss.sonatype.org/content/groups/public/</url> </developer>
<releases> </developers>
<enabled>true</enabled>
</releases> <scm>
<snapshots> <connection>scm:git://github.com/ming-soft/ms-mcms.git</connection>
<enabled>true</enabled> <developerConnection>scm:git@github.com:ming-soft/ms-mcms.git</developerConnection>
</snapshots> <url>https://github.com/ming-soft/ms-mcms</url>
</repository> </scm>
</repositories> <distributionManagement>
<dependencies> <snapshotRepository>
<dependency> <id>sonatype-nexus-snapshots</id>
<groupId>net.mingsoft</groupId> <name>Sonatype Nexus snapshot repository</name>
<artifactId>ms-basic</artifactId> <url>https://oss.sonatype.org/content/repositories/snapshots</url>
<version>1.0.17-SNAPSHOT</version> </snapshotRepository>
</dependency> <repository>
<dependency> <id>sonatype-nexus-staging</id>
<groupId>net.mingsoft</groupId> <name>Sonatype Nexus release repository</name>
<artifactId>ms-mdiy</artifactId> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<version>1.0.12-SNAPSHOT</version> </repository>
</dependency> </distributionManagement>
<dependency> <properties>
<groupId>net.mingsoft</groupId> <java.version>1.8</java.version>
<artifactId>ms-mpeople</artifactId> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<version>1.0.11</version> </properties>
</dependency> <dependencies>
<!-- 此部分是铭飞平台MStroe的客户端MStore不在铭飞开源产品范围如果不需要使用MStore可以删除掉 --> <dependency>
<dependency> <groupId>net.mingsoft</groupId>
<groupId>net.mingsoft</groupId> <artifactId>ms-mpeople</artifactId>
<artifactId>ms-upgrader</artifactId> <version>1.0.13-SNAPSHOT</version>
<version>1.0.13</version> </dependency>
</dependency> </dependencies>
</dependencies> <build>
<build> <resources>
<finalName>ms-mcms</finalName> <resource>
<plugins> <directory>src/main/java</directory>
<plugin> </resource>
<groupId>org.apache.maven.plugins</groupId> <resource>
<artifactId>maven-compiler-plugin</artifactId> <directory>src/main/webapp</directory>
<version>3.1</version> <excludes>
<configuration> <exclude>html/</exclude>
<source>${java.version}</source> <exclude>static/</exclude>
<target>${java.version}</target> <exclude>upload/</exclude>
</configuration> <exclude>templets/</exclude>
</plugin> </excludes>
<plugin> </resource>
<groupId>org.springframework.boot</groupId> <resource>
<artifactId>spring-boot-maven-plugin</artifactId> <directory>src/main/resources</directory>
<executions> </resource>
<execution> </resources>
<goals> <plugins>
<goal>repackage</goal> <plugin>
</goals> <groupId>org.apache.maven.plugins</groupId>
</execution> <artifactId>maven-jar-plugin</artifactId>
</executions> <version>2.6</version>
<configuration> <executions>
<fork>true</fork> <execution>
</configuration> <phase>package</phase>
</plugin> <goals>
</plugins> <goal>jar</goal>
<resources> </goals>
<resource> </execution>
<directory>src/main/webapp</directory> </executions>
</resource> <configuration>
<resource> <excludes>
<directory>src/main/resources</directory> <!--注意这玩意从编译结果目录开始算目录结构 -->
</resource> <exclude>**/static/plugins/</exclude>
<resource> <exclude>**/static/skin/</exclude>
<directory>src/main/java</directory> <exclude>**/application*.yml</exclude>
</resource> <exclude>**/Dockerfile</exclude>
</resources> <exclude>**/ehcache.xml</exclude>
<defaultGoal>compile</defaultGoal> <exclude>**/upgrade/</exclude>
</build> <exclude>**/config/</exclude>
<exclude>**/MSApplication.*</exclude>
<exclude>**/MSServletInitializer.*</exclude>
<exclude>**/*.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<configuration>
<excludes>
<exclude>**/static/plugins/</exclude>
<exclude>**/static/skin/</exclude>
<exclude>**/application*.yml</exclude>
<exclude>**/Dockerfile</exclude>
<exclude>**/ehcache.xml</exclude>
<exclude>**/upgrade/</exclude>
<exclude>**/config/</exclude>
<exclude>**/MSApplication.java</exclude>
<exclude>**/MSServletInitializer.java</exclude>
</excludes>
</configuration>
<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-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<compilerArguments>
<verbose />
<bootclasspath>${java.home}/lib/rt.jar:${java.home}/lib/jce.jar</bootclasspath>
</compilerArguments>
<compilerArgument>-Xlint:unchecked</compilerArgument>
</configuration>
<dependencies>
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-compiler-eclipse</artifactId>
<version>2.1</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<version>2.8</version>
<configuration>
<additionalConfig>
<file>
<name>.settings/org.eclipse.core.resources.prefs</name>
<content>
<![CDATA[
eclipse.preferences.version=1
encoding/<project>=${project.build.sourceEncoding}
]]>
</content>
</file>
</additionalConfig>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<argLine>-Xmx256m</argLine>
</configuration>
</plugin>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<version>2.6.3</version>
<configuration>
<licenseLocation>${clover.license.file}</licenseLocation>
<encoding>${project.build.sourceEncoding}</encoding>
<generateXml>true</generateXml>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
<version>1.2</version>
<configuration>
<findbugsXmlOutput>true</findbugsXmlOutput>
<findbugsXmlWithMessages>true</findbugsXmlWithMessages>
<xmlOutput>true</xmlOutput>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<configuration>
<charset>UTF-8</charset>
<encoding>UTF-8</encoding>
<docencoding>UTF-8</docencoding>
<javadocExecutable>${java.home}/../bin/javadoc</javadocExecutable>
<additionalparam>-Xdoclint:none</additionalparam>
</configuration>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<webResources>
<resource>
<directory>src/main/webapp/WEB-INF</directory>
<targetPath>WEB-INF</targetPath>
<filtering>true</filtering>
<includes>
<include>**/*.xml</include>
</includes>
<excludes>
<exclude>web.xml</exclude>
</excludes>
</resource>
</webResources>
<attachClasses>true</attachClasses>
<warSourceExcludes> */web.xml,static</warSourceExcludes>
<failOnMissingWebXml>false</failOnMissingWebXml>
<packagingExcludes>ms.install,html/,static/,temp,upgrader,WEB-INF/web.xml,WEB-INF/lib/,templets/,upload/,WEB-INF/classes/*.xml,WEB-INF/classes/*.properties,*.sh,WEB-INF/classes/net/mingsoft/config/,WEB-INF/classes/net/mingsoft/*.class</packagingExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<configuration>
<arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
</configuration>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</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>
<defaultGoal>compile</defaultGoal>
<finalName>ms-mcms</finalName>
</build>
</project> </project>