I am new to maven and trying to run simple spring demo. I am using Intellij IDEA as my IDE. I am following tutorial provided here.
So i ran
mvn archetype:generate -DgroupId=SpringDemo -DartifactId=SpringExamples
-DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
and then did
mvn idea:idea
It generated all .ipr,.iws etc file. Then I simply did open from IDEA and selected the .ipr file. It detected it as IDEA project and opened it but it gives me following error
Package name 'cospring' does not correspond to the file path 'cospring-demo'
App class is
package cospring-demo;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
}
What is the issue? Any work around?