Hi All, In DefaultMavenProjectBuilder.java, there is one private hash map called rawProjectCache, which stores the last discovered projects. But i want each time it to read the pom file and return me the current model of pom.xml
My Use case is: I have a pom.xml (say Child), this has parent pom.xml (say Parent) Now I want to build the Child and want the list of repositories (I want to have all repositories referred by this Child, its own and of its ancestors) First time it gives me the correct list of repositories(its and Parent's), after this if I made some change in Parent(add <reposiotry> in pom.xml), and try to again get the list of repositories, I am not getting the latest list, but the last one from the Parent, reason being before reading the Parent's pom.xml it searches it in rawProjectCache(as mentioned above) and return from there. So How can I clear this cache. I am using plexuscontainer to get the instances of DefaultMavenProjectBuilder. Any Idea would be helpful. Thanks, Amaresh