File tree Expand file tree Collapse file tree 3 files changed +29
-17
lines changed
Expand file tree Collapse file tree 3 files changed +29
-17
lines changed Original file line number Diff line number Diff line change 1- web : java -cp target/classes:target/dependency/ * Main
1+ web : java -jar target/helloworld.jar
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3030 </dependencies >
3131 <build >
3232 <plugins >
33- <plugin >
34- <groupId >org.apache.maven.plugins</groupId >
35- <artifactId >maven-compiler-plugin</artifactId >
36- <version >2.5.1</version >
37- <configuration >
38- <source >1.8</source >
39- <target >1.8</target >
40- <optimize >true</optimize >
41- <debug >true</debug >
42- </configuration >
43- </plugin >
4433 <plugin >
4534 <groupId >org.apache.maven.plugins</groupId >
46- <artifactId >maven-dependency-plugin</artifactId >
47- <version >2.4</version >
35+ <artifactId >maven-compiler-plugin</artifactId >
36+ <version >2.5.1</version >
37+ <configuration >
38+ <source >1.8</source >
39+ <target >1.8</target >
40+ <optimize >true</optimize >
41+ <debug >true</debug >
42+ </configuration >
43+ </plugin >
44+ <plugin >
45+ <artifactId >maven-assembly-plugin</artifactId >
46+ <version >2.3</version >
47+ <configuration >
48+ <descriptorRefs >
49+ <descriptorRef >jar-with-dependencies</descriptorRef >
50+ </descriptorRefs >
51+ <finalName >helloworld</finalName >
52+ <appendAssemblyId >false</appendAssemblyId >
53+ <archive >
54+ <manifest >
55+ <mainClass >Main</mainClass >
56+ </manifest >
57+ </archive >
58+ </configuration >
4859 <executions >
4960 <execution >
50- <id >copy -dependencies</id >
61+ <id >build-jar-with -dependencies</id >
5162 <phase >package</phase >
52- <goals ><goal >copy-dependencies</goal ></goals >
63+ <goals >
64+ <goal >single</goal >
65+ </goals >
5366 </execution >
5467 </executions >
5568 </plugin >
You can’t perform that action at this time.
0 commit comments