This looks correct. What happens in your output when it attempts to
download it?
- Brett
On 26/02/2009, at 1:52 AM, Thai Dang Vu wrote:
Thank you. I did as you said but received an error. This is my pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<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.richfaces.example</groupId>
<artifactId>richfaces-experiment</artifactId>
<version>1.0</version>
<name>RichFaces Experiment in Tomcat</name>
<packaging>jar</packaging>
<repositories>
<repository>
<id>repository.jboss.org</id>
<name>JBoss Repository</name>
<url>http://repository.jboss.org/maven2</url>
</repository>
<repository>
<id>snapshots.jboss.org</id>
<name>JBoss Snapshots</name>
<url>http://snapshots.jboss.org/maven2</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.sun.facelets</groupId>
<artifactId>jsf-facelets</artifactId>
<version>1.1.15.B1</version>
</dependency>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
<version>3.3.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>And this is the error
Failed to resolve artifact, possibly due to a repository list that
is not appropriately equipped for
this artifact's metadata.
org.richfaces.ui:richfaces-ui:jar:3.3.1-SNAPSHOT
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
repository.jboss.org (http://repository.jboss.org/maven2),
snapshots.jboss.org (http://snapshots.jboss.org/maven2)
Path to dependency:
1) org.richfaces.example:richfaces-experiment:jar:1.0
2) org.richfaces.ui:richfaces-ui:jar:3.3.1-SNAPSHOTDo you see where
I did wrong?
________________________________
From: Brett Porter <[email protected]>
To: Maven Users List <[email protected]>
Sent: Wednesday, February 25, 2009 8:16:36 AM
Subject: Re: How to use snapshot libraries in our projects?
Something like 1.0-SNAPSHOT (which corresponds to
1.0-20090226.123456-1). However, it is not recommended that you use
these once you have found a stable version - certainly for your own
releases/deployments you should have something that is reproducible
in the future.
- Brett
On 25/02/2009, at 8:53 PM, Thai Dang Vu wrote:
To use GA libraries, I write this in my pom.xml
<repository>
<id>repository.jboss.org</id>
<name>JBoss Repository</name>
<url>http://repository.jboss.org/maven2</url>
</repository>
<repository>
<id>snapshots.jboss.org</id>
<name>JBoss Snapshots</name>
<url>http://snapshots.jboss.org/maven2</url>
</repository>
<dependency>
<groupId>org.richfaces.ui</groupId>
<artifactId>richfaces-ui</artifactId>
<version>3.3.0.GA</version>
</dependency>
For JBoss snapshots, the jar files contain something like a
timestamp in their names. What does my pom.xml look like so that I
can get the latest jar files?
If you use IntelliJ Idea, then my final goal is to be able to get
the latest libraries every time I re-import the pom.xml (I use
maven to manage the dependencies only, not to compile nor build the
project).
Thank you.
--
Brett Porter
[email protected]
http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
Brett Porter
[email protected]
http://blogs.exist.com/bporter/
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]