pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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.fdkk</groupId>
  8. <artifactId>changeing</artifactId>
  9. <version>1.0.0</version>
  10. <relativePath>../pom.xml</relativePath>
  11. </parent>
  12. <groupId>com.fdkk</groupId>
  13. <artifactId>sxz-application</artifactId>
  14. <version>1.0.0</version>
  15. <name>sxz-application</name>
  16. <description>sxz-application</description>
  17. <packaging>jar</packaging>
  18. <dependencies>
  19. <dependency>
  20. <groupId>com.fdkk</groupId>
  21. <artifactId>sxz-modules</artifactId>
  22. <version>1.0.0</version>
  23. </dependency>
  24. <dependency>
  25. <groupId>com.fdkk</groupId>
  26. <artifactId>sxz-base</artifactId>
  27. <version>1.0.0</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>com.fdkk</groupId>
  31. <artifactId>sxz-common</artifactId>
  32. <version>1.0.0</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>com.fdkk</groupId>
  36. <artifactId>sxz-core</artifactId>
  37. <version>1.0.0</version>
  38. </dependency>
  39. </dependencies>
  40. <properties>
  41. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  42. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  43. <java.version>1.8</java.version>
  44. <failOnMissingWebXml>false</failOnMissingWebXml>
  45. </properties>
  46. <profiles>
  47. <profile>
  48. <id>dev</id>
  49. <properties>
  50. <package.environment>dev</package.environment>
  51. </properties>
  52. </profile>
  53. <profile>
  54. <id>uat</id>
  55. <properties>
  56. <package.environment>uat</package.environment>
  57. </properties>
  58. </profile>
  59. <profile>
  60. <id>devuat</id>
  61. <properties>
  62. <package.environment>devuat</package.environment>
  63. </properties>
  64. </profile>
  65. <profile>
  66. <!-- 生产环境 -->
  67. <id>prod</id>
  68. <properties>
  69. <package.environment>prod</package.environment>
  70. </properties>
  71. <activation>
  72. <activeByDefault>true</activeByDefault>
  73. </activation>
  74. </profile>
  75. <profile>
  76. <!-- 生产环境 -->
  77. <id>onprod</id>
  78. <properties>
  79. <package.environment>onprod</package.environment>
  80. </properties>
  81. </profile>
  82. </profiles>
  83. <build>
  84. <finalName>changeing</finalName>
  85. <plugins>
  86. <plugin>
  87. <groupId>org.springframework.boot</groupId>
  88. <artifactId>spring-boot-maven-plugin</artifactId>
  89. <configuration>
  90. <!-- 指定该Main Class为全局的唯一入口 -->
  91. <mainClass>com.fdkk.sxz.ChangeingApplication</mainClass>
  92. <fork>true</fork>
  93. </configuration>
  94. <executions>
  95. <execution>
  96. <goals>
  97. <goal>repackage</goal><!--可以把依赖的包都打包到生成的Jar包中-->
  98. </goals>
  99. </execution>
  100. </executions>
  101. </plugin>
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-compiler-plugin</artifactId>
  105. <configuration>
  106. <source>${java.version}</source>
  107. <target>${java.version}</target>
  108. <encoding>UTF-8</encoding>
  109. </configuration>
  110. </plugin>
  111. </plugins>
  112. </build>
  113. </project>