-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Azure SDK version and refactoring
- Loading branch information
Showing
6 changed files
with
322 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
In order to avoid an error message "Invalid signature file digest for Manifest main attributes", we have to remove from the jar file the files: | ||
Errors caused by signed jars in dependencies. | ||
|
||
META-INF/BCKEY.DSA | ||
META-INF/BCKEY.SF | ||
META-INF/MSFTSIG.RSA | ||
META-INF/MSFTSIG.SF | ||
We have to remove from the jar file the files: | ||
|
||
We can exclude these files with "maven-shade-plugin". | ||
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.AzureVM" | ||
|
||
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: | ||
|
||
$ zip -d out/artifacts/azurevm_jar/azurevm.jar META-INF/*.RSA META-INF/*.DSA META-INF/*.SF | ||
- MacOS / Linux: | ||
$ zip -d out/artifacts/azurevm_jar/azurevm.jar "META-INF/*.RSA" "META-INF/*.DSA" "META-INF/*.SF" | ||
|
||
$ 7z d -tzip out/artifacts/azurevm_jar/azurevm.jar META-INF/*.RSA META-INF/*.DSA META-INF/*.SF | ||
- 7-zip tool: | ||
$ 7z d -tzip out/artifacts/azurevm_jar/azurevm.jar META-INF/*.RSA META-INF/*.DSA META-INF/*.SF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.