Как мне запутать проект WAR, который содержит несколько других JAR-файлов, с помощью maven? ⇐ JAVA
Как мне запутать проект WAR, который содержит несколько других JAR-файлов, с помощью maven?
I'm trying to find a way to obfuscate a WAR packaged project that is built with maven using Proguard (open to other tools).
I have /WEB-INF/lib/ directory that contains all the jars that the application depends on and the webapp under /WEB-INF/classes/
I tried passing the WAR file directly to proguard but was told it won't work, that I need to work with jars (I was getting 50k warnings).
I passed the webapp jar to proguard and it works, however, I need all the related dependencies to be obfuscated as well and here I don't know how to keep going.
Shall I copy all dependencies into a folder along with the webapp jar, obfuscate them and then insert them into the war? Somehow I feel maven is not the right tool for this kind of job. Basically I need a step in between jar and war packaging that produces an obfuscated output of all the jars.
Asking to whoever had the curse task of doing something similar.
Источник: https://stackoverflow.com/questions/781 ... sing-maven
I'm trying to find a way to obfuscate a WAR packaged project that is built with maven using Proguard (open to other tools).
I have /WEB-INF/lib/ directory that contains all the jars that the application depends on and the webapp under /WEB-INF/classes/
I tried passing the WAR file directly to proguard but was told it won't work, that I need to work with jars (I was getting 50k warnings).
I passed the webapp jar to proguard and it works, however, I need all the related dependencies to be obfuscated as well and here I don't know how to keep going.
Shall I copy all dependencies into a folder along with the webapp jar, obfuscate them and then insert them into the war? Somehow I feel maven is not the right tool for this kind of job. Basically I need a step in between jar and war packaging that produces an obfuscated output of all the jars.
Asking to whoever had the curse task of doing something similar.
Источник: https://stackoverflow.com/questions/781 ... sing-maven
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение
-
-
Добавьте исключение jar в OpenEJB ignoreList из WAR или JAR во время сборки.
Anonymous » » в форуме JAVA - 0 Ответы
- 36 Просмотры
-
Последнее сообщение Anonymous
-
-
-
Maven генерирует фактический jar как файл .jar.original вместо файла .jar
Anonymous » » в форуме JAVA - 0 Ответы
- 65 Просмотры
-
Последнее сообщение Anonymous
-