Как мне запутать проект WAR, который содержит несколько других JAR-файлов, с помощью maven?JAVA

Программисты 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
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «JAVA»