Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is my java directory?

Tags:

maven-2

maven

In Maven2 I've created the maven-archetype-webapp. I see the webapp and resource directory, but where is my java directory?

Do I create it manually, and if so, would I need to configure the pom.xml to recognize that this new java directory is where my classes are located?

like image 312
help Avatar asked Jun 08 '11 18:06

help


1 Answers

The webapp archetype for maven doesn't automatically create a java directory. As noted here, you can create it yourself.

Simply create a java directory under main (i.e. src/main/java) and right-click on your project and select Maven > Update Project Configuration.

like image 192
RHSeeger Avatar answered Nov 01 '22 07:11

RHSeeger