pom.xml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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>org.example</groupId>
  7. <artifactId>104SLAVER</artifactId>
  8. <version>1.0-SNAPSHOT</version>
  9. <properties>
  10. <maven.compiler.source>8</maven.compiler.source>
  11. <maven.compiler.target>8</maven.compiler.target>
  12. </properties>
  13. <dependencies>
  14. <dependency>
  15. <groupId>wei.yigulu</groupId>
  16. <artifactId>protocol-iec104</artifactId>
  17. <version>1.4.25</version>
  18. </dependency>
  19. <dependency>
  20. <groupId>com.googlecode.aviator</groupId>
  21. <artifactId>aviator</artifactId>
  22. <version>5.0.0</version>
  23. </dependency>
  24. </dependencies>
  25. <build>
  26. <plugins>
  27. <plugin>
  28. <groupId>org.apache.maven.plugins</groupId>
  29. <artifactId>maven-compiler-plugin</artifactId>
  30. <configuration>
  31. <source>1.8</source>
  32. <target>1.8</target>
  33. </configuration>
  34. </plugin>
  35. <plugin>
  36. <groupId>org.apache.maven.plugins</groupId>
  37. <artifactId>maven-shade-plugin</artifactId>
  38. <version>2.4.3</version>
  39. <executions>
  40. <execution>
  41. <phase>package</phase>
  42. <goals>
  43. <goal>shade</goal>
  44. </goals>
  45. <configuration>
  46. <createDependencyReducedPom>false</createDependencyReducedPom>
  47. <transformers>
  48. <transformer
  49. implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
  50. <mainClass>StartHttpServer</mainClass>
  51. </transformer>
  52. </transformers>
  53. </configuration>
  54. </execution>
  55. </executions>
  56. </plugin>
  57. <plugin>
  58. <groupId>org.apache.maven.plugins</groupId>
  59. <artifactId>maven-surefire-plugin</artifactId>
  60. <version>2.18.1</version>
  61. <configuration>
  62. <skipTests>true</skipTests>
  63. </configuration>
  64. </plugin>
  65. <plugin>
  66. <groupId>org.sonatype.plugins</groupId>
  67. <artifactId>nexus-staging-maven-plugin</artifactId>
  68. <version>1.5.1</version>
  69. <executions>
  70. <execution>
  71. <id>default-deploy</id>
  72. <phase>deploy</phase>
  73. <goals>
  74. <goal>deploy</goal>
  75. </goals>
  76. </execution>
  77. </executions>
  78. <configuration>
  79. <serverId>ias-releases</serverId>
  80. <nexusUrl>https://maven.mangoautomation.net/</nexusUrl>
  81. <skipStaging>true</skipStaging>
  82. </configuration>
  83. </plugin>
  84. <plugin>
  85. <artifactId>maven-source-plugin</artifactId>
  86. <version>2.1</version>
  87. <configuration>
  88. <attach>true</attach>
  89. </configuration>
  90. <executions>
  91. <execution>
  92. <phase>compile</phase>
  93. <goals>
  94. <goal>jar</goal>
  95. </goals>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. </plugins>
  100. </build>
  101. </project>