command line maven generated pom.xml not recogonized in IDEA

I am using maven 2.1.0 installed from apache download site.

I've set my IDEA to use that as well for a project.

when I used command line to generate a project using spring osgi archetype, everything goes well.

When I add the generated source tree as a maven module to IDEA all is fine as well. But when I go to maven Maven Projects pane to add the pom.xml, it is not selectable.  i.e. I can select the pom.xml but the "OK" button is dimmed so can't do anything.

Why is that ?

help.

3 comments
Comment actions Permalink

Hi, John,

What IDEA version do you use?
Does Maven Projects tool windows contain any project?

Thanks,
Anton Makeev

0
Comment actions Permalink

I am on 8.1 (latest),

some more symptoms....

When I import the newly generated source as a "maven" module, I can not add its pom.xml.  However IDEA asks to if I want to remove another maven modules pom.xml.   If I say yes, it removes it and is replaced by the new pom.xml.

If I don't remove it, I can not add the new pom.xml to the maven projects tab.   When this scenario occurs, I restart the IDEA and then I can go to Maven Projects tab and add the new pom.xml.

Some how multiple command line generated maven projects don't play well in the IDEA untill I restart IDEA.


J.

0
Comment actions Permalink

Hi, John,

To workaround the problem in IDEA 8.1 try adding new Maven projects using Add Maven Project button on the Maven Projects tool window.

Thanks,
Anton Makeev

0

Please sign in to leave a comment.