multi-module dependencies...

I noticed in 7020 (and possible earlier builds, not sure off hand) that
in my multi-module projects, IDEA is no longer inheriting dependencies.

I have two modules:

- dbng-core
- dbng-examples

the dbng-examples module only has a dependency on dbng-core, and
dbng-core defines libraries for log4j, spring etc.

The project was created by maven2 and not sure if the projects being
generated different since a few weeks ago, or IDEAs behaviour is now
just more strict.

(either way, the 2nd module -should- contain library references to log4j
etc. itself (the pom.xml does).

Is it IDEA thats just being more strict now? (a good thing in the long
run, just annoying at the moment ;p).

Any one else having issues with multi-module maven projects?

1 comment

Hello Mark,

Nothing has changed in the way IDEA handles dependencies.

There is a bug in the current Maven integration which I am trying to fix now.

The problem is that when Maven Embedder resolves the dependencies of dbng-examples
module it requires the jar for dbng-core already present in the Maven repo,
which might not be the case.

While I am trying to find a better way to use Maven Embedder, you might want
to try running "mvn install" prior to opening the project in IDEA. Hope this
helps.

Best regards,

Vladislav Kaznacheev
Project Manager, IntelliJ IDEA
http://www.jetbrains.com
"Develop with Pleasure!"

I noticed in 7020 (and possible earlier builds, not sure off hand)
that in my multi-module projects, IDEA is no longer inheriting
dependencies.

I have two modules:

- dbng-core
- dbng-examples
the dbng-examples module only has a dependency on dbng-core, and
dbng-core defines libraries for log4j, spring etc.

The project was created by maven2 and not sure if the projects being
generated different since a few weeks ago, or IDEAs behaviour is now
just more strict.

(either way, the 2nd module -should- contain library references to
log4j etc. itself (the pom.xml does).

Is it IDEA thats just being more strict now? (a good thing in the
long run, just annoying at the moment ;p).

Any one else having issues with multi-module maven projects?



0

Please sign in to leave a comment.