java - update Spring BOOT-INF/lib jars -


i trying update jar in rest-xxxx.jar, rest jar springboot jar , has folder structure of boot-inf/lib/<dependencies.jars> when unpack it.

now want replace dependency jar within rest-xxxx.jar, used command:

jar uf rest-xxxx.jar boot-inf/lib/new-version-jar-same-name.jar 

how ever got errors during booting process:

exception in thread "main" java.lang.illegalstateexception: unable open nested entry 'boot-inf/lib/new-version-jar-same-name.jar'. has been compressed , nested jar files must stored without compression. please check mechanism used create executable jar file

i noticed there's 0 option jar command avoid compression, did:

jar u0f rest-xxxx.jar boot-inf/lib/new-version-jar-same-name.jar 

but got similar compression issue below:

exception in thread "main" java.lang.illegalstateexception: unable open nested entry 'boot-inf/lib/new-version-jar-same-name.jar/meta-inf/manifest.mf'. has been compressed , nested jar files must stored without compression. please check mechanism used create executable jar file

what should when need replace dependency jars within given springboot jar?

please note: understand best practise build updated pom.xml, limitations have cannot right version source code @ moment, hence trying patch existing springboot jar instead of rebuilding it.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -