Hello, I took some advice and added the jars from the external projects (B and C) as dependencies in project A. I'm still getting the same problem as before when I create a jar of project A. The required classes from projects B and C are not available when I run project A. Using Ant you can just specify the exact classes you want added to the jar. How do you achieve the same functionality with Maven?
Thanks very much, Ger -----Original Message----- From: Gerard Garrigan [mailto:[EMAIL PROTECTED] Sent: 16 February 2006 16:59 To: Maven Users List Subject: RE: Maven 2.0: Referring to another projects classes using maven My apologies, To make it easier, I've been asked to "mavenise" project A. Project A relies on classes contained in projects B and C. Projects B and C are not Maven projects. Project A when jarred using Maven does not contain references to these files and does not run correctly. Is there some way of including the B and C classes in the build? Thanking you, Ger -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lee Meador Sent: 16 February 2006 15:35 To: Maven Users List Subject: Re: Maven 2.0: Referring to another projects classes using maven I'm having trouble figuring out what you want to do. Who is "he" and which of the projects are "his"? How are the "other" projects built and referenced from the project you are using maven with? Are you building the other projects with maven2? On 2/16/06, Gerard Garrigan <[EMAIL PROTECTED]> wrote: > > Hello, > > > > I've been asked to move a project over to maven. This project refers to > classes in two other projects. So when the jar is built it contains his > projects classes and any classes he refers to. However when I use maven the > jar only contains his project classes and no other. How do I refer to the > other classes using maven? > > > > Thanks in advance for any help, > > > > *Ger Garrigan > **Software Engineer** > ** > Castlewood House, Castlewood Ave, > Rathmines, Dublin 6, Ireland. > **Tel: +353 1 4060738 Fax: +353 1 4060748 > **www.precisionsoftware.com* > > > > > -- -- Lee Meador Sent from gmail. My real email address is [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]