123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218 |
- <?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>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-parent</artifactId>
- <version>2.2.2.RELEASE</version>
- <relativePath/> <!-- lookup parent from repository -->
- </parent>
- <groupId>info.aspirecn.iov.sjjh</groupId>
- <artifactId>iov-sjjh-servicenode-supplier-10000001</artifactId>
- <version>1.0.8</version>
-
- <properties>
- <log4j2.version>2.17.0</log4j2.version>
- </properties>
- <dependencies>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
- </dependency>
- <dependency>
- <groupId>com.squareup.okhttp3</groupId>
- <artifactId>okhttp</artifactId>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>1.2.70</version>
- </dependency>
- <!--链路日志-->
- <dependency>
- <groupId>info.aspirecn.rdc</groupId>
- <artifactId>aspirecloud-commons-sleuthlog-starter</artifactId>
- <version>5.0.1</version>
- </dependency>
- <dependency>
- <groupId>info.aspirecn.rdc</groupId>
- <artifactId>aspirecloud-commons-errorlog-starter</artifactId>
- <version>5.0.2</version>
- </dependency>
- <!--常量-->
- <dependency>
- <groupId>info.aspirecn.iov.sjjh</groupId>
- <artifactId>iov-sjjh-commons-lang</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>info.aspirecn.iov.sjjh</groupId>
- <artifactId>iov-sjjh-servicenode-supplier-10000001-interface</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-config-client</artifactId>
- </dependency>
- </dependencies>
- <dependencyManagement>
- <dependencies>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-dependencies</artifactId>
- <version>Hoxton.RELEASE</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
- </dependencies>
- </dependencyManagement>
- <build>
- <plugins>
- <plugin>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-maven-plugin</artifactId>
- <configuration>
- <includes>
- <include>
- <groupId>info.aspirecn.iov.sjjh</groupId>
- <artifactId>iov-sjjh-servicenode-supplier-10000001-interface</artifactId>
- </include>
- <include>
- <groupId>info.aspirecn.iov.sjjh</groupId>
- <artifactId>iov-sjjh-commons-lang</artifactId>
- </include>
- </includes>
- </configuration>
- </plugin>
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <addClasspath>true</addClasspath>
- <classpathPrefix>lib/</classpathPrefix>
- </manifest>
- </archive>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy-dependencies</id>
- <phase>prepare-package</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <outputDirectory>${project.build.directory}/lib</outputDirectory>
- <excludeGroupIds>
- info.aspirecn.iov.sjjh
- </excludeGroupIds>
- </configuration>
- </execution>
- <execution>
- <id>copy</id>
- <phase>install</phase>
- <goals>
- <goal>copy-dependencies</goal>
- </goals>
- <configuration>
- <outputDirectory>
- ${project.build.directory}/lib
- </outputDirectory>
- <excludeGroupIds>
- info.aspirecn.iov.sjjh
- </excludeGroupIds>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>default-resources</id>
- <phase>validate</phase>
- <goals>
- <goal>copy-resources</goal>
- </goals>
- <configuration>
- <outputDirectory>target/classes</outputDirectory>
- <useDefaultDelimiters>false</useDefaultDelimiters>
- <delimiters>
- <delimiter>@</delimiter>
- </delimiters>
- <resources>
- <resource>
- <directory>src/main/resources/config</directory>
- <targetPath>config</targetPath>
- <filtering>true</filtering>
- <includes>
- <include>**</include>
- </includes>
- </resource>
- <resource>
- <directory>src/main/resources/docker</directory>
- <targetPath>docker</targetPath>
- <filtering>true</filtering>
- <includes>
- <include>**</include>
- </includes>
- </resource>
- </resources>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.spotify</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <version>1.2.0</version>
- <configuration>
- <!-- 设置Docker 镜像名称 -->
- <imageName>hub.i139.cn/iov-sjjh/${project.artifactId}:${project.version}</imageName>
- <!-- 设置Dockerfile存放目录地址 -->
- <dockerDirectory>${project.basedir}/src/main/resources/docker</dockerDirectory>
- <resources>
- <resource>
- <targetPath>/</targetPath>
- <directory>${project.build.directory}</directory>
- <include>${project.build.finalName}.jar</include>
- </resource>
- </resources>
- <!-- 设置和setting.xml中的servers对应的server,里面存放了docker hub仓库的用户名、密码 -->
- <serverId>docker-hub</serverId>
- <!-- 设置docker hub仓库地址 -->
- <registryUrl>https://hub.i139.cn</registryUrl>
- <!-- 设置docker remote API地址 -->
- <!--<dockerHost>http://docker-in-docker.rdc-plugin:2375</dockerHost>-->
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
|