Thanks for all your answers, the only problem with this is that I am using other eclipse plugins as part of my iterative build. For instance I use the hibernate plugin in my POM file. This means that although eclipse will be aware of the source dependency, the POM file is not. So it is true that this solution is effective for compilation. However, any plugins defined in the POM file will not be aware of it and still build off the JAR file :-(. There is a workaround for this, which consists in using ant tasks as part of the development rather that using the maven plugins. However this means that for development I do not rely on maven at all, which defeats its purpose.
Thanks, Thierry Lach-2 wrote: > > This may not work for you, but I use Eclipse with the Maven plugin ( > http://m2eclipse.codehaus.org/) which will automatically do what you are > asking with other dependent projects open in the workspace. > > On Fri, May 16, 2008 at 10:34 AM, BenDave <[EMAIL PROTECTED]> wrote: > >> >> Hi, >> >> I am working on 2 projects, one is Dependant on the other. The usual way >> of >> dealing with this is to add a dependency to a jar file located in the >> repository. This works fine but the source project (on which the target >> project depends) is constantly evolving, as we are doing some iterative >> development. The source and target project are modified at the same time. >> Consequently i don't want to work off a jar file of the source project, >> because generating jar files and deploying them to the repository takes >> too >> long (only 20 seconds but it adds up when this is done dozens / hundreds >> of >> times per day ). >> I do not want to merge these two projects into one as the source is a >> common >> project and is being used by other projects too, I need these two >> projects >> to be distinct. >> >> So the solution is to indicate to maven a source folder which the target >> project depends on rather than a JAR file. >> >> Can this be achieved ? >> >> Thanks, >> >> -- >> View this message in context: >> http://www.nabble.com/Maven-2-Dependency-on-java-source-folder-rather-than-jar-file-tp17276237p17276237.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> > > -- View this message in context: http://www.nabble.com/Maven-2-Dependency-on-java-source-folder-rather-than-jar-file-tp17276237p17313164.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
