Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns="http://maven.apache.org/POM/4.0.0"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
- <modelVersion>4.0.0</modelVersion>
-
- <groupId>com.yzx.hardware-access</groupId>
- <artifactId>hardware-access</artifactId>
- <version>1.0.0</version>
-
- <properties>
- <maven.compiler.source>8</maven.compiler.source>
- <maven.compiler.target>8</maven.compiler.target>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- </properties>
- <dependencies>
- <dependency>
- <groupId>com.sun.jna</groupId>
- <artifactId>examples</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>com.hikvision</groupId>
- <artifactId>netsdk</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>com.sun.jna</groupId>
- <artifactId>jna</artifactId>
- <version>1.0.0</version>
- </dependency>
- <dependency>
- <groupId>org.projectlombok</groupId>
- <artifactId>lombok</artifactId>
- <version>1.18.22</version>
- <optional>true</optional>
- </dependency>
- <dependency>
- <groupId>com.alibaba</groupId>
- <artifactId>fastjson</artifactId>
- <version>1.2.7</version>
- </dependency>
- </dependencies>
- <build>
- <plugins>
- <!-- <plugin>-->
- <!-- <artifactId>maven-assembly-plugin</artifactId>-->
- <!-- <configuration>-->
- <!-- <archive>-->
- <!-- <manifest>-->
- <!-- <mainClass>com.yzx.Main</mainClass>-->
- <!-- </manifest>-->
- <!-- </archive>-->
- <!-- <descriptorRefs>-->
- <!-- <descriptorRef>jar-with-dependencies</descriptorRef>-->
- <!-- </descriptorRefs>-->
- <!-- </configuration>-->
- <!-- </plugin>-->
-
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <!--3.0.0可以报红,但是问题不大,能用-->
- <!-- <version>3.0.0</version>-->
- <configuration>
- <archive>
- <!--指定程序运行主类-->
- <manifest>
- <mainClass>com.hkversion.Acs.AcsMain</mainClass>
- </manifest>
- </archive>
- <descriptorRefs>
- <descriptorRef>jar-with-dependencies</descriptorRef>
- </descriptorRefs>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>package</phase>
- <!--这一行在idea里面可能会报红,但是没有报错,而且这句才是关键,如果去掉这一句不会生成拥有全部依赖的jar包-->
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
|