pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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. <groupId>com.ozs</groupId>
  7. <artifactId>GeoHazardMonitor</artifactId>
  8. <packaging>pom</packaging>
  9. <version>1.0-SNAPSHOT</version>
  10. <name>hazard</name>
  11. <description>地质灾害系统</description>
  12. <properties>
  13. <base.version>1.0-SNAPSHOT</base.version>
  14. <hazard.version>1.0-SNAPSHOT</hazard.version>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <!-- 依赖声明 -->
  20. <dependencyManagement>
  21. <dependencies>
  22. <!-- SpringBoot的依赖配置-->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-dependencies</artifactId>
  26. <version>2.5.14</version>
  27. <type>pom</type>
  28. <scope>import</scope>
  29. </dependency>
  30. <!-- 通用工具-->
  31. <dependency>
  32. <groupId>com.ozs</groupId>
  33. <artifactId>base-common</artifactId>
  34. <version>${base.version}</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.ozs</groupId>
  38. <artifactId>base-framework</artifactId>
  39. <version>${base.version}</version>
  40. </dependency>
  41. <!-- 定时任务-->
  42. <dependency>
  43. <groupId>com.ozs</groupId>
  44. <artifactId>base-quartz</artifactId>
  45. <version>${base.version}</version>
  46. </dependency>
  47. <!-- 代码生成-->
  48. <dependency>
  49. <groupId>com.ozs</groupId>
  50. <artifactId>base-generator</artifactId>
  51. <version>${base.version}</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.ozs</groupId>
  55. <artifactId>business-service</artifactId>
  56. <version>${hazard.version}</version>
  57. </dependency>
  58. </dependencies>
  59. </dependencyManagement>
  60. <modules>
  61. <module>hazard-admin</module>
  62. <module>business-service</module>
  63. <module>hazard-sdk</module>
  64. </modules>
  65. <build>
  66. <plugins>
  67. <plugin>
  68. <groupId>org.apache.maven.plugins</groupId>
  69. <artifactId>maven-compiler-plugin</artifactId>
  70. <version>3.1</version>
  71. <configuration>
  72. <source>${java.version}</source>
  73. <target>${java.version}</target>
  74. <encoding>${project.build.sourceEncoding}</encoding>
  75. </configuration>
  76. </plugin>
  77. </plugins>
  78. </build>
  79. <!-- <repositories>-->
  80. <!-- <repository>-->
  81. <!-- <id>public</id>-->
  82. <!-- <name>aliyun nexus</name>-->
  83. <!-- <url>https://maven.aliyun.com/repository/public</url>-->
  84. <!-- <releases>-->
  85. <!-- <enabled>true</enabled>-->
  86. <!-- </releases>-->
  87. <!-- </repository>-->
  88. <!-- </repositories>-->
  89. <!-- <pluginRepositories>-->
  90. <!-- <pluginRepository>-->
  91. <!-- <id>public</id>-->
  92. <!-- <name>aliyun nexus</name>-->
  93. <!-- <url>https://maven.aliyun.com/repository/public</url>-->
  94. <!-- <releases>-->
  95. <!-- <enabled>true</enabled>-->
  96. <!-- </releases>-->
  97. <!-- <snapshots>-->
  98. <!-- <enabled>false</enabled>-->
  99. <!-- </snapshots>-->
  100. <!-- </pluginRepository>-->
  101. <!-- </pluginRepositories>-->
  102. <repositories>
  103. <repository>
  104. <id>custom_group</id>
  105. <name>Nexus Repository</name>
  106. <url>http://47.94.132.61:18881/repository/custom_group/</url>
  107. <snapshots>
  108. <enabled>true</enabled>
  109. </snapshots>
  110. <releases>
  111. <enabled>true</enabled>
  112. </releases>
  113. </repository>
  114. </repositories>
  115. <pluginRepositories>
  116. <pluginRepository>
  117. <id>custom_group</id>
  118. <name>Nexus Plugin Repository</name>
  119. <url>http://47.94.132.61:18881/repository/custom_group/</url>
  120. <snapshots>
  121. <enabled>true</enabled>
  122. </snapshots>
  123. <releases>
  124. <enabled>true</enabled>
  125. </releases>
  126. </pluginRepository>
  127. </pluginRepositories>
  128. <!--项目分发信息,在执行mvn deploy后表示要发布的位置。有了这些信息就可以把网站部署到远程服务器或者把构件jar等部署到远程仓库。 -->
  129. <distributionManagement>
  130. <repository><!--部署项目产生的构件到远程仓库需要的信息 -->
  131. <id>custom_releases</id><!-- 此处id和settings.xml的id保持一致 -->
  132. <name>Nexus Release Repository</name>
  133. <url>http://47.94.132.61:18881/repository/custom_releases/</url>
  134. </repository>
  135. <snapshotRepository><!--构件的快照部署到哪里?如果没有配置该元素,默认部署到repository元素配置的仓库,参见distributionManagement/repository元素 -->
  136. <id>custom_snapshots</id><!-- 此处id和settings.xml的id保持一致 -->
  137. <name>Nexus Snapshot Repository</name>
  138. <url>http://47.94.132.61:18881/repository/custom_snapshots/</url>
  139. </snapshotRepository>
  140. </distributionManagement>
  141. </project>