Hello *,

I'm new to maven. I'd like to mavenize three projects of mine. Let's say they 
are myLib1, myLib2 and myLib3. My directory structure is

~/mavenprojects/myLib1
~/mavenprojects/myLib2
~/mavenprojects/myLib3

myLib3 depends on myLib1 and myLib2; myLib2 depends only on myLib1. The three 
libraries are in development stage, so I change their code very often. I need 
a maven setup that, when compiling myLib3, automatically compiles myLib1 and 
myLib2 also, if their source code has been changed, and recreates respective 
jars. The same goes for myLib2 in respect to its myLib1 dependency.

I've tried adding myLib1 as a module of myLib2 in myLib2 pom file, but then I 
had to change the packaging to "pom", which stopped maven from compiling and 
packaging myLib2.

Then I considered adding the compiled jars as dependencies, but in this case I 
don't have a maven repository to query, and I don't want to manually install 
myLib1 and myLib2 jars, since that would keep maven from recompiling the 
respective sources.

What's the correct solution in my case?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to