2008/5/9 David Leangen <[EMAIL PROTECTED]>: > > I noticed a very nastly side-effect of the maven-pax-plugin, and am just > wondering if there's a workaround, or if I have to live with it... > > > My guess at the source of the problem is as follows. > > All dependencies are imported as an entry like: > > <classpathentry kind="var" > path="M2_REPO/org/slf4j/slf4j-api/1.4.2/slf4j-api-1.4.2.jar"/> >
this is just the location of the dependency in the Maven repository > This is fine for external stuff, but when my stuff is internal, this > destroys Eclipse's ability to refector, which is like, uhhh, the main > advantage of using an IDE to begin with. ;-) > you mean you don't want internal projects added using their location in the Maven repository? hmm - this is actually tricky because of the wacky PDE rules for locating dependencies in the target platform if we don't add the dependencies this way then Eclipse/PDE will not find bundle dependencies used for unit tests (because they aren't in the actual manifest, so aren't seen by PDE) we could add project references - but then this could also get tricky depending on what set of projects you have loaded into Eclipse... > Whether or not this is the actual source of the problem, I am no longer > able to refactor properly, which is not acceptable. > this is not true - you can refactor as much as you like, just remember to regenerate the Eclipse project files from Maven. In fact you should probably be refactoring things like the artifact details in the pom.xml first rather than just in Eclipse - otherwise other developers won't get the changes (as typically generated eclipse files aren't committed) > Has anybody found a good way to deal with this? > use IDEA ;) > Cheers, > Dave > > > > > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general > -- Cheers, Stuart
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
