Sorry, I meant earlier, when it attempts it (Downloading: ....) and the few lines surrounding that (particularly helpful might be -X on the cmd line if it doesn't show anything else around that line)

- Brett

On 26/02/2009, at 2:49 AM, Thai Dang Vu wrote:

When maven attempts to download it, maven shows this:

[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-SNAPSHOT



org.apache.maven.artifact.resolver.ArtifactResolutionException: 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-SNAPSHOT


at org .apache .maven .artifact .resolver .DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:201) at org .apache .maven .artifact .resolver .DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:83) at org .jetbrains .idea .maven .embedder.CustomArtifactResolver.resolve(CustomArtifactResolver.java: 36) at org .apache .maven .artifact .resolver .DefaultArtifactResolver .resolveTransitively(DefaultArtifactResolver.java:467) at org .apache .maven .artifact .resolver .DefaultArtifactResolver .resolveTransitively(DefaultArtifactResolver.java:394) at org .apache .maven .artifact .resolver .DefaultArtifactResolver .resolveTransitively(DefaultArtifactResolver.java:337) at org .apache .maven .plugin .DefaultPluginManager .resolveTransitiveDependencies(DefaultPluginManager.java:1455) at org .apache .maven .plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java: 522) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265) at org .apache .maven .lifecycle .DefaultLifecycleExecutor .executeTaskSegments(DefaultLifecycleExecutor.java:191) at org .apache .maven .lifecycle .DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149) at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java: 223) at org .apache .maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:1)
at org .apache .maven.embedder.MavenEmbedder.execute_aroundBody2(MavenEmbedder.java: 904) at org .apache .maven .embedder .MavenEmbedder.execute_aroundBody3$advice(MavenEmbedder.java:304) at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:1) at org.jetbrains.idea.maven.embedder.MavenEmbedderWrapper $2.execute(MavenEmbedderWrapper.java:85) at org.jetbrains.idea.maven.embedder.MavenEmbedderWrapper $7.execute(MavenEmbedderWrapper.java:184) at org.jetbrains.idea.maven.embedder.MavenEmbedderWrapper $7.execute(MavenEmbedderWrapper.java:181) at org.jetbrains.idea.maven.embedder.MavenEmbedderWrapper $8.run(MavenEmbedderWrapper.java:197) at com.intellij.openapi.application.impl.ApplicationImpl $5.run(ApplicationImpl.java:8) at java.util.concurrent.Executors $RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java: 303)
   at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:908)
   at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl $1$1.run(ApplicationImpl.java:5)




________________________________
From: Brett Porter <[email protected]>
To: Maven Users List <[email protected]>
Sent: Wednesday, February 25, 2009 10:04:01 AM
Subject: Re: How to use snapshot libraries in our projects?

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]



--
Brett Porter
[email protected]
http://blogs.exist.com/bporter/


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to