123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595 |
- <?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>
- <parent>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>ehr-cloud</artifactId>
- <version>1.13.0</version>
- </parent>
- <artifactId>ehr-ms-parent</artifactId>
- <packaging>pom</packaging>
- <description>EHR micro service parent pom</description>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.jooq</groupId>
- <artifactId>jooq-codegen-maven</artifactId>
- <version>${jooq.version}</version>
- </plugin>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${spring-boot.version}</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-antrun-plugin</artifactId>
- <version>1.7</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>2.5.1</version>
- <configuration>
- <recompressZippedFiles>false</recompressZippedFiles>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-clean-plugin</artifactId>
- <version>2.5</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-deploy-plugin</artifactId>
- <version>2.8.2</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <version>2.10</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-eclipse-plugin</artifactId>
- <version>2.9</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-failsafe-plugin</artifactId>
- <version>2.18</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-install-plugin</artifactId>
- <version>2.5.2</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-help-plugin</artifactId>
- <version>2.2</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <version>2.5</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-javadoc-plugin</artifactId>
- <version>2.10.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <version>2.7</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-shade-plugin</artifactId>
- <version>2.3</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.3</version>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-module-markdown</artifactId>
- <version>1.5</version>
- </dependency>
- </dependencies>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <version>2.4</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.18.1</version>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <version>2.5</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <version>1.9.1</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.3.2</version>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>versions-maven-plugin</artifactId>
- <version>2.2</version>
- </plugin>
- <plugin>
- <groupId>pl.project13.maven</groupId>
- <artifactId>git-commit-id-plugin</artifactId>
- <version>2.1.11</version>
- </plugin>
- </plugins>
- </pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <version>${version.spring-boot}</version>
- <executions>
- <execution>
- <goals>
- <goal>repackage</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-checkstyle-plugin</artifactId>
- <version>2.17</version>
- <executions>
- <execution>
- <id>checkstyle-validation</id>
- <phase>validate</phase>
- <configuration>
- <skip>true</skip>
- <configLocation>src/checkstyle/checkstyle.xml</configLocation>
- <suppressionsLocation>src/checkstyle/checkstyle-suppressions.xml</suppressionsLocation>
- <headerLocation>src/checkstyle/checkstyle-header.txt</headerLocation>
- <propertyExpansion>checkstyle.build.directory=${project.build.directory}</propertyExpansion>
- <encoding>UTF-8</encoding>
- <consoleOutput>true</consoleOutput>
- <failsOnError>true</failsOnError>
- <includeTestSourceDirectory>true</includeTestSourceDirectory>
- </configuration>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.1</version>
- <configuration>
- <source>${version.java}</source>
- <target>${version.java}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-enforcer-plugin</artifactId>
- <version>1.4</version>
- <executions>
- <execution>
- <id>enforce-rules</id>
- <goals>
- <goal>enforce</goal>
- </goals>
- <configuration>
- <rules>
- <requireJavaVersion>
- <version>[1.8,)</version>
- </requireJavaVersion>
- <!--<requireProperty>
- <property>main.basedir</property>
- </requireProperty>-->
- <!--<requireProperty>
- <property>project.organization.name</property>
- </requireProperty>-->
- <!--<requireProperty>
- <property>project.name</property>
- </requireProperty>-->
- <!--<requireProperty>
- <property>project.description</property>
- </requireProperty>-->
- </rules>
- <fail>true</fail>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
- <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
- </manifest>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-surefire-plugin</artifactId>
- <configuration>
- <includes>
- <include>**/*Tests.java</include>
- </includes>
- <excludes>
- <exclude>**/Abstract*.java</exclude>
- </excludes>
- <!--<systemPropertyVariables>-->
- <!--<java.security.egd>file:/dev/./urandom</java.security.egd>-->
- <!--<java.awt.headless>true</java.awt.headless>-->
- <!--</systemPropertyVariables>-->
- <argLine>-Xmx1024m</argLine>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <failOnMissingWebXml>false</failOnMissingWebXml>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-source-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-sources</id>
- <goals>
- <goal>jar-no-fork</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!--<plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>animal-sniffer-maven-plugin</artifactId>
- <configuration>
- <skip>${disable.checks}</skip>
- <signature>
- <groupId>org.codehaus.mojo.signature</groupId>
- <artifactId>java16</artifactId>
- <version>1.0</version>
- </signature>
- <annotations>
- <annotation>org.springframework.lang.UsesJava8</annotation>
- <annotation>org.springframework.lang.UsesJava7</annotation>
- <annotation>org.springframework.boot.lang.UsesUnsafeJava</annotation>
- </annotations>
- </configuration>
- <executions>
- <execution>
- <id>enforce-java-6</id>
- <phase>test</phase>
- <goals>
- <goal>check</goal>
- </goals>
- </execution>
- </executions>
- </plugin>-->
- </plugins>
- </build>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-admin-gateway-model</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-data-elasticsearch</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-data-fastdfs</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-data-hbase</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-data-mysql</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-data-query</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-data-redis</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-data-solr</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-ehr-constants</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-entity</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-profile-core</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-redis-mq</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-rest-model</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.hos</groupId>
- <artifactId>common-rest-model</artifactId>
- <version>${version.eip}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-ui-swagger</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-util</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- <dependency>
- <groupId>com.yihu.ehr</groupId>
- <artifactId>commons-web</artifactId>
- <version>${version.ehr}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <!--
- profiles分为三种场景(dev,test,prod),三种部署模式(jar,war,docker).预计是9种模式,
- 但目前仅使用到dev,test,prod的jar,test的war.若有需要可以组合配置这些部署模式.
- - dev的可执行jar包,在本机调试,不需要配置wagon参数。
- - test,prod的可执行jar包,需要在编译后传送到服务器上部署,故需配置wagon参数,参数可根据服务需要自行配置。
- - dev,test,prod的war包,编译后使用tomcat api部署,故需配置tomcat参数,参数可根据服务需要自行配置。
- -->
- <profiles>
- <profile>
- <id>dev-jar</id>
- <activation>
- <activeByDefault>true</activeByDefault>
- </activation>
- <properties>
- <skipTests>true</skipTests>
- <packaging.type>jar</packaging.type>
- <dependency.scope>compile</dependency.scope>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- </dependency>
- <!--<dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <scope>${dependency.scope}</scope>
- </dependency>-->
- </dependencies>
- </profile>
- <profile>
- <id>test-jar</id>
- <properties>
- <skipTests>true</skipTests>
- <packaging.type>jar</packaging.type>
- <dependency.scope>compile</dependency.scope>
- <wagonServerId/>
- <wagonUrl/>
- </properties>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>wagon-maven-plugin</artifactId>
- <version>1.0</version>
- <configuration>
- <serverId>${wagonServerId}</serverId>
- <fromFile>${project.build.directory}/${project.build.finalName}.jar</fromFile>
- <url>${wagonUrl}</url>
- <commands>
- <command>pkill -f ${project.build.finalName}.jar</command>
- <command>nohub java -Djava.security.egd=file:/dev/./urandom -jar
- ${project.build.finalName}.jar &
- </command>
- </commands>
- <displayCommandOutputs>true</displayCommandOutputs>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-logging</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <scope>${dependency.scope}</scope>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>test-war</id>
- <activation>
- <property>
- <name>spring.profiles.active</name>
- <value>default,test</value>
- </property>
- </activation>
- <properties>
- <skipTests>true</skipTests>
- <packaging.type>war</packaging.type>
- <dependency.scope>provided</dependency.scope>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <scope>${dependency.scope}</scope>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-logging</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- <scope>${dependency.scope}</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <scope>${dependency.scope}</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.tomcat.maven</groupId>
- <artifactId>tomcat7-maven-plugin</artifactId>
- <version>2.2</version>
- <configuration>
- <url>http://localhost:8080/manager/text</url>
- <server>tomcat8</server>
- <username>deployer</username>
- <password>jkzldeployer</password>
- <path>/${project.artifactId}</path>
- <update>true</update>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>prod-jar</id>
- <activation>
- <property>
- <name>spring.profiles.active</name>
- <value>default,prod</value>
- </property>
- </activation>
- <properties>
- <skipTests>true</skipTests>
- <packaging.type>war</packaging.type>
- <dependency.scope>compile</dependency.scope>
- <wagonServerId>11.1.2.21</wagonServerId>
- <wagonUrl>scp://user:password@11.1.2.21/home/root/ehr-release</wagonUrl>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <scope>${dependency.scope}</scope>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-logging</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- </dependencies>
- </profile>
- <profile>
- <id>prod-war</id>
- <properties>
- <skipTests>true</skipTests>
- <packaging.type>war</packaging.type>
- <dependency.scope>provided</dependency.scope>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <scope>${dependency.scope}</scope>
- <exclusions>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-logging</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- <scope>${dependency.scope}</scope>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <scope>${dependency.scope}</scope>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- </plugins>
- </build>
- </profile>
- </profiles>
- </project>
|