pom.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <groupId>com.gccloud</groupId>
  8. <artifactId>dataroom</artifactId>
  9. <version>2.1.0.2025010701</version>
  10. </parent>
  11. <artifactId>dataroom-server</artifactId>
  12. <properties>
  13. <maven.compiler.source>1.8</maven.compiler.source>
  14. <maven.compiler.target>1.8</maven.compiler.target>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <!-- 版本发布时,跳过该模块 -->
  17. <maven.deploy.skip>true</maven.deploy.skip>
  18. </properties>
  19. <dependencies>
  20. <!--h2database-->
  21. <dependency>
  22. <groupId>com.h2database</groupId>
  23. <artifactId>h2</artifactId>
  24. <version>1.4.200</version>
  25. <scope>runtime</scope>
  26. </dependency>
  27. <dependency>
  28. <groupId>com.gccloud</groupId>
  29. <artifactId>dataroom-core</artifactId>
  30. <version>${project.parent.version}</version>
  31. </dependency>
  32. <dependency>
  33. <groupId>io.springfox</groupId>
  34. <artifactId>springfox-swagger2</artifactId>
  35. <version>${swagger.version}</version>
  36. <exclusions>
  37. <exclusion>
  38. <groupId>io.swagger</groupId>
  39. <artifactId>swagger-models</artifactId>
  40. </exclusion>
  41. </exclusions>
  42. </dependency>
  43. <dependency>
  44. <groupId>io.swagger</groupId>
  45. <artifactId>swagger-models</artifactId>
  46. <version>${swagger-models.version}</version>
  47. </dependency>
  48. <dependency>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-starter-test</artifactId>
  51. <scope>test</scope>
  52. </dependency>
  53. </dependencies>
  54. <profiles>
  55. <profile>
  56. <id>package</id>
  57. <build>
  58. <!-- 定义打包后的名称 -->
  59. <finalName>dataroom-server</finalName>
  60. <plugins>
  61. <plugin>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-maven-plugin</artifactId>
  64. <version>2.7.16</version>
  65. <!--下面的代码可以将依赖的第三方jar包通过maven插件打入工程的lib中-->
  66. <executions>
  67. <execution>
  68. <goals>
  69. <goal>repackage</goal>
  70. </goals>
  71. </execution>
  72. </executions>
  73. <configuration>
  74. <!--修改为对应启动的main方法-->
  75. <mainClass>com.gccloud.DataRoomApplication</mainClass>
  76. <includeSystemScope>true</includeSystemScope>
  77. </configuration>
  78. </plugin>
  79. <plugin>
  80. <groupId>org.apache.maven.plugins</groupId>
  81. <artifactId>maven-surefire-plugin</artifactId>
  82. <version>2.22.2</version>
  83. <configuration>
  84. <skipTests>true</skipTests>
  85. </configuration>
  86. </plugin>
  87. <plugin>
  88. <artifactId>maven-compiler-plugin</artifactId>
  89. <version>3.8.1</version>
  90. </plugin>
  91. <plugin>
  92. <groupId>org.apache.maven.plugins</groupId>
  93. <artifactId>maven-source-plugin</artifactId>
  94. <version>3.2.1</version>
  95. <executions>
  96. <execution>
  97. <phase>package</phase>
  98. <goals>
  99. <goal>jar-no-fork</goal>
  100. </goals>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. </plugins>
  105. </build>
  106. </profile>
  107. </profiles>
  108. </project>