| | |
| | | <groupId>org.springframework</groupId> |
| | | <artifactId>spring-web</artifactId> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>org.bouncycastle</groupId> |
| | | <artifactId>bcprov-jdk15on</artifactId> |
| | | <version>1.68</version> |
| | | </dependency> |
| | | <dependency> |
| | | <groupId>com.ruim.ifsp</groupId> |
| | | <artifactId>signature</artifactId> |
| | | <version>1.1.0.6</version> |
| | | </dependency> |
| | | </dependencies> |
| | | |
| | | <build> |
| | | <plugins> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>io.fabric8</groupId> |
| | | <artifactId>docker-maven-plugin</artifactId> |
| | | </plugin> |
| | | <!--上线部署 JAR启动分离依赖lib和配置--> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-resources-plugin</artifactId> |
| | | <version>3.1.0</version> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | </plugin> |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-jar-plugin</artifactId> |
| | |
| | | <directory>src/main/resources</directory> |
| | | <!-- 指定参与构建的resoures--> |
| | | <includes> |
| | | <include>*.**</include> |
| | | <include>**/*</include> |
| | | </includes> |
| | | <filtering>true</filtering> |
| | | </resource> |
| | | </resources> |
| | | <outputDirectory>1-running/config</outputDirectory> |
| | |
| | | </executions> |
| | | </plugin> |
| | | </plugins> |
| | | <resources> |
| | | <resource> |
| | | <directory>libs</directory> |
| | | <targetPath>BOOT-INF/lib/</targetPath> |
| | | <includes> |
| | | <include>*.jar</include> |
| | | </includes> |
| | | </resource> |
| | | </resources> |
| | | </build> |
| | | |
| | | <!-- <build>--> |
| | | <!-- <plugins>--> |
| | | <!-- <plugin>--> |
| | | <!-- <groupId>org.apache.maven.plugins</groupId>--> |
| | | <!-- <artifactId>maven-jar-plugin</artifactId>--> |
| | | <!-- <configuration>--> |
| | | <!-- <!–不打包资源文件–>--> |
| | | <!-- <excludes>--> |
| | | <!-- <exclude>*.**</exclude>--> |
| | | <!-- </excludes>--> |
| | | <!-- <archive>--> |
| | | <!-- <manifest>--> |
| | | <!-- <addClasspath>true</addClasspath>--> |
| | | <!-- <classpathPrefix>lib/</classpathPrefix>--> |
| | | <!-- <!–jar包不包含唯一版本标识–>--> |
| | | <!-- <useUniqueVersions>false</useUniqueVersions>--> |
| | | <!-- <!–程序启动类application.java的路径–>--> |
| | | <!-- <mainClass>com.boying.Application</mainClass>--> |
| | | <!-- </manifest>--> |
| | | <!-- <!– 指定配置文件目录,这样jar运行时会去找到同目录下的config文件夹下查找 –>--> |
| | | <!-- <manifestEntries>--> |
| | | <!-- <Class-Path>config/</Class-Path>--> |
| | | <!-- </manifestEntries>--> |
| | | <!-- </archive>--> |
| | | <!-- <outputDirectory>1-running/</outputDirectory>--> |
| | | <!-- </configuration>--> |
| | | <!-- </plugin>--> |
| | | <!-- <!–拷贝依赖 copy-dependencies–>--> |
| | | <!-- <plugin>--> |
| | | <!-- <groupId>org.apache.maven.plugins</groupId>--> |
| | | <!-- <artifactId>maven-dependency-plugin</artifactId>--> |
| | | <!-- <executions>--> |
| | | <!-- <execution>--> |
| | | <!-- <id>copy-dependencies</id>--> |
| | | <!-- <phase>package</phase>--> |
| | | <!-- <goals>--> |
| | | <!-- <goal>copy-dependencies</goal>--> |
| | | <!-- </goals>--> |
| | | <!-- <configuration>--> |
| | | <!-- <outputDirectory>--> |
| | | <!-- 1-running/lib/--> |
| | | <!-- </outputDirectory>--> |
| | | <!-- </configuration>--> |
| | | <!-- </execution>--> |
| | | <!-- </executions>--> |
| | | <!-- </plugin>--> |
| | | <!-- <!–拷贝资源文件 copy-resources–>--> |
| | | <!-- <plugin>--> |
| | | <!-- <artifactId>maven-resources-plugin</artifactId>--> |
| | | <!-- <executions>--> |
| | | <!-- <execution>--> |
| | | <!-- <id>copy-resources</id>--> |
| | | <!-- <phase>package</phase>--> |
| | | <!-- <goals>--> |
| | | <!-- <goal>copy-resources</goal>--> |
| | | <!-- </goals>--> |
| | | <!-- <configuration>--> |
| | | <!-- <resources>--> |
| | | <!-- <resource>--> |
| | | <!-- <directory>src/main/resources</directory>--> |
| | | <!-- <!– 指定参与构建的resoures–>--> |
| | | <!-- <includes>--> |
| | | <!-- <include>**/*</include>--> |
| | | <!-- </includes>--> |
| | | <!-- <filtering>true</filtering>--> |
| | | <!-- </resource>--> |
| | | <!-- </resources>--> |
| | | <!-- <outputDirectory>1-running/config</outputDirectory>--> |
| | | <!-- </configuration>--> |
| | | <!-- </execution>--> |
| | | <!-- </executions>--> |
| | | <!-- </plugin>--> |
| | | <!-- </plugins>--> |
| | | <!-- <resources>--> |
| | | <!-- <resource>--> |
| | | <!-- <!– directory 表示取该目录下的文件 –>--> |
| | | <!-- <directory>libs</directory>--> |
| | | <!-- <!–targetPath 指定打包到哪个目录下 默认是放到class目录下–>--> |
| | | <!-- <targetPath>/BOOT-INF/lib/</targetPath>--> |
| | | <!-- <!– 取符合格式的所有文件 *代表全部 –>--> |
| | | <!-- <includes>--> |
| | | <!-- <include>**/*.jar</include>--> |
| | | <!-- </includes>--> |
| | | <!-- </resource>--> |
| | | <!-- <!– 打包jar时解开下方的注释,如果是编译器运行项目时注释掉下方配置,--> |
| | | <!-- 因为编译器运行项目时,项目会读取外部依赖包的配置文件,--> |
| | | <!-- 项目本身的配置文件读不到 –>--> |
| | | <!-- <!–<resource>--> |
| | | <!-- 把src/main/resources下的所有配置文件加载到打包后的BOOT-INF/classes文件中--> |
| | | <!-- <directory>src/main/resources</directory>--> |
| | | <!-- <targetPath>BOOT-INF/classes</targetPath>--> |
| | | <!-- </resource>–>--> |
| | | <!-- </resources>--> |
| | | <!-- </build>--> |
| | | |
| | | |
| | | </project> |