123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173 |
- <?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.uas.message</groupId>
- <artifactId>message-console</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <packaging>war</packaging>
- <name>message-console</name>
- <description>Uas Message Console for Spring Boot</description>
- <parent>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>1.5.6.RELEASE</version>
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <java.version>1.8</java.version>
- <message.version>0.0.1</message.version>
- <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>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-jdbc</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- <exclusions>
- <exclusion>
- <artifactId>org.apache.tomcat.embed</artifactId>
- <groupId>tomcat-embed-jasper</groupId>
- </exclusion>
- <exclusion>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- </exclusion>
- </exclusions>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-test</artifactId>
- <scope>test</scope>
- </dependency>
- <!-- drivers -->
- <dependency>
- <groupId>com.oracle</groupId>
- <artifactId>ojdbc6</artifactId>
- <version>11.2.0</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- </dependency>
- <!-- project -->
- <dependency>
- <groupId>com.uas.message</groupId>
- <artifactId>message-mq</artifactId>
- <version>${message.version}</version>
- </dependency>
- <dependency>
- <groupId>com.uas.message</groupId>
- <artifactId>message-mail</artifactId>
- <version>${message.version}</version>
- </dependency>
- <dependency>
- <groupId>com.uas.message</groupId>
- <artifactId>message-sms</artifactId>
- <version>${message.version}</version>
- </dependency>
- <!-- jsp support -->
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-tomcat</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.tomcat.embed</groupId>
- <artifactId>tomcat-embed-jasper</artifactId>
- </dependency>
- <dependency>
- <groupId>javax.servlet</groupId>
- <artifactId>jstl</artifactId>
- <version>1.2</version>
- </dependency>
- </dependencies>
- <build>
- <finalName>${project.artifactId}</finalName>
- <resources>
- <!-- 必须包含这个 -->
- <resource>
- <directory>${project.basedir}/src/main/resources</directory>
- <includes>
- <include>**/*</include>
- </includes>
- </resource>
- <!-- 必须包含这个 -->
- <resource>
- <directory>${project.basedir}/src/main/webapp</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>
|