Markus Jostock wrote:
Hi
My project structure is like this
parent <-- type pom
+-- module1 <-- type jar
+-- module2 <-- type jar, depends on module 1
When running mvn in the parent directory everything works fine.
But when running mvn in the module2, which depends on module1, maven
tries to download the library of module1 from the web and thus doesn't
succeed.
I probably misunderstood the dependency mechanism, but this really
remains a mind boggling issue to me.
Could somebody point out to me why this happens?
Hello,
When you build the project from the parent level both module1 and
module2 are in the same reactor and maven is able to resolve the
dependency. That is not the case when building directly from module2
If you want to build just module2 you first have to run mvn install on
module1. That way when building module2 module1 is found in the local
repository.
Hope this helps
- Samuli
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]