To create a maven-project you need
- A project-directory containing the
pom.xml-file - Within this project-directory a subdirectory
src/main/javacontaining your java-code (packages go to subdirectories ofsrc/main/java)
To invoke maven run mvn compile or something similar from the project-directory.