From my point of view your project structure isn't as maven expects.
In order to solve your problem do the following:
- First rename your package retail.web.mbean to main.java.retail.web.mbean (after the process your package will be still named retail.web.mbean), this will create the folder structure necessary for maven.
- Right click on the project, Maven > Update Project Configuration.
After this process you will have the same structure you had before starting the project but maven will know where to find the source code.
Additionally, you can create a resource folder and test folders with the following structure:
Project
src
main
java
resources
test
java
resources
This would be the standard maven project structure.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…