Cannot import Maven project correctly

I have a Maven 2 project that builds fine outside IDEA. It also works fine in NetBeans. However when I import it with IDEA it gets imported with a malformed structure.

The project has a parent pom module and the rest of the modules are its sub modules. However IDEA imports it as it is shown in the attachment screenshot. Any ideas what is possibly wrong here?

Thanks in advance,
Behrang



Attachment(s):
Picture 1.png
0
Avatar
Permanently deleted user

There was a mistake on my side. Please ignore this thread.

Cheers,
Behrang

0
Avatar
Permanently deleted user

On 2009-04-23 17:57:16 +0200, Behrang Saeedzadeh <no_reply@jetbrains.com> said:

There was a mistake on my side. Please ignore this thread.


Care to tell us, what was the mistake on your side? This might help
others if they experience similar problems..

Jan

0
Avatar
Permanently deleted user

Guest wrote:

On 2009-04-23 17:57:16 +0200, Behrang Saeedzadeh <no_reply@jetbrains.com> said:

There was a mistake on my side. Please ignore this thread.


Care to tell us, what was the mistake on your side? This might help
others if they experience similar problems..


Jan

My pleasure. The problem was that the directory name of the module and its artifactId were different. In my case, the directory name was "scather-gather-gui" while the module name was "scatter-gather-gui".

Behi

0
Avatar
Permanently deleted user

I also had my problems with importing maven projects, especially if they are multimodule ones. Therefore I always prefer to run CLI 'mvn idea:idea' (see http://maven.apache.org/plugins/maven-idea-plugin/) on the pom.xml you want to import and then let IDEA open the generated project file.

It always worked without problems.

0

请先登录再写评论。