I created a Maven project in Eclipse. Initially, my package structure was similar to
-src/main/java ---com.package1 ---com.package2 -src/main/resources
When I successfully built the project and launched the war in tomcat, my project structure changed to
-src.main.java.com.package1 -src.main.java.com.package2 -src.main.resources
This creates errors in Java class files in package import declarations. I want to restore the original structure of the project. I have a m2eclipse plugin installed in Eclipse.
I also tried Maven> Update Project .. (I read somewhere in Stack Overflow that it will restore the original structure), but it generates the following error
Failed while installing JAX-RS (REST Web Services) 1.1. org.osgi.service.prefs.BackingStoreException: Resource /Workspace/ProjectName/.settings' does not exist.
Please help me restore the project structure back.
java eclipse maven tomcat m2e
isahilarora
source share