Link to home
Start Free TrialLog in
Avatar of 5rProgres
5rProgresFlag for Slovenia

asked on

Obfuscation of tapestry project

Hi!

I need some hints/guidelines how to obfuscate Java tapestry project.

Application is only the back-end for RESTeasy calls. We are not using it for GUI purposes.

Rest of applications consist of JPA entity classes and DAO objects and some other classes which contain some back-end logic.

Since we are using maven ProGuard plug-in seems good solution.

Has anybody successfully managed to obfuscate tapestry web application?
Avatar of girionis
girionis
Flag of Greece image

You can obfuscate it like you would obfuscate any other java project. Did you run into any problems?
Avatar of 5rProgres

ASKER

Thank you for your answer!!!

I was unexpectedly away and wasn't able to post.

I am using maven to build tapestry project. Result of this is packaged war file.

War file contains WEB-INF\classes\ folder with my compiled classes file and
WEB-INF\lib with library jar's.

In proguard newapp-obf.war with
-keep class com.example.newapp.** option there are no class files at all.

Proguard produces warnings like:
Warning: class [WEB-INF/classes/com/example/newapp/components/Layout.class] unexpectedly contains class [com.example.newapp.components.Layout]

According to http://proguard.sourceforge.net/index.html#manual/troubleshooting.html
I should do this:
- Notably, class files that are in the WEB-INF/classes directory in a war should be packaged in a jar and put in the WEB-INF/lib directory.
So there is a question how to do that?

Thank you for any pointer!
- Notably, class files that are in the WEB-INF/classes directory in a war should be packaged in a jar and put in the WEB-INF/lib directory.
So there is a question how to do that?

You should use the jar command that comes with the JDK installation. Once you create the jar file put it in the WEB-INF/lib folder.
Sure that I am aware of.. but my wish is that this would be made automatically by maven.
ASKER CERTIFIED SOLUTION
Avatar of girionis
girionis
Flag of Greece image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Not really solution I was expecting to get but at least something...