Am 05.01.2012 02:07 schrieb "zuxiong lin" <[email protected]>: > > Because of my not enough disk space...
Then it's okay. Maven will re-download what it needs. A. > > 2012/1/5 Ansgar Konermann <[email protected]> > > > Am 04.01.2012 05:02, schrieb zuxiong lin: > > > Append > > > like: > > > repository\org\springframework\spring-core > > > -3.0.5.RELEASE > > > -3.0.6.RELEASE > > > -3.1.0.RELEASE > > > > > > I want to remove 3.0.5 and 3.0.6. > > > > The local maven repository is an artifact cache. Why do you want to > > remove anything from this cache? This does not reliably control what > > versions maven will use to build your project. > > > > If your project has a dependency on any of these, maven will re-download > > them anyway. > > > > If you try to restrict maven to using a specific version of spring-core, > > use something like <version>[3.1.0]</version> > > > > If your project does not have 3.0.5 or 3.0.6 as a direct dependency, but > > some other dependency pulls it in as a transitive dependency, say > > spring-core 3.0.5.RELEASE and you want to prevent 3.0.5 being on the > > classpath because 3.1.0.RELEASE should be used, employ Maven's > > dependency <excludes> to control this. > > > > This is all well documented stuff (see [1]) > > > > Best regards > > > > Ansgar > > > > > > > > http://www.sonatype.com/books/mvnref-book/reference/pom-relationships-sect-project-dependencies.html > > > > > > > > > > > > > > > > > 2012/1/4 zuxiong lin <[email protected]> > > > > > >> Is it possible? > > >> > > >> > > >> Thanks. > > >> > > > >
