Java

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • need to specify build and timestamp in dependency?

    3 answers - 1812 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    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?
  • No.1 | | 2178 bytes | |

    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.
  • No.2 | | 3412 bytes | |

    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
  • No.3 | | 1456 bytes | |

    PGP SIGNED MESSAGE
    Hash: SHA1

    Hi,

    <repositories>
    <repository>
    <id>Private maven2 snapshots repository</id>
    <url></url>
    </repository>
    </repositories>

    ()

    <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 ()

    To be able to access snapshots you should add the following to your
    repositores section:

    <repository>
    <id>Private maven2 snapshots repository</id>
    <url></url>
    <releases>
    <enabled>true</enabled>
    </releases>
    <snapshots>
    <enabled>true</enabled>
    </snapshots>
    </repository>

    Then your dependency should work

    HTH

    Thorsten
    PGP SIGNATURE
    Version: GnuPG v1.4.3 (MingW32)

    rrkFUo7BcxnsoE6ull8ryc=
    =h72r
    PGP SIGNATURE

    To unsubscribe, e-mail: users-unsubscribe (AT) maven (DOT) apache.org
    For additional commands, e-mail: users-help (AT) maven (DOT) apache.org

Re: need to specify build and timestamp in dependency?


max 4000 letters.
Your nickname that display:
In order to stop the spam: 8 + 7 =
QUESTION ON "Java"

EMSDN.COM