-
Notifications
You must be signed in to change notification settings - Fork 41.2k
spring-boot plugin + obfuscation doesn't work in Maven multi-module project #3444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What product are you using to perform obfuscation? Can you share a sample project that reproduces the issue? |
For obfuscation I am using proguard. Here repo with simple project: https://github.com/oleghailenko/spring-boot-obj |
You need to tell Boot's repackaging to ignore the obfuscated modules as you've already pulled them into the war file as web resources. You can do that by adding an exclude to your configuration of Boot's plugin:
|
And I just noticed that you think this worked without the exclude in 1.2.1.RELEASE so the exclude-based approach I described above shouldn't be necessary |
The change in behaviour was introduced in f761916 |
I have a multi-module Maven project. One of the modules is a web application. When I build Web project, all jar files are copied to target directory and then obfuscation runs over them.
But I discovered that after this spring-boot plugin uses original jars of the other modules while packaging of war (but not from target directory of that web project).
As a result war-archive contains obfuscated web module , but the not obfuscated other modules.
I also discovered that there is no such problem with 1.2.1.RELEASE.
The text was updated successfully, but these errors were encountered: