There's no such mvn command for deleting your local repository you
can manually delete it if you want ^_^
What I do is edit my settings.xml and point the maven repository to a
new empty directory that way I can revert to my old repository.
Praveen Kallakuri wrote:
I figured this out. Turns out that I had used mvn install:install-file to
download the same jars and that was interfering somehow.
I moved .m2 away and everything else worked ok thereon. Btw, how can i
flush
my m2 repository, probably for a particular project etc?
6/17/06, Praveen Kallakuri <prak23 (AT) gmail (DOT) comwrote:
>>
>>
>I am still figuring out how m2 does what it does so please bear with a
>newbie question. I want to configure m2 to pick up the latest jar
>from the
>following location:
>>
>>
>
>>
>>
>So I have the following in my pom.xml
>>
><repositories>
><repository>
><id>Private maven2 snapshots repository</id>
><url></url>
></repository>
></repositories>
><dependencies>
><dependency>
><groupId>junit</groupId>
><artifactId>junit</artifactId>
><version>3.8.1</version>
></dependency>
><dependency>
><groupId>net.sourceforge.jwebunit</groupId>
><artifactId>jwebunit-core</artifactId>
><version>1.3-SNAPSHT</version>
></dependency>
>>
>However, I get the following error when I run "mvn compile":
>>
>[INF] snapshot
>for
>updates from Private maven2 snapshots repository
>Downloading:
>
>>
>[WARNING] Unable to get resource from repository Private maven2
>snapshots
>repository ( )
>>
>The file it is trying to download obviously doesn't exist. But I see
>that
>the dir has a maven-metadata.xml .
>doesn't maven read from it and figure out the file to download on its
>own?
>>
><groupId>net.sourceforge.jwebunit</groupId>
><artifactId>jwebunit-core</artifactId>
><version>1.3-SNAPSHT </version>
><versioning>
><snapshot>
><timestamp>20060602.154251</timestamp>
><buildNumber>2</buildNumber>
></snapshot>
><lastUpdated>20060602155037</lastUpdated>
></versioning>
></metadata>
>>
>If it can't, how can I specify in my dependency fully qualified name of
>the target?
>>
>--
>>
>k.p.
>>
>
>
>
To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
For additional commands, e-mail: users-help (AT) maven (DOT) apache.org