pom.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  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>org.springframework.boot</groupId>
  8. <artifactId>spring-boot-starter-parent</artifactId>
  9. <version>2.7.8</version>
  10. <relativePath/> <!-- lookup parent from repository -->
  11. </parent>
  12. <groupId>tofly</groupId>
  13. <artifactId>opc-gateway</artifactId>
  14. <version>1.0-SNAPSHOT</version>
  15. <properties>
  16. <maven.compiler.source>8</maven.compiler.source>
  17. <maven.compiler.target>8</maven.compiler.target>
  18. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  19. </properties>
  20. <dependencies>
  21. <dependency>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter</artifactId>
  24. </dependency>
  25. <dependency>
  26. <groupId>de.roskenet</groupId>
  27. <artifactId>springboot-javafx-support</artifactId>
  28. <version>2.1.6</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.projectlombok</groupId>
  32. <artifactId>lombok</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>javafish.clients</groupId>
  36. <artifactId>jeasyopc</artifactId>
  37. <version>1.0</version>
  38. <scope>system</scope>
  39. <systemPath>${basedir}/lib/jeasyopc.jar</systemPath>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.springframework.boot</groupId>
  43. <artifactId>spring-boot-starter-jdbc</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.h2database</groupId>
  47. <artifactId>h2</artifactId>
  48. <scope>runtime</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.oracle.database.jdbc</groupId>
  52. <artifactId>ojdbc6</artifactId>
  53. <version>11.2.0.4</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>com.mysql</groupId>
  57. <artifactId>mysql-connector-j</artifactId>
  58. <version>8.0.33</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>org.postgresql</groupId>
  62. <artifactId>postgresql</artifactId>
  63. <version>42.2.20</version>
  64. </dependency>
  65. <!--<dependency>
  66. <groupId>org.openjfx</groupId>
  67. <artifactId>javafx-base</artifactId>
  68. <version>14-ea+7</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>org.openjfx</groupId>
  72. <artifactId>javafx-graphics</artifactId>
  73. <version>14-ea+7</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.openjfx</groupId>
  77. <artifactId>javafx-controls</artifactId>
  78. <version>14-ea+7</version>
  79. <classifier></classifier>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.openjfx</groupId>
  83. <artifactId>javafx-swing</artifactId>
  84. <version>14-ea+7</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.openjfx</groupId>
  88. <artifactId>javafx-fxml</artifactId>
  89. <version>14-ea+7</version>
  90. </dependency>-->
  91. </dependencies>
  92. <build>
  93. <plugins>
  94. <plugin>
  95. <groupId>org.apache.maven.plugins</groupId>
  96. <artifactId>maven-dependency-plugin</artifactId>
  97. <executions>
  98. <execution>
  99. <id>copy-dependencies</id>
  100. <phase>prepare-package</phase>
  101. <goals>
  102. <goal>copy-dependencies</goal>
  103. </goals>
  104. <configuration>
  105. <!--复制到哪个路径,${project.build.directory} 缺醒为 target,其他内置参数见下面解释-->
  106. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  107. <overWriteReleases>false</overWriteReleases>
  108. <overWriteSnapshots>false</overWriteSnapshots>
  109. <overWriteIfNewer>true</overWriteIfNewer>
  110. </configuration>
  111. </execution>
  112. </executions>
  113. </plugin>
  114. <plugin>
  115. <groupId>org.apache.maven.plugins</groupId>
  116. <artifactId>maven-resources-plugin</artifactId>
  117. <configuration>
  118. <encoding>UTF-8</encoding>
  119. </configuration>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.springframework.boot</groupId>
  123. <artifactId>spring-boot-maven-plugin</artifactId>
  124. <configuration>
  125. <excludes>
  126. <exclude>
  127. <groupId>org.projectlombok</groupId>
  128. <artifactId>lombok</artifactId>
  129. </exclude>
  130. </excludes>
  131. <finalName>
  132. opc-gateway-boot
  133. </finalName>
  134. <jvmArguments>-Dfile.encoding=UTF-8</jvmArguments>
  135. <mainClass>tofly.opc_gateway.Application</mainClass>
  136. <includes>
  137. <include>
  138. <groupId>${project.groupId}</groupId>
  139. <artifactId>${project.artifactId}</artifactId>
  140. </include>
  141. </includes>
  142. <layout>ZIP</layout>
  143. </configuration>
  144. </plugin>
  145. </plugins>
  146. </build>
  147. </project>