maven - Eclipse + m2eclipse : One project depending on the other, without having to run "mvn install" -


i'm using eclipse indigo + m2eclipse.

i have 2 projects in workspace, projecta declaring maven dependency projectb in pom.xml.

i want able make changes projectb and, without having run "mvn install" on projectb, being able see changes when run projecta!

i have properties/maven/resolve dependencies workspace projects checked on both projects. doesn't work. have "mvn install" on projectb (and potentially "maven/updates dependencies..." on projecta changes seen.

my dependency projectb, in projecta's pom :

    <dependency>         <groupid>com.xxxx</groupid>         <artifactid>projectb</artifactid>         <version>0.7-snapshot</version>     </dependency> 

the groupid, artifactid , version match found in projectb's pom.

i read found on internet no success!

any idea?

update : don't know if information may helps, have projectc in workspace depends on projectb. , projecta depends on projectc :

projecta -> depends on -> projectb projectc -> depends on -> projectb projecta -> depends on -> projectc 

the exact same version of projectb artifact used in both projecta , projectc. tried excluding transitive dependency projectb in projecta's pom direct dependency used : didn't change anything.

you need use multimodule project each of current projects becomes module. have common parent. can invoke build parent pom , reactor build submodules in order required. way, changes in projectb seen in projecta.

here example
http://www.sonatype.com/books/mvnex-book/reference/multimodule.html


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -