help
help

Reputation: 307

Where is my java directory?

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?

Upvotes: 5

Views: 4146

Answers (2)

RHSeeger
RHSeeger

Reputation: 16262

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.

Upvotes: 7

FrVaBe
FrVaBe

Reputation: 49341

You should find your java directory in src/main/java. This is the default source code directory and no special configuration is needed.

Upvotes: 0

Related Questions