[UT] Fix the problem that jmockit jar was not found in run-fe-ut.sh execution. (backport #55164) #55688
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Why I'm doing:
It will fail when run fe ut with
![image](https://private-user-images.githubusercontent.com/12368495/403847958-94bf49ea-1761-4d59-8755-fce428fb02bd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTQ3NTIsIm5iZiI6MTczOTE5NDQ1MiwicGF0aCI6Ii8xMjM2ODQ5NS80MDM4NDc5NTgtOTRiZjQ5ZWEtMTc2MS00ZDU5LTg3NTUtZmNlNDI4ZmIwMmJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEzMzQxMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkxZTE4MmY5ZjI4MGY2ZmI4Mzk0NGQyNjRlYmFjYTkwZjBiZjQxODQyZTA2MWY0MjI2ZjQwMjRmZTExNThkNzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hRunRaSp8zdfsbEMJNkpcrGRJ1exHSpNpTrg80Y32mQ)
./run-fe-ut.sh
The error is caused by
Error opening zip file or JAR manifest missing : /home/root/.m2/repository/com/github/hazendaz/jmockit/jmockit/1.49.4/jmockit-1.49.4.jar
So it's best to import jmockit's maven configuration
What I'm doing:
Fixes #issue
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist: