Some times while integrating map-struct with spring boot/swagger we will get below exception:- [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project : Compilation failure [ERROR] Couldn't retrieve @Mapper annotation Solution:- You don't need to exclude the entire swagger for this. You can do this to only exclude the Mapstruct dependency that swagger2 brings with itself: < dependency > < groupId >io.springfox</ groupId > < artifactId >springfox-swagger2</ artifactId > < version >${swagger2.version}</ version > < exclusions > < exclusion > < groupId >org.mapstruct</ groupId > < artifactId >mapstruct</ artifactId > </ exclusion > </ exclusions > </ dependency >
Sometimes you may face situation where you need to take older commits and push it to repo. For this we can do below steps:- 1.) git reset --hard <commit_hash> 2.) git push origin <branch_name> --force Key here is forcing the push, no extra commits/commit messages etc
I got below error while running shell script . -bash: ./sample.sh: /bin/bash^M: bad interpreter: No such file or directory The Problem ist you edit with Dos! Solution:- :set ff=unix :wq
Comments
Post a Comment