123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- <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/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>com.uas.ps</groupId>
- <artifactId>ps-parent</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- <artifactId>ps-message</artifactId>
- <packaging>jar</packaging>
- <properties>
- <docker.plugin.version>0.4.13</docker.plugin.version>
- <!-- <docker.host>http://10.10.100.200:5555</docker.host> -->
- <docker.registry>10.10.100.200:5000</docker.registry>
- <docker.directory>${project.build.directory}/generated-docker</docker.directory>
- <docker.pushImage>false</docker.pushImage>
- </properties>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>com.uas.ps</groupId>
- <artifactId>ps-core</artifactId>
- </dependency>
- <dependency>
- <groupId>com.uas.ps</groupId>
- <artifactId>ps-httplog</artifactId>
- </dependency>
- <!--<dependency>
- <groupId>com.uas.account</groupId>
- <artifactId>sso-integration</artifactId>
- </dependency>-->
- <!-- spring boot -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-actuator</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <!--jdbcTemplate-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-jdbc</artifactId>
- </dependency>
- <!--jpa-->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-data-jpa</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-configuration-processor</artifactId>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- </dependency>
- <dependency>
- <groupId>com.zaxxer</groupId>
- <artifactId>HikariCP</artifactId>
- <version>3.2.0</version>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.hibernate</groupId>
- <artifactId>hibernate-ehcache</artifactId>
- </dependency>
- <!-- 邮件 -->
- <dependency>
- <groupId>com.uas.message</groupId>
- <artifactId>message-mail-api</artifactId>
- <version>0.0.1</version>
- </dependency>
- <!-- httpClient -->
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpclient</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.httpcomponents</groupId>
- <artifactId>httpmime</artifactId>
- </dependency>
- <!-- 消息-->
- <dependency>
- <groupId>com.uas.message</groupId>
- <artifactId>message-sms-api</artifactId>
- <version>0.0.1</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <scope>runtime</scope>
- </dependency>
- <dependency>
- <groupId>com.uas.sso</groupId>
- <artifactId>sso-common</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </dependency>
- </dependencies>
- <build>
- <resources>
- <!-- 必须包含这个 -->
- <resource>
- <directory>${project.basedir}/src/main/resources</directory>
- <includes>
- <include>**/*</include>
- </includes>
- </resource>
- <!-- 替换Dockerfile占位符 -->
- <resource>
- <directory>${project.basedir}/src/main/docker</directory>
- <filtering>true</filtering>
- <includes>
- <include>**/Dockerfile</include>
- </includes>
- <targetPath>${docker.directory}</targetPath>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- </plugin>
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>${docker.plugin.version}</version>
- <executions>
- <execution>
- <id>build-image</id>
- <phase>package</phase>
- <goals>
- <goal>build</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <registryUrl>${docker.registry}</registryUrl>
- <!-- <dockerHost>${docker.host}</dockerHost>
- <baseImage>${docker.registry}/java</baseImage>
- <entryPoint>["java", "-jar", "/${project.build.finalName}.jar"]</entryPoint>
- -->
- <dockerDirectory>${docker.directory}</dockerDirectory>
- <imageName>${docker.registry}/${project.artifactId}</imageName>
- <pushImage>${docker.pushImage}</pushImage>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|