|
@@ -7,28 +7,110 @@
|
7
|
7
|
<groupId>com.huiju.welcome</groupId>
|
8
|
8
|
<artifactId>hardware</artifactId>
|
9
|
9
|
<version>v3.0.0</version>
|
|
10
|
+ <properties>
|
|
11
|
+ <maven.compiler.source>1.8</maven.compiler.source>
|
|
12
|
+ <maven.compiler.target>1.8</maven.compiler.target>
|
|
13
|
+ </properties>
|
10
|
14
|
<build>
|
11
|
15
|
<plugins>
|
12
|
16
|
<plugin>
|
13
|
17
|
<groupId>org.apache.maven.plugins</groupId>
|
14
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
18
|
+ <artifactId>maven-dependency-plugin</artifactId>
|
|
19
|
+ <executions>
|
|
20
|
+ <execution>
|
|
21
|
+ <id>copy</id>
|
|
22
|
+ <phase>compile</phase>
|
|
23
|
+ <goals>
|
|
24
|
+ <goal>copy-dependencies</goal>
|
|
25
|
+ </goals>
|
|
26
|
+ <configuration>
|
|
27
|
+ <outputDirectory>${project.build.directory}/libs</outputDirectory>
|
|
28
|
+ </configuration>
|
|
29
|
+ </execution>
|
|
30
|
+ </executions>
|
|
31
|
+ </plugin>
|
|
32
|
+ <!--直接将所有依赖一起打包-->
|
|
33
|
+ <plugin>
|
|
34
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
35
|
+ <artifactId>maven-assembly-plugin</artifactId>
|
|
36
|
+ <version>3.1.1</version>
|
15
|
37
|
<configuration>
|
16
|
|
- <source>8</source>
|
17
|
|
- <target>8</target>
|
|
38
|
+ <archive>
|
|
39
|
+ <manifest>
|
|
40
|
+ <mainClass>com.huiju.welcome.hardware.Main</mainClass>
|
|
41
|
+ </manifest>
|
|
42
|
+ </archive>
|
|
43
|
+ <descriptorRefs>
|
|
44
|
+ <descriptorRef>src/assembly/myassembly.xml</descriptorRef>
|
|
45
|
+ </descriptorRefs>
|
18
|
46
|
</configuration>
|
|
47
|
+ <executions>
|
|
48
|
+ <execution>
|
|
49
|
+ <id>make-assembly</id>
|
|
50
|
+ <phase>package</phase>
|
|
51
|
+ <goals>
|
|
52
|
+ <goal>single</goal>
|
|
53
|
+ </goals>
|
|
54
|
+ </execution>
|
|
55
|
+ </executions>
|
19
|
56
|
</plugin>
|
|
57
|
+ <!--<plugin>-->
|
|
58
|
+ <!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
59
|
+ <!--<artifactId>maven-compiler-plugin</artifactId>-->
|
|
60
|
+ <!--<configuration>-->
|
|
61
|
+ <!--<source>1.8</source>-->
|
|
62
|
+ <!--<target>1.8</target>-->
|
|
63
|
+ <!--</configuration>-->
|
|
64
|
+ <!--</plugin>-->
|
|
65
|
+ <!--<plugin>-->
|
|
66
|
+ <!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
67
|
+ <!--<artifactId>maven-jar-plugin</artifactId>-->
|
|
68
|
+ <!--<version>3.1.1</version>-->
|
|
69
|
+ <!--<configuration>-->
|
|
70
|
+ <!--<archive>-->
|
|
71
|
+ <!--<manifest>-->
|
|
72
|
+ <!--<addClasspath>true</addClasspath>-->
|
|
73
|
+ <!--<useUniqueVersions>false</useUniqueVersions>-->
|
|
74
|
+ <!--<classpathPrefix>lib/</classpathPrefix>-->
|
|
75
|
+ <!--<mainClass>com.huiju.welcome.hardware.Main</mainClass>-->
|
|
76
|
+ <!--</manifest>-->
|
|
77
|
+ <!--</archive>-->
|
|
78
|
+ <!--</configuration>-->
|
|
79
|
+ <!--</plugin>-->
|
|
80
|
+ <!--<plugin>-->
|
|
81
|
+ <!--<groupId>org.apache.maven.plugins</groupId>-->
|
|
82
|
+ <!--<artifactId>maven-assembly-plugin</artifactId>-->
|
|
83
|
+ <!--<configuration>-->
|
|
84
|
+ <!--<archive>-->
|
|
85
|
+ <!--<manifest>-->
|
|
86
|
+ <!--<mainClass>com.huiju.welcome.hardware.Main</mainClass>-->
|
|
87
|
+ <!--</manifest>-->
|
|
88
|
+ <!--</archive>-->
|
|
89
|
+ <!--<descriptors>-->
|
|
90
|
+ <!--<descriptor>src/assembly/myassembly.xml</descriptor>-->
|
|
91
|
+ <!--</descriptors>-->
|
|
92
|
+ <!--</configuration>-->
|
|
93
|
+ <!--<executions>-->
|
|
94
|
+ <!--<execution>-->
|
|
95
|
+ <!--<id>make-assembly</id>-->
|
|
96
|
+ <!--<phase>package</phase>-->
|
|
97
|
+ <!--<goals>-->
|
|
98
|
+ <!--<goal>single</goal>-->
|
|
99
|
+ <!--</goals>-->
|
|
100
|
+ <!--</execution>-->
|
|
101
|
+ <!--</executions>-->
|
|
102
|
+ <!--</plugin>-->
|
20
|
103
|
</plugins>
|
21
|
104
|
</build>
|
22
|
105
|
|
23
|
106
|
<dependencies>
|
24
|
107
|
<dependency>
|
25
|
|
- <groupId>com.huiju</groupId>
|
|
108
|
+ <groupId>com.sun.jna</groupId>
|
26
|
109
|
<artifactId>examples</artifactId>
|
27
|
|
- <version>1.0.0</version>
|
28
|
110
|
<scope>system</scope>
|
|
111
|
+ <version>1.0</version>
|
29
|
112
|
<systemPath>${project.basedir}\src\main\resources\libs\examples.jar</systemPath>
|
30
|
113
|
</dependency>
|
31
|
|
-
|
32
|
114
|
<dependency>
|
33
|
115
|
<groupId>com.sun.jna</groupId>
|
34
|
116
|
<artifactId>jna</artifactId>
|