newlogic / mosip-print-idpass

reference project to use mosip credential service and print a digital card
0 stars 1 forks source link

Stand-alone jar execution #8

Closed typelogic closed 3 years ago

typelogic commented 3 years ago

Is your feature request related to a problem? Please describe. Make java -jar print.jar run. Currently, there is a problem unzipping idpass-lite-java-1.0.0.jar. The currently found possible solution is to manually copy libidpasslite.so under src/main/resource/idpasslite/linux64. But this defeats the idpass-lite-java-1.0.0.jar as a pom dependency and uploaded to sonatype.

Describe the solution you'd like The ideal solution is to specify idpass-lite-java dependency in pom.xml and the main application should be able to run as a stand-alone fat jar.

Describe alternatives you've considered The alternative is to manually copy libidpasslite.so.

Additional context Since the alternative requires such manual setup and prone to .so/jar mismatch error, I would rather continue to run the app via mvn spring-boot:run

typelogic commented 3 years ago

Fixed and tested to run stand-alone both on Linux and Windows environment.