I have tried to add below in pom.xml
<scope>system</scope>
<systemPath>${project.basedir}/lib/example-lib.jar</systemPath>
but didn't work.
More information that I found :
It might be related to spring boot maven plugin. https://docs.spring.io/spring-boot/docs/current/maven-plugin/ which it not included scope "system" lib when building jar.
Thank you in advanced.