pom.xml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <parent>
  6. <artifactId>usoft-credit-parent</artifactId>
  7. <groupId>com.usoft.credit</groupId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>usoft-credit-service</artifactId>
  12. <packaging>jar</packaging>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.usoft.credit</groupId>
  16. <artifactId>usoft-credit-bl</artifactId>
  17. <version>1.0.0-SNAPSHOT</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>org.lognet</groupId>
  21. <artifactId>grpc-spring-boot-starter</artifactId>
  22. </dependency>
  23. </dependencies>
  24. <build>
  25. <finalName>usoft-credit-service</finalName>
  26. <!-- 开启资源文件过滤 -->
  27. <resources>
  28. <resource>
  29. <directory>${project.basedir}/src/main/resources</directory>
  30. <filtering>true</filtering>
  31. <targetPath>${project.build.directory}/classes</targetPath>
  32. </resource>
  33. </resources>
  34. <plugins>
  35. <plugin>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-maven-plugin</artifactId>
  38. <version>1.5.11.RELEASE</version>
  39. <executions>
  40. <execution>
  41. <goals>
  42. <goal>repackage</goal>
  43. </goals>
  44. </execution>
  45. </executions>
  46. <configuration>
  47. <!-- 生成 jar 包找不到启动类,这里指定 -->
  48. <mainClass>com.usoft.credit.CreditGrpcApplication</mainClass>
  49. <executable>true</executable>
  50. </configuration>
  51. </plugin>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-surefire-plugin</artifactId>
  55. <version>2.12.4</version>
  56. <configuration>
  57. <!-- 设置打包过程中不编译单元测试代码 TEST -->
  58. <skipTests>true</skipTests>
  59. </configuration>
  60. </plugin>
  61. </plugins>
  62. </build>
  63. </project>