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.

117 lines
4.3 KiB

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