Doubts template "maven-archetype-webapp"

2

I'm a beginner in development with Maven and I'm having some doubts. Next, I would like to create a Java web application, for this I started by running the following command:

mvn archetype:generate -DgroupId=com.myapp -DartifactId=CounterWebApp -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

Following is the following directory structure:

My doubt: Because Maven did not create a directory for the .java, in my case I will use servelets, where would I put them ?, which directory ?. Do I need to create them manually?.

    
asked by anonymous 10.09.2015 / 21:06

1 answer

1

I would also like to know why it does not create.

Incidentally, I would just like you to create it yourself (nor would you need to tell me why you never created hehehe).

But the fact is that it does not create and you will have to manually create the directory java below src/main , that is:

    CounterWebApp/
                src/
                    main/
                        java/

Below%% of you can create your packages and within the packages, your Java classes, including servlets , which will be recognized and initialized due to annotation that you will need to use to declare them (% with%).

    
10.09.2015 / 21:35