728x90 반응형 SMALL jar file version1 How can I get jar file's Implementation version If application support rest api pom.xml org.apache.maven.plugins maven-jar-plugin true true api controller return new ResponseEntity(getClass().getPackage().getImplementationVersion(), HttpStatus.OK); If not support rest api unzip and read Implementation-Version from MANIFEST.MF file #!/bin/sh version="$(unzip -p yhkim.jar META-INF/MANIFEST.MF | grep Implementation-Version | cut -d':' -f 2)" ver.. 2023. 2. 20. 이전 1 다음 728x90 반응형 LIST