1
votes

I'm using iIntelli IDEA ultimate 15. I created a maven project from console as: mvn archetype:generate -DgroupId=com.maum.spring -DartifactId=CounterWebAppMasum -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false

When I import it in IDE all Java option missing such as make new package, class, etc. How can I bring Java options after import maven project in iIntelli IDEA ultimate 15? Please check the picture :-

enter image description here

UPDATED information.

I created directory structure and add a java file. But it doesn't recognize as java project. Check the following pic:-

enter image description here

1
Right click on pom and try to Click Maven->Reimport dependencies. If this does not work try to go to the project settings and choose Java facet - jny
the Mark Directory as is available in the screen shot - Gavin

1 Answers

1
votes

I think its because IntelliJ has missed that its a Java Project.

Right click on the Java directory and select 'Mark Directory As' from the context menu, then Select "source root"

You might have to manually set the type in the project module settings, press F4