-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinitialize
executable file
·48 lines (38 loc) · 1.53 KB
/
initialize
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
echo "####################################################"
echo "# #"
echo "# Download MTA-SZTE RGAI magyarlanc lib. #"
echo "# #"
echo "####################################################"
echo " "
echo " "
# Set the URL and target directory
URL="https://eszterlanc.s3.amazonaws.com/magyarlanc-3.0.jar"
TARGET_DIR="lib"
# Create the target directory if it doesn't exist
mkdir -p $TARGET_DIR
# Download the file using wget
wget --progress=bar:force -c $URL
echo "####################################################"
echo "# #"
echo "# I add to local Maven repository as: #"
echo "# mta.szte.rgai/magyarlanc 0.3.0 #"
echo "# #"
echo "####################################################"
echo " "
echo " "
# Move to the target directory
mv magyarlanc-3.0.jar $TARGET_DIR/
# install to local Maven repository -> .m2
mvn install:install-file \
-Dfile=lib/magyarlanc-3.0.jar \
-DgroupId=mta.szte.rgai \
-DartifactId=magyarlanc \
-Dversion=0.3.0 \
-Dpackaging=jar \
-DgeneratePom=true
echo "####################################################"
echo "# #"
echo "# Successfully added! #"
echo "# #"
echo "####################################################"