开发者

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 开发者_StackOverflow中文版the pom.xml to recognize that this new java directory is where my classes are located?


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜