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?

On 6/17/06, Praveen Kallakuri <[EMAIL PROTECTED]> wrote:


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:


http://jwebunit.sourceforge.net/m2-repo-snapshots/net/sourceforge/jwebunit/jwebunit-core/1.3-SNAPSHOT/

So I have the following in my pom.xml

  <repositories>
    <repository>
      <id>Private maven2 snapshots repository</id>
      <url>http://jwebunit.sourceforge.net/m2-repo-snapshots</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-SNAPSHOT</version>
    </dependency>

However, I get the following error when I run "mvn compile":

[INFO] snapshot net.sourceforge.jwebunit:jwebunit-core:1.3-SNAPSHOT:checking 
for updates from Private maven2 snapshots repository
Downloading:
http://jwebunit.sourceforge.net/m2-repo-snapshots/net/sourceforge/jwebunit/jwebunit-core/1.3-SNAPSHOT/jwebunit-core-1.3-SNAPSHOT.pom
[WARNING] Unable to get resource from repository Private maven2 snapshots
repository ( http://jwebunit.sourceforge.net/m2-repo-snapshots)

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-SNAPSHOT </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.




--

                                                      k.p.

Reply via email to