Ok, now I understudy what you meant... sorry my bad. On Thu, Jun 11, 2009 at 9:46 AM, John R. Fallows <[email protected]>wrote:
> On Wed, Jun 10, 2009 at 4:57 PM, Marvin Froeder <[email protected]> wrote: > >> Note: in order to fully test the build dependencies, it may be necessary >>> to remove (or rename) ~/.m2/repository directory before executing mvn -P >>> minimal clean install. >>> >> >> >> I never had to do that.... why do you need to remove local repo? >> > > Say you are building different independent projects using Maven, Project-A > and Project-B. > > Project-A has a dependency on something from a public but non-default > repository, like the java.net repository, so Project-A includes a > <repository> element allowing the java.net dependency to download and > populate the local ~/.m2/repository. > > Project-B also has a dependency on the same thing from a public but > non-default repository, like the java.net repository, but Project-B > omitted the <repository> element. > > Building Project-A first causes ~/.m2/repository to be populated with the > java.net dependency. Then Project-B can build successfully, because all > dependencies can be resolved from the local repository. > > However, Project-B's pom is still not correct, but this is difficult to > detect without first removing (or renaming) ~/.m2/repository and then > performing a clean build for Project-B. Without the dependency > pre-populated in the local repository, the Project-B build now breaks. > > In short, side effects of the Project-A build can cause the Project-B build > to be successful even though an independent build of Project-B would fail. > > Kind Regards, > John Fallows > > >> >> >> VELO >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex Mojos" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex-mojos?hl=en?hl=en http://blog.flex-mojos.info/ -~----------~----~----~----~------~----~------~--~---
