Murali I think you need to also install the jars of the sub-modules in the local repository. Then you can either depend directly on the sub-modules in Project B. Or better yet make a new sub-project of Project A that makes the zip, leaving Project A to be just an aggregate pom. This new sub project must depend on the submodules it zips, so depending on it will then you'll get the transitive dependencies. Is there a good reason that you are creating the zip?
Nicole On 28/11/2007, S.Murali <[EMAIL PROTECTED]> wrote: > > > I have a Project A (util_common) which is a multi-module project which > generates a zip file during its assembly (which contains all its > sub-module > jars) and i installed it in the local repository using > install:install-file. > > Now, I want to add dependency to Project A (util_common) zip file in the > Project B pom file. > <dependency> > <groupId>com.proj.risk</groupId> > <artifactId>util_common</artifactId> > <version>1.0</version> > <type>zip</type> > </dependency> > > However, the dependency to the jar files inside the util_common zip file > is > not getting resolved from Project B. > > I tried unpack all the jar files during the assembly phase, so that zip > file contains the sources of jar files rather individual jar files. But, > it > did not work. > > I think the problem might be due to some classpath issue while > referencing, > though not sure. > > I would like to know if this is possible in maven? If so, how? > > Thanks in advance, Murali > > > > -- > View this message in context: > http://www.nabble.com/Issue-in-dependency-resolution-to-zip-file-%28having-muliple-jars%29-tf4888364s177.html#a13991793 > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
