Intellij 8.1 - maven import and module names

Why does the import use the directory name and not the artifact id? This leads ( at least for me ) to a large number of duplicates where the directory name is the same ( web ) but the artifact id is different ( foo-web, bar-web, etc ).


- Sean

5 comments
Comment actions Permalink

Hi, Sean,

By default IDEA tries to use artifactId as a project name, In the case it cannot read the project it uses its
directory's name.

Thanks,
Anton Makeev

0
Comment actions Permalink

This does not seem to be the case, as all poms are required to have an artifactId yet I have several modules that have been created with directory name based module names. I believe that there is a bug in light of your response.

- Sean

0
Comment actions Permalink

I meant that the directory name is used if the pom file cannot be read: either because of a syntax error or some critical resolution problem.

Anton Makeev

0
Comment actions Permalink

Is there a way to determine the reasoning for using the directory name? Would it show up as an exception in idea.log for instance?

0
Comment actions Permalink

Problems are shown in the Maven Projects tree, if you point at the project that is underlined somehow, you'll see a tooltip with problem description.

0

Please sign in to leave a comment.