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
+
7
+ <groupId >isc</groupId >
8
+ <artifactId >barcode</artifactId >
9
+ <version >1.0-SNAPSHOT</version >
10
+ <packaging >jar</packaging >
11
+
12
+ <dependencies >
13
+ <dependency >
14
+ <groupId >com.google.zxing</groupId >
15
+ <artifactId >core</artifactId >
16
+ <version >3.4.1</version >
17
+ </dependency >
18
+ <dependency >
19
+ <groupId >com.google.zxing</groupId >
20
+ <artifactId >javase</artifactId >
21
+ <version >3.4.1</version >
22
+ </dependency >
23
+ </dependencies >
24
+ <build >
25
+ <plugins >
26
+ <!-- <plugin>
27
+ <groupId>org.apache.maven.plugins</groupId>
28
+ <artifactId>maven-dependency-plugin</artifactId>
29
+ <executions>
30
+ <execution>
31
+ <id>copy-dependencies</id>
32
+ <phase>prepare-package</phase>
33
+ <goals>
34
+ <goal>copy-dependencies</goal>
35
+ </goals>
36
+ <configuration>
37
+ <outputDirectory>${project.build.directory}/lib</outputDirectory>
38
+ <overWriteReleases>false</overWriteReleases>
39
+ <overWriteSnapshots>false</overWriteSnapshots>
40
+ <overWriteIfNewer>true</overWriteIfNewer>
41
+ </configuration>
42
+ </execution>
43
+ </executions>
44
+ </plugin>
45
+ <plugin>
46
+ <groupId>org.apache.maven.plugins</groupId>
47
+ <artifactId>maven-jar-plugin</artifactId>
48
+ <configuration>
49
+ <archive>
50
+ <manifest>
51
+ <addClasspath>true</addClasspath>
52
+ <classpathPrefix>libs/</classpathPrefix>
53
+ <mainClass>
54
+ isc.barcode
55
+ </mainClass>
56
+ </manifest>
57
+ </archive>
58
+ </configuration>
59
+ </plugin>-->
60
+ <plugin >
61
+ <groupId >org.apache.maven.plugins</groupId >
62
+ <artifactId >maven-assembly-plugin</artifactId >
63
+ <executions >
64
+ <execution >
65
+ <phase >package</phase >
66
+ <goals >
67
+ <goal >single</goal >
68
+ </goals >
69
+ <configuration >
70
+ <archive >
71
+ <manifest >
72
+ <mainClass >
73
+ isc.barcode
74
+ </mainClass >
75
+ </manifest >
76
+ </archive >
77
+ <descriptorRefs >
78
+ <descriptorRef >jar-with-dependencies</descriptorRef >
79
+ </descriptorRefs >
80
+ </configuration >
81
+ </execution >
82
+ </executions >
83
+ </plugin >
84
+ </plugins >
85
+ </build >
86
+ </project >
0 commit comments