pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <artifactId>examcloud-ws</artifactId>
  6. <packaging>jar</packaging>
  7. <parent>
  8. <groupId>cn.com.qmth.examcloud</groupId>
  9. <artifactId>examcloud-parent</artifactId>
  10. <version>${revision}</version>
  11. <relativePath>../examcloud-parent/pom.xml</relativePath>
  12. </parent>
  13. <dependencies>
  14. <dependency>
  15. <groupId>cn.com.qmth.examcloud.rpc</groupId>
  16. <artifactId>examcloud-ws-api</artifactId>
  17. <version>${project.version}</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>cn.com.qmth.examcloud</groupId>
  21. <artifactId>examcloud-support</artifactId>
  22. <version>${project.version}</version>
  23. <exclusions>
  24. <exclusion>
  25. <groupId>org.springframework.boot</groupId>
  26. <artifactId>spring-boot-starter-logging</artifactId>
  27. </exclusion>
  28. </exclusions>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter-log4j2</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-websocket</artifactId>
  37. <exclusions>
  38. <exclusion>
  39. <groupId>org.springframework.boot</groupId>
  40. <artifactId>spring-boot-starter-logging</artifactId>
  41. </exclusion>
  42. </exclusions>
  43. </dependency>
  44. </dependencies>
  45. <build>
  46. <finalName>${project.artifactId}</finalName>
  47. <plugins>
  48. <plugin>
  49. <groupId>org.springframework.boot</groupId>
  50. <artifactId>spring-boot-maven-plugin</artifactId>
  51. </plugin>
  52. <plugin>
  53. <groupId>org.apache.maven.plugins</groupId>
  54. <artifactId>maven-jar-plugin</artifactId>
  55. <configuration>
  56. <archive>
  57. <manifest>
  58. <mainClass>cn.com.qmth.examcloud.ws.WebSocketApp</mainClass>
  59. <addClasspath>true</addClasspath>
  60. <classpathPrefix>./</classpathPrefix>
  61. </manifest>
  62. <manifestEntries>
  63. <Class-Path>../config/</Class-Path>
  64. </manifestEntries>
  65. </archive>
  66. <excludes>
  67. <exclude>*.properties</exclude>
  68. <exclude>*.xml</exclude>
  69. <exclude>classpath.location</exclude>
  70. </excludes>
  71. </configuration>
  72. </plugin>
  73. <plugin>
  74. <groupId>org.apache.maven.plugins</groupId>
  75. <artifactId>maven-assembly-plugin</artifactId>
  76. <version>${maven-assembly-version}</version>
  77. <configuration>
  78. <finalName>examcloud-ws</finalName>
  79. <skipAssembly>${skipAssembly}</skipAssembly>
  80. <descriptors>
  81. <descriptor>assembly.xml</descriptor>
  82. </descriptors>
  83. </configuration>
  84. <executions>
  85. <execution>
  86. <id>make-assembly</id>
  87. <phase>install</phase>
  88. <goals>
  89. <goal>single</goal>
  90. </goals>
  91. </execution>
  92. </executions>
  93. </plugin>
  94. </plugins>
  95. </build>
  96. </project>