-
Notifications
You must be signed in to change notification settings - Fork 2
/
commands.txt
25 lines (16 loc) · 865 Bytes
/
commands.txt
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
Errors caused by signed jars in dependencies.
We have to remove from the jar file the files:
META-INF/BCKEY.DSA
META-INF/BCKEY.SF
META-INF/MSFTSIG.RSA
META-INF/MSFTSIG.SF
In order to avoid error messages like:
"Invalid signature file digest for Manifest main attributes"
"Error: Could not find or load main class Main example.BlobStorageCreate"
We can exclude these files with "maven-shade-plugin" in "pom.xml" file.
Working with IntelliJ this functionality does not work.
So, we remove the files with one of these commands after the jar file is created:
- MacOS / Linux:
$ zip -d out/artifacts/azureblobstoragecreate_jar/azureblobstoragecreate.jar "META-INF/*.RSA" "META-INF/*.DSA" "META-INF/*.SF"
- 7-zip tool:
$ 7z d -tzip out/artifacts/azureblobstoragecreate_jar/azureblobstoragecreate.jar META-INF/*.RSA META-INF/*.DSA META-INF/*.SF