yGuard icon indicating copy to clipboard operation
yGuard copied to clipboard

Spring-boot war obfuscation

Open thesherrinford opened this issue 3 years ago • 8 comments

spring boot obfuscated war deletes springframework directory despite of using external library attribute. moreover, manifest.mf file contents are getting replaced despite of mentioning the opposite in adjust attribute.

thesherrinford avatar Jul 07 '22 06:07 thesherrinford

Could you add a minimal example with a POM or Gradle to reproduce? You should assume that collaborators of this project do not necessarily know Spring Boot.

Fohlen avatar Jul 07 '22 07:07 Fohlen

it's a maven project, so pom.xml PFA dependencies and plugin attributes. IMG_20220707_141957.jpgIMG_20220707_141943.jpg

thesherrinford avatar Jul 07 '22 08:07 thesherrinford

Photos of your screen do not qualify as short, self-contained example that lets us reproduce the problem. Unless you can provide such an example (in the case of Maven that means a standalone pom.xml text file), we will not even try to look into your problem.

thomasbehr avatar Jul 07 '22 09:07 thomasbehr

apologies!

  • PFB the pom.

https://drive.google.com/file/d/1HCUu-PwbB6NJnTVZ8-7uDAPMeiH8v1R8/view?usp=drivesdk

thesherrinford avatar Jul 07 '22 11:07 thesherrinford

hi! any update please.

thesherrinford avatar Jul 11 '22 02:07 thesherrinford

When I run one of the Maven goals for your pom.xml, Maven tells me "No sources to compile". I.e. it is not possible to reproduce the problem. And thus it is not possible to determine the cause for the problem either.

That said, yGuard does not support WAR files. It supports JAR files only.

thomasbehr avatar Jul 11 '22 08:07 thomasbehr

gimme some time, I'll upload the whole project in a repository and share. Actually I've been able to get two wars, normal output and an obfuscated one. I'll help you replicate the issue.

thesherrinford avatar Jul 11 '22 11:07 thesherrinford

No. Do not upload the whole project. If you upload, upload a minimal example. Otherwise no one will want to spend their free time on this.

yGuy avatar Jul 11 '22 11:07 yGuy