Brett, What about the following scenario? You have two projects, ProjectA with interfaces and domain beans (or DTOs, whatever want to call them) and ProjectB with the implementations of those intefaces? The latter project depends on the former, it has to have its jar on it's classpath. The ProjectA jar goes on the client and the ProjectA and ProjectB jars go on the appserver. No problems so far. But let's say you use Hibernate in ProjectB to persist the POJO domain beans from ProjectA. Hibernate has nothing to do with ProjectA, you should be able to switch to iBatis without touching ProjectA, so the hibernate mapping files (*.hbm.xml) for the beans should be part of ProjectB. Now let's say you want to generate the *.hbm.xml files with hibernatedoclet. You need the *.java files in order to generate the mappings, the mappings go with ProjectB but the source files are in ProjectA. What is the best way to do this?
Thanks, Ken -----Original Message----- From: Brett Porter [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 26, 2005 8:20 AM To: Maven Users List Subject: Re: [M1] Using source files of another project We usually discourage coupling projects like that - it breaks its encapsulation (unless you build a source JAR from the first project and depend on it in the second to extract and then use for compilation - but that sounds very long winded). What is the specific use case you are trying to solve? - Brett On 7/26/05, Michael Owen <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using Maven 1.0.2 and on one maven project I need to use the java > source files of another maven project. Any ideas how I can do it in the best way? > (ie. in one maven project, it's source files references the source > files in another project) > > I need to keep the two sets of maven source files separate. > > Thanks, > > Mike > > > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
