123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620 |
- <?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>
- <modules>
- <module>base-servers</module>
- <module>framework</module>
- <module>applications</module>
- </modules>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.0.4.RELEASE</version>
- </parent>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>saas-platform</artifactId>
- <packaging>pom</packaging>
- <version>1.0.0-SNAPSHOT</version>
- <description>saas framework parent</description>
- <properties>
- <project.release.version>1.0.0-SNAPSHOT</project.release.version>
- <java.version>1.8</java.version>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <spring.boot.version>2.0.4.RELEASE</spring.boot.version>
- <spring.cloud.version>Finchley.SR1</spring.cloud.version>
- <spring.boot.admin.version>2.0.2</spring.boot.admin.version>
- <mysql.version>6.0.6</mysql.version>
- <mybatis.spring.boot.version>1.3.1</mybatis.spring.boot.version>
- <fastjson.version>1.2.44</fastjson.version>
- <alibaba.druid.version>1.1.6</alibaba.druid.version>
- <zipkin.version>2.11.1</zipkin.version>
- <logstash.version>4.11</logstash.version>
- <pagehelper.starter.version>1.2.7</pagehelper.starter.version>
- <shiro.version>1.4.0</shiro.version>
- <swagger.version>2.7.0</swagger.version>
- <feign.form.version>3.0.3</feign.form.version>
- <commons.fileupload.version>1.3.3</commons.fileupload.version>
- <commons.compress.version>1.18</commons.compress.version>
- <docker.repository>10.1.81.1:4000</docker.repository>
- <docker.registry.name>saas</docker.registry.name>
- <guava.version>18.0</guava.version>
- <fastdfs.client.version>1.26.3</fastdfs.client.version>
- <poi.version>3.17</poi.version>
- <zxing.version>3.3.0</zxing.version>
- <threadloacl.version>2.10.2</threadloacl.version>
- </properties>
- <repositories>
- <repository>
- <id>spring-milestones</id>
- <name>Spring Milestones</name>
- <url>https://repo.spring.io/libs-milestone</url>
- </repository>
- <repository>
- <id>oss</id>
- <name>oss</name>
- <url>https://oss.sonatype.org/content/groups/public</url>
- </repository>
- <repository>
- <id>aliyun</id>
- <name>aliyun</name>
- <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
- </repository>
- </repositories>
- <distributionManagement>
- <repository>
- <id>platform-release</id>
- <name>platform-release</name>
- <url>http://10.10.100.21:8081/artifactory/libs-release-local</url>
- </repository>
- <snapshotRepository>
- <id>platform-snapshots</id>
- <name>platform-snapshots</name>
- <url>http://10.10.100.21:8081/artifactory/libs-snapshot-local</url>
- </snapshotRepository>
- </distributionManagement>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-dependencies</artifactId>
- <version>${spring.cloud.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>de.codecentric</groupId>
- <artifactId>spring-boot-admin-dependencies</artifactId>
- <version>${spring.boot.admin.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>org.mybatis.spring.boot</groupId>
- <artifactId>mybatis-spring-boot-starter</artifactId>
- <version>${mybatis.spring.boot.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>druid</artifactId>
- <version>${alibaba.druid.version}</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>${mysql.version}</version>
- </dependency>
- <!-- zipkin autoconfigure -->
- <dependency>
- <groupId>io.zipkin.zipkin2</groupId>
- <artifactId>parent</artifactId>
- <version>${zipkin.version}</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- <dependency>
- <groupId>io.zipkin.java</groupId>
- <artifactId>zipkin-autoconfigure-storage-mysql</artifactId>
- <version>${zipkin.version}</version>
- </dependency>
- <dependency>
- <groupId>io.zipkin.java</groupId>
- <artifactId>zipkin-autoconfigure-storage-elasticsearch</artifactId>
- <version>${zipkin.version}</version>
- </dependency>
- <dependency>
- <groupId>io.zipkin.java</groupId>
- <artifactId>zipkin-autoconfigure-collector-rabbitmq</artifactId>
- <version>${zipkin.version}</version>
- </dependency>
- <dependency>
- <groupId>io.zipkin.java</groupId>
- <artifactId>zipkin-autoconfigure-collector-kafka</artifactId>
- <version>${zipkin.version}</version>
- </dependency>
- <dependency>
- <groupId>io.zipkin.java</groupId>
- <artifactId>zipkin-autoconfigure-ui</artifactId>
- <version>${zipkin.version}</version>
- </dependency>
- <dependency>
- <groupId>net.logstash.logback</groupId>
- <artifactId>logstash-logback-encoder</artifactId>
- <version>${logstash.version}</version>
- </dependency>
- <!-- pagehelper -->
- <dependency>
- <groupId>com.github.pagehelper</groupId>
- <artifactId>pagehelper-spring-boot-starter</artifactId>
- <version>${pagehelper.starter.version}</version>
- </dependency>
- <!-- shiro -->
- <dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-core</artifactId>
- <version>${shiro.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-spring</artifactId>
- <version>${shiro.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-web</artifactId>
- <version>${shiro.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-ehcache</artifactId>
- <version>${shiro.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-spring-boot-starter</artifactId>
- <version>${shiro.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.shiro</groupId>
- <artifactId>shiro-spring-boot-web-starter</artifactId>
- <version>${shiro.version}</version>
- </dependency>
- <!-- swagger -->
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger2</artifactId>
- <version>${swagger.version}</version>
- </dependency>
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger-ui</artifactId>
- <version>${swagger.version}</version>
- </dependency>
- <!-- platform artifacts -->
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>core</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>server-starter</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>file-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>file-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>commons-compress</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>mail-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>transfers-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>mail-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>account-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>account-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>auth-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>auth-common</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>auth-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>auth-client</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>commons-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>commons-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>purchase-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>purchase-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>document-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>document-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>storage-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>storage-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>sale-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>test-starter</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>socket-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>sms-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>sms-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>datacenter-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>datacenter-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>datacenter-client</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>transfers-auth</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>money-dto</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <dependency>
- <groupId>com.usoftchina.saas</groupId>
- <artifactId>mall-api</artifactId>
- <version>${project.release.version}</version>
- </dependency>
- <!-- file upload -->
- <dependency>
- <groupId>io.github.openfeign.form</groupId>
- <artifactId>feign-form</artifactId>
- <version>${feign.form.version}</version>
- </dependency>
- <dependency>
- <groupId>io.github.openfeign.form</groupId>
- <artifactId>feign-form-spring</artifactId>
- <version>${feign.form.version}</version>
- </dependency>
- <dependency>
- <groupId>commons-fileupload</groupId>
- <artifactId>commons-fileupload</artifactId>
- <version>${commons.fileupload.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>${fastjson.version}</version>
- </dependency>
- <dependency>
- <groupId>com.github.tobato</groupId>
- <artifactId>fastdfs-client</artifactId>
- <version>${fastdfs.client.version}</version>
- </dependency>
- <!-- utils -->
- <dependency>
- <groupId>com.google.guava</groupId>
- <artifactId>guava</artifactId>
- <version>${guava.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.commons</groupId>
- <artifactId>commons-compress</artifactId>
- <version>${commons.compress.version}</version>
- </dependency>
- <!--excel-->
- <dependency>
- <groupId>org.apache.poi</groupId>
- <artifactId>poi-ooxml</artifactId>
- <version>${poi.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.zxing</groupId>
- <artifactId>core</artifactId>
- <version>${zxing.version}</version>
- </dependency>
- <dependency>
- <groupId>com.google.zxing</groupId>
- <artifactId>javase</artifactId>
- <version>${zxing.version}</version>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>transmittable-thread-local</artifactId>
- <version>${threadloacl.version}</version>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <build>
- <pluginManagement>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <configuration>
- <source>${java.version}</source>
- <target>${java.version}</target>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- <!-- Docker maven plugin -->
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.0.0</version>
- <configuration>
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <registryUrl>${docker.repository}</registryUrl>
- <pushImage>true</pushImage>
- <imageName>
- ${docker.repository}/${docker.registry.name}/${project.artifactId}:${project.version}
- </imageName>
- <imageTags>
- <imageTag>latest</imageTag>
- </imageTags>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- </plugin>
- <!-- Docker maven plugin -->
- </plugins>
- </pluginManagement>
- </build>
- <profiles>
- <profile>
- <!-- mvn deploy -P release -->
- <id>release</id>
- <properties>
- <project.release.version>1.0.0</project.release.version>
- </properties>
- </profile>
- <profile>
- <!-- mvn deploy -P docker -->
- <id>docker</id>
- <build>
- <pluginManagement>
- <plugins>
- <!-- Docker maven plugin -->
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.0.0</version>
- <configuration>
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <registryUrl>${docker.repository}</registryUrl>
- <pushImage>true</pushImage>
- <forceTags>true</forceTags>
- <imageName>
- ${docker.repository}/${docker.registry.name}/${project.artifactId}:${project.version}
- </imageName>
- <imageTags>
- <imageTag>latest</imageTag>
- </imageTags>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- <executions>
- <execution>
- <id>build-image</id>
- <phase>package</phase>
- <goals>
- <goal>build</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- Docker maven plugin -->
- </plugins>
- </pluginManagement>
- </build>
- </profile>
- <profile>
- <!-- mvn deploy -P docker-test -->
- <id>docker-test</id>
- <properties>
- <docker.registry.name>saas/test</docker.registry.name>
- </properties>
- <build>
- <pluginManagement>
- <plugins>
- <!-- Docker maven plugin -->
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.0.0</version>
- <configuration>
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <registryUrl>${docker.repository}</registryUrl>
- <pushImage>true</pushImage>
- <forceTags>true</forceTags>
- <imageName>
- ${docker.repository}/${docker.registry.name}/${project.artifactId}:${project.version}
- </imageName>
- <imageTags>
- <imageTag>latest</imageTag>
- </imageTags>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- <executions>
- <execution>
- <id>build-image</id>
- <phase>package</phase>
- <goals>
- <goal>build</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- Docker maven plugin -->
- </plugins>
- </pluginManagement>
- </build>
- </profile>
- <profile>
- <!-- mvn deploy -P docker-prod -->
- <id>docker-prod</id>
- <properties>
- <docker.repository>10.10.100.200:5000</docker.repository>
- </properties>
- <build>
- <pluginManagement>
- <plugins>
- <!-- Docker maven plugin -->
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.0.0</version>
- <configuration>
- <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
- <registryUrl>${docker.repository}</registryUrl>
- <pushImage>true</pushImage>
- <forceTags>true</forceTags>
- <imageName>
- ${docker.repository}/${docker.registry.name}/${project.artifactId}:${project.version}
- </imageName>
- <imageTags>
- <imageTag>latest</imageTag>
- </imageTags>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- <executions>
- <execution>
- <id>build-image</id>
- <phase>package</phase>
- <goals>
- <goal>build</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- Docker maven plugin -->
- </plugins>
- </pluginManagement>
- </build>
- </profile>
- </profiles>
- </project>
|