pom.xml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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>device</artifactId>
  7. <groupId>com.usoftchina.smartschool</groupId>
  8. <version>1.0.0-SNAPSHOT</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <description>device client for school</description>
  12. <artifactId>device-client</artifactId>
  13. <dependencies>
  14. <dependency>
  15. <groupId>com.usoftchina.smartschool</groupId>
  16. <artifactId>device-sdk-dahua</artifactId>
  17. </dependency>
  18. <dependency>
  19. <groupId>org.springframework.boot</groupId>
  20. <artifactId>spring-boot-starter-web</artifactId>
  21. </dependency>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-security</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>com.microsoft.sqlserver</groupId>
  28. <artifactId>mssql-jdbc</artifactId>
  29. <version>4.2.0</version>
  30. </dependency>
  31. <dependency>
  32. <groupId>com.h2database</groupId>
  33. <artifactId>h2</artifactId>
  34. </dependency>
  35. <dependency>
  36. <groupId>org.springframework.boot</groupId>
  37. <artifactId>spring-boot-starter-jdbc</artifactId>
  38. </dependency>
  39. <!-- JSON -->
  40. <dependency>
  41. <groupId>com.alibaba</groupId>
  42. <artifactId>fastjson</artifactId>
  43. </dependency>
  44. <!-- httpClient -->
  45. <dependency>
  46. <groupId>org.apache.httpcomponents</groupId>
  47. <artifactId>httpclient</artifactId>
  48. </dependency>
  49. </dependencies>
  50. <build>
  51. <plugins>
  52. <plugin>
  53. <groupId>org.springframework.boot</groupId>
  54. <artifactId>spring-boot-maven-plugin</artifactId>
  55. </plugin>
  56. <plugin>
  57. <groupId>com.akathist.maven.plugins.launch4j</groupId>
  58. <artifactId>launch4j-maven-plugin</artifactId>
  59. <version>1.7.25</version>
  60. <executions>
  61. <execution>
  62. <id>l4j</id>
  63. <phase>package</phase>
  64. <goals>
  65. <goal>launch4j</goal>
  66. </goals>
  67. </execution>
  68. </executions>
  69. <configuration>
  70. <jar>${project.build.directory}/${artifactId}-${version}.jar</jar>
  71. <headerType>console</headerType>
  72. <outfile>${project.build.directory}/device-client.exe</outfile>
  73. <downloadUrl>http://java.com/download</downloadUrl>
  74. <classPath>
  75. <mainClass>org.springframework.boot.loader.JarLauncher</mainClass>
  76. </classPath>
  77. <icon>src/main/resources/icon.ico</icon>
  78. <stayAlive>true</stayAlive>
  79. <restartOnCrash>true</restartOnCrash>
  80. <jre>
  81. <minVersion>1.8.0</minVersion>
  82. <jdkPreference>preferJre</jdkPreference>
  83. </jre>
  84. <versionInfo>
  85. <fileVersion>1.0.0.0</fileVersion>
  86. <txtFileVersion>${project.version}</txtFileVersion>
  87. <fileDescription>${project.name}</fileDescription>
  88. <copyright>2018 usoftchina.com</copyright>
  89. <productVersion>1.0.0.0</productVersion>
  90. <txtProductVersion>1.0.0.0</txtProductVersion>
  91. <productName>${project.name}</productName>
  92. <companyName>usoftchina.com</companyName>
  93. <internalName>device-client</internalName>
  94. <originalFilename>device-client.exe</originalFilename>
  95. </versionInfo>
  96. </configuration>
  97. </plugin>
  98. </plugins>
  99. </build>
  100. </project>