You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

111 lines
4.1 KiB

1 year ago
1 year ago
  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>cas-server</artifactId>
  7. <groupId>com.inscloudtech</groupId>
  8. <version>4.7.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <packaging>jar</packaging>
  12. <artifactId>cas-admin</artifactId>
  13. <description>
  14. web服务入口
  15. </description>
  16. <dependencies>
  17. <!-- spring-boot-devtools -->
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-devtools</artifactId>
  21. <optional>true</optional> <!-- 表示依赖不会传递 -->
  22. </dependency>
  23. <!-- Mysql驱动包 -->
  24. <dependency>
  25. <groupId>com.mysql</groupId>
  26. <artifactId>mysql-connector-j</artifactId>
  27. </dependency>
  28. <!-- 核心模块-->
  29. <dependency>
  30. <groupId>com.inscloudtech</groupId>
  31. <artifactId>cas-framework</artifactId>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.inscloudtech</groupId>
  35. <artifactId>cas-system</artifactId>
  36. </dependency>
  37. <!-- 代码生成-->
  38. <dependency>
  39. <groupId>com.inscloudtech</groupId>
  40. <artifactId>cas-generator</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-test</artifactId>
  45. <scope>test</scope>
  46. </dependency>
  47. </dependencies>
  48. <build>
  49. <finalName>${project.artifactId}</finalName>
  50. <plugins>
  51. <plugin>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-maven-plugin</artifactId>
  54. <version>${spring-boot.version}</version>
  55. <configuration>
  56. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  57. </configuration>
  58. <executions>
  59. <execution>
  60. <goals>
  61. <goal>repackage</goal>
  62. </goals>
  63. </execution>
  64. </executions>
  65. </plugin>
  66. <plugin>
  67. <groupId>org.apache.maven.plugins</groupId>
  68. <artifactId>maven-war-plugin</artifactId>
  69. <version>3.2.2</version>
  70. <configuration>
  71. <failOnMissingWebXml>false</failOnMissingWebXml>
  72. <warName>${project.artifactId}</warName>
  73. </configuration>
  74. </plugin>
  75. <plugin>
  76. <groupId>net.roseboy</groupId>
  77. <artifactId>classfinal-maven-plugin</artifactId>
  78. <version>1.2.1</version>
  79. <configuration>
  80. <password>#</password><!-- #表示启动时不需要密码,事实上对于代码混淆来说,这个密码没什么用,它只是一个启动密码 -->
  81. <excludes>org.spring</excludes>
  82. <packages>com.inscloudtech</packages><!-- 加密的包名,多个包用逗号分开 -->
  83. <cfgfiles>application.yml,application-dev.yml,application-prod.yml,application-soft.yml</cfgfiles>
  84. <libjars>cas-system-4.7.0.jar</libjars><!-- jar包lib下面要加密的jar依赖文件,多个包用逗号分开 -->
  85. <!-- <code>78828431441AC7E1D92FC694D6886239D41D8CD98F00B204E9800998ECF8427ED41D8CD98F00B204E9800998ECF8427E</code> &lt;!&ndash; 指定机器启动,机器码 &ndash;&gt;-->
  86. </configuration>
  87. <executions>
  88. <execution>
  89. <phase>package</phase>
  90. <goals>
  91. <goal>classFinal</goal>
  92. </goals>
  93. </execution>
  94. </executions>
  95. </plugin>
  96. </plugins>
  97. </build>
  98. </project>