I created a Java project using Eclipse. Since I did not do anything special, its folder structure is the default default that all Eclipse projects use:
Project -src -foo -MyClass.java -fooTests -MyTest.java
However, I would like to transfer this to the folder structure used by Maven and derivatives like Gradle.
Project -src -main -foo -MyClass.java -test -foo -MyTest.java
However, there seems to be no obvious way to change the folder structure. The big problem seems to be what to do with the source folder. I tried to do this manually, but tried to make a package for MyClass.java as main.foo , which I obviously don't want. I did not find a maven or gradle plugin that automatically converts the structure.
How do I change the folder structure of an Eclipse project to a Maven / Gradle structure?
source share