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 <[EMAIL PROTECTED]>:

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 <[EMAIL PROTECTED]> 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
>

Reply via email to