pom.xml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>com.sr.smp</groupId>
  7. <artifactId>sr-smp-admin</artifactId>
  8. <version>1.0</version>
  9. </parent>
  10. <groupId>com.sr.smp</groupId>
  11. <artifactId>sr_smp_webapi</artifactId>
  12. <version>1.0</version>
  13. <name>sr_smp_webapi</name>
  14. <description>sr_smp_webapi</description>
  15. <properties>
  16. <java.version>1.8</java.version>
  17. <maven.compiler.source>8</maven.compiler.source>
  18. <maven.compiler.target>8</maven.compiler.target>
  19. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-test</artifactId>
  29. <scope>test</scope>
  30. </dependency>
  31. </dependencies>
  32. <build>
  33. <plugins>
  34. <plugin>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-maven-plugin</artifactId>
  37. <executions>
  38. <execution>
  39. <goals>
  40. <goal>repackage</goal>
  41. </goals>
  42. </execution>
  43. </executions>
  44. </plugin>
  45. <plugin>
  46. <groupId>org.apache.maven.plugins</groupId>
  47. <artifactId>maven-compiler-plugin</artifactId>
  48. <version>${maven.compiler.plugin.version}</version>
  49. <configuration>
  50. <source>${java.version}</source>
  51. <target>${java.version}</target>
  52. <encoding>${project.build.sourceEncoding}</encoding>
  53. </configuration>
  54. </plugin>
  55. <plugin>
  56. <groupId>org.apache.maven.plugins</groupId>
  57. <artifactId>maven-surefire-plugin</artifactId>
  58. <version>${maven.surefire.plugin.version}</version>
  59. <configuration>
  60. <skipTests>true</skipTests> <!--打包过程默认关掉单元测试 -->
  61. </configuration>
  62. </plugin>
  63. </plugins>
  64. </build>
  65. </project>