Reputation: 1323
I am building a Java Web Project (JAX-RS). Initially the project had the right structure. However after doing a maven clean and maven update the structure of the project seems to be corrupted in Eclipse.
Initially the layout was as follows:
-Root
--src/main/java
--src/test/java
--..
After the clean-up the layout appears as:
-Root
--src
--main.java.com..<package1>
--main.java.com..<package2>
--...
--src/test/java
--..
Also now the whole project no longer builds. Any ideas as to how this can be fixed ?
Upvotes: 0
Views: 705
Reputation: 2772
Eclipse sometimes behave oddly. I have found recreating the project from scratch is the best way when encountered a scenario like this.
To create project from scratch. Use maven archtype
. Follow the link here.
Then copy your current sources over to the newly created projects.
Upvotes: 1