Suppose for instance, you want to convert a simple web application to a maven project,
- You will need to create a pom file with groupId, artifactId and version (packaging: war)
- Then, you need to add the required dependencies to the pom file
- Next, you will have to move the
- java sources to src/main/java,
- resources to src/main/resources,
- webapp content to src/main/webapp,
- test content to src/test/java and src/test/resources
- set the compiler compliance version using the maven compiler plugin
This should do!