pom.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. <groupId>com.gct.driver</groupId>
  7. <artifactId>driver-modbus-siemens</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <dependencies>
  10. <dependency>
  11. <groupId>com.gct.common.driver</groupId>
  12. <artifactId>data-engine-driver</artifactId>
  13. <version>1.0-SNAPSHOT</version>
  14. </dependency>
  15. </dependencies>
  16. <properties>
  17. <maven.compiler.source>8</maven.compiler.source>
  18. <maven.compiler.target>8</maven.compiler.target>
  19. <jdk.version>8</jdk.version>
  20. <lombok.version>1.16.18</lombok.version>
  21. <lombok-maven-plugin.version>1.16.6.1</lombok-maven-plugin.version>
  22. <maven-compiler-plugin.version>3.8.1</maven-compiler-plugin.version>
  23. </properties>
  24. <profiles>
  25. <profile>
  26. <id>gct-maven-profile</id>
  27. <activation>
  28. <!-- 默认激活此 profile -->
  29. <activeByDefault>true</activeByDefault>
  30. </activation>
  31. <repositories>
  32. <repository>
  33. <id>nexus</id>
  34. <name>Nexus Repository</name>
  35. <url>http://114.115.206.163:8081/repository/maven-public/</url>
  36. <releases>
  37. <enabled>true</enabled>
  38. </releases>
  39. </repository>
  40. <repository>
  41. <id>central</id>
  42. <name>Nexus Central Repository</name>
  43. <url>http://114.115.206.163:8081/repository/maven-central/</url>
  44. <releases>
  45. <enabled>true</enabled>
  46. </releases>
  47. <snapshots>
  48. <enabled>false</enabled>
  49. </snapshots>
  50. </repository>
  51. <repository>
  52. <id>release</id>
  53. <name>Nexus Release Repository</name>
  54. <url>http://114.115.206.163:8081/repository/maven-releases/</url>
  55. <releases>
  56. <enabled>true</enabled>
  57. </releases>
  58. <snapshots>
  59. <enabled>false</enabled>
  60. </snapshots>
  61. </repository>
  62. <repository>
  63. <id>snapshots</id>
  64. <name>Nexus Snapshots Repository</name>
  65. <url>http://114.115.206.163:8081/repository/maven-snapshots/</url>
  66. <releases>
  67. <enabled>true</enabled>
  68. </releases>
  69. <snapshots>
  70. <enabled>true</enabled>
  71. <updatePolicy>always</updatePolicy>
  72. <checksumPolicy>warn</checksumPolicy>
  73. </snapshots>
  74. </repository>
  75. </repositories>
  76. <pluginRepositories>
  77. <pluginRepository>
  78. <id>plugins</id>
  79. <name>Nexus Plugin Repositories</name>
  80. <url>http://114.115.206.163:8081/repository/maven-public/</url>
  81. </pluginRepository>
  82. </pluginRepositories>
  83. </profile>
  84. </profiles>
  85. <build>
  86. <plugins>
  87. <plugin>
  88. <artifactId>maven-assembly-plugin</artifactId>
  89. <configuration>
  90. <appendAssemblyId>false</appendAssemblyId>
  91. <descriptorRefs>
  92. <descriptorRef>jar-with-dependencies</descriptorRef>
  93. </descriptorRefs>
  94. <archive>
  95. <manifest>
  96. <!-- 此处指定main方法入口的class -->
  97. <mainClass>com.gct.driver.Main</mainClass>
  98. </manifest>
  99. </archive>
  100. </configuration>
  101. <executions>
  102. <execution>
  103. <id>make-assembly</id>
  104. <phase>package</phase>
  105. <goals>
  106. <goal>assembly</goal>
  107. </goals>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. </plugins>
  112. </build>
  113. </project>