123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- <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>info.aspirecn.rdc</groupId>
- <artifactId>aspirecloud-starter-parent</artifactId>
- <version>5.0.3</version>
- </parent>
- <artifactId>iov-sjjh-servicenode-supplier-10000033</artifactId>
- <version>1.2.12.1</version>
- <name>iov-sjjh-servicenode-supplier-10000033</name>
- <url>http://maven.apache.org</url>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <dependencies>
- <!-- 服务注册 -->
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
- </dependency>
-
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-web</artifactId>
- </dependency>
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger2</artifactId>
- </dependency>
- <dependency>
- <groupId>io.springfox</groupId>
- <artifactId>springfox-swagger-ui</artifactId>
- </dependency>
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-devtools</artifactId>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>org.springframework.cloud</groupId>
- <artifactId>spring-cloud-config-client</artifactId>
- </dependency>
-
- <!-- aspire maven私服 -->
- <dependency>
- <groupId>info.aspirecn.rdc</groupId>
- <artifactId>aspirecloud-commons-sleuthlog-starter</artifactId>
- </dependency>
-
- <dependency>
- <groupId>info.aspirecn.rdc</groupId>
- <artifactId>aspirecloud-commons-errorlog-starter</artifactId>
- </dependency>
- <dependency>
- <groupId>com.squareup.okhttp3</groupId>
- <artifactId>okhttp</artifactId>
- </dependency>
- <dependency>
- <groupId>commons-codec</groupId>
- <artifactId>commons-codec</artifactId>
- </dependency>
- <dependency>
- <groupId>info.aspirecn.iov.sjjh</groupId>
- <artifactId>iov-sjjh-commons-lang</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>openapi.sdk</groupId>
- <artifactId>openapi-sdk</artifactId>
- <version>6.0</version>
- <scope>system</scope>
- <systemPath>${project.basedir}/src/main/resources/lib/openapi-sdk-6.0.jar</systemPath>
- </dependency>
- </dependencies>
-
- <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-commons-lang</artifactId>
- </include>
- <include>
- <groupId>openapi.sdk</groupId>
- <artifactId>openapi-sdk</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>
|