5rProgres
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?
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?
You can obfuscate it like you would obfuscate any other java project. Did you run into any problems?
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/examp le/newapp/ components /Layout.cl ass] unexpectedly contains class [com.example.newapp.compon ents.Layou t]
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!
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/examp
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.
ASKER
Sure that I am aware of.. but my wish is that this would be made automatically by maven.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Not really solution I was expecting to get but at least something...