File tree 2 files changed +36
-6
lines changed
2 files changed +36
-6
lines changed Original file line number Diff line number Diff line change 22
22
<java .version>11</java .version>
23
23
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
24
24
<project .reporting.outputEncoding>UTF-8</project .reporting.outputEncoding>
25
+
26
+ <slf4j-simple .version>1.7.25</slf4j-simple .version>
25
27
<ev3dev-lang-java .version>2.6.2-SNAPSHOT</ev3dev-lang-java .version>
26
28
27
29
<!-- EV3 Parameters -->
28
30
<ev3 .host>192.168.1.151</ev3 .host>
29
31
<ev3 .user>robot</ev3 .user>
30
32
<ev3 .password>maker</ev3 .password>
33
+
31
34
</properties >
32
35
33
36
<repositories >
47
50
</repositories >
48
51
49
52
<dependencies >
53
+ <dependency >
54
+ <groupId >org.slf4j</groupId >
55
+ <artifactId >slf4j-simple</artifactId >
56
+ <version >${slf4j-simple.version} </version >
57
+ </dependency >
50
58
<dependency >
51
59
<groupId >com.github.ev3dev-lang-java</groupId >
52
60
<artifactId >ev3dev-lang-java</artifactId >
85
93
</configuration >
86
94
</plugin >
87
95
<plugin >
88
- <artifactId >maven-jar-plugin</artifactId >
89
- <version >3.0.2</version >
96
+ <groupId >org.apache.maven.plugins</groupId >
97
+ <artifactId >maven-assembly-plugin</artifactId >
98
+ <version >3.1.1</version >
99
+
100
+ <configuration >
101
+ <descriptorRefs >
102
+ <descriptorRef >jar-with-dependencies</descriptorRef >
103
+ </descriptorRefs >
104
+
105
+ <archive >
106
+ <manifestFile >src/main/resources/META-INF/MANIFEST.MF</manifestFile >
107
+ </archive >
108
+ </configuration >
109
+
110
+ <executions >
111
+ <execution >
112
+ <id >make-assembly</id >
113
+ <phase >package</phase >
114
+ <goals >
115
+ <goal >single</goal >
116
+ </goals >
117
+ </execution >
118
+ </executions >
119
+
90
120
</plugin >
91
121
<plugin >
92
122
<artifactId >maven-site-plugin</artifactId >
Original file line number Diff line number Diff line change @@ -17,19 +17,19 @@ ARTIFACT=$4
17
17
function deploy() {
18
18
19
19
echo " Deploy artifact to EV3"
20
- echo " sshpass -p $EV3_PASSWORD scp -P 22 ./target/$ARTIFACT .jar $EV3_USER @$EV3_HOST :/home/robot/"
20
+ echo " sshpass -p $EV3_PASSWORD scp -P 22 ./target/$ARTIFACT -jar-with-dependencies .jar $EV3_USER @$EV3_HOST :/home/robot/"
21
21
sshpass -p $EV3_PASSWORD \
22
22
scp -P 22 \
23
- ./target/$ARTIFACT .jar $EV3_USER @$EV3_HOST :/home/robot/
23
+ ./target/$ARTIFACT -jar-with-dependencies .jar $EV3_USER @$EV3_HOST :/home/robot/
24
24
}
25
25
26
26
function run() {
27
27
28
28
echo " Run artifact"
29
- echo " sshpass -p $EV3_PASSWORD ssh -p 22 $EV3_USER @$EV3_HOST java -jar $ARTIFACT .jar"
29
+ echo " sshpass -p $EV3_PASSWORD ssh -p 22 $EV3_USER @$EV3_HOST java -jar $ARTIFACT -jar-with-dependencies .jar"
30
30
sshpass -p $EV3_PASSWORD \
31
31
ssh -p 22 \
32
- $EV3_USER @$EV3_HOST " java -jar $ARTIFACT .jar"
32
+ $EV3_USER @$EV3_HOST " java -jar $ARTIFACT -jar-with-dependencies .jar"
33
33
}
34
34
35
35
deploy
You can’t perform that action at this time.
0 commit comments