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?
5rProgresAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

girionisCommented:
You can obfuscate it like you would obfuscate any other java project. Did you run into any problems?
0
5rProgresAuthor Commented:
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!
0
girionisCommented:
- 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.
0
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

5rProgresAuthor Commented:
Sure that I am aware of.. but my wish is that this would be made automatically by maven.
0
girionisCommented:
You can define a <packaging>jar</packaging> element in your pom.xml.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
5rProgresAuthor Commented:
Not really solution I was expecting to get but at least something...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.