You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Borut Bolčina <bo...@gmail.com> on 2007/04/23 22:11:02 UTC

Depending on snapshots

Hello,

how can I use last known good snapshot, if the latest isn't working? Let's
say a third party or in-house snapshot jar is downloaded to my local repo
which brakes my application.  If I don't want to use for example:
tapestry-framework-4.1.2-SNAPSHOT.jar
and instead want a few days older one
tapestry-framework-4.1.2-20070321.174345-38.jar

What should my dependency section look like? Is it possible to use jars
based on date/time?

Thanks,
Borut

Re: Depending on snapshots

Posted by Borut Bolčina <bo...@gmail.com>.
If I use this notation, how can I be sure that this jar is being put on my
web app classpath, as the pom file for this jar (4.1.2-20070321.174345-38)
says 4.1.2-SNAPSHOT?

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.apache.tapestry</groupId>
    <artifactId>tapestry-framework</artifactId>
    <packaging>jar</packaging>
    <version>4.1.2-SNAPSHOT</version>
    <!-- This should change to tapestry-project -->
    <parent>
        <groupId>org.apache.tapestry</groupId>
        <artifactId>tapestry-project</artifactId>
        <version>4.1.2-SNAPSHOT</version>
    </parent>
    <name>Tapestry Core Library - ${version}</name>
    <inceptionYear>2006</inceptionYear>


Launching jetty with mvn clean package jetty:run gives me (shortened just
show tapestry jar):

...
[INFO] Classpath =
[file:/C:/Documents%20and%20Settings/borutb/Desktop/Workspace/posting-editor/target/classes/,...
file:/C:/Documents%20and%20Settings/borutb/.m2/repository/org/apache/tapestry/tapestry-framework/4.1.2-SNAPSHOT/tapestry-
framework-4.1.2-SNAPSHOT.jar, ...


As you can see, no 4.1.2-20070321.174345-38 is used. Is this the intended
behaviour?

Thanks,
Borut


2007/4/23, Kalle Korhonen <ka...@gmail.com>:
>
> Yes, just use the unique version of the snapshot like you would do for a
> release version:
> <version>4.1.2-20070321.174345-38</version>
>
> Kalle
>
> On 4/23/07, Borut Bolčina <bo...@gmail.com> wrote:
> >
> > Hello,
> >
> > how can I use last known good snapshot, if the latest isn't working?
> Let's
> > say a third party or in-house snapshot jar is downloaded to my local
> repo
> > which brakes my application.  If I don't want to use for example:
> > tapestry-framework-4.1.2-SNAPSHOT.jar
> > and instead want a few days older one
> > tapestry-framework-4.1.2-20070321.174345-38.jar
> >
> > What should my dependency section look like? Is it possible to use jars
> > based on date/time?
> >
> > Thanks,
> > Borut
> >
>

Re: Depending on snapshots

Posted by Kalle Korhonen <ka...@gmail.com>.
Yes, just use the unique version of the snapshot like you would do for a
release version:
<version>4.1.2-20070321.174345-38</version>

Kalle

On 4/23/07, Borut Bolčina <bo...@gmail.com> wrote:
>
> Hello,
>
> how can I use last known good snapshot, if the latest isn't working? Let's
> say a third party or in-house snapshot jar is downloaded to my local repo
> which brakes my application.  If I don't want to use for example:
> tapestry-framework-4.1.2-SNAPSHOT.jar
> and instead want a few days older one
> tapestry-framework-4.1.2-20070321.174345-38.jar
>
> What should my dependency section look like? Is it possible to use jars
> based on date/time?
>
> Thanks,
> Borut
>