pom.xml for snapshot libraries in 9742

Somebody from RichFaces ensures that this pom works, but it doesn't work for me (even though I tried to delete the .m2 directory). Could anybody try this (just re-import it, I use maven to manage library dependencies only, not to compile nor build the project)? Thank you.

<?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>war</packaging>
    <repositories>
        <repository>
            <id>repository.jboss.org</id>
            <name>JBoss Repository</name>
            <url>http://repository.jboss.org/maven2</url>
        </repository>
        <repository>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <id>snapshots.jboss.org</id>
            <name>Jboss Snapshot Repository for Maven</name>
            <url>http://snapshots.jboss.org/maven2/</url>
            <layout>default</layout>
        </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>

2 comments
Comment actions Permalink

I tried this pom

<?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>home</groupId>
    <artifactId>richfacesExample</artifactId>
    <packaging>war</packaging>
    <version>1.0-SNAPSHOT</version>
    <name>RichFaces Experiment in Tomcat</name>
    <build>
        <finalName>richfacesExample</finalName>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.1</version>
                <inherited>true</inherited>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                    <encoding>utf-8</encoding>
                </configuration>
            </plugin>
        </plugins>
    </build>
    <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>
    <repositories>
        <repository>
            <id>repository.jboss.org</id>
            <name>JBoss Repository</name>
            <url>http://repository.jboss.org/maven2/</url>
        </repository>
        <repository>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
            <id>snapshots.jboss.org</id>
            <name>JBoss Snapshot Repository for Maven</name>
            <url>http://snapshots.jboss.org/maven2/</url>
            <layout>default</layout>
        </repository>
    </repositories>
</project>


Running mvn compile at the command prompt will download all the snapshot libraries correctly. However, re-importing this pom in 9742 gives error:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building RichFaces Experiment in Tomcat
[INFO]
[INFO] Id: home:richfacesExample:war:1.0-SNAPSHOT
[INFO] task-segment: [generate-sources, generate-resources, generate-test-sources, generate-test-resources]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[ERROR] BUILD FAILED
[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) home:richfacesExample:war:1.0-SNAPSHOT
    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) home:richfacesExample:war:1.0-SNAPSHOT
    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)


Did I do something wrong in Idea or did Idea do it wrong?

0
Comment actions Permalink

Hi,
I've tried this pom file and it doesn't work neither with IDEA nor with mvn compile command.
Try downloading and installing the corresponding artifact manually.

Thanks,
Anton Makeev

0

Please sign in to leave a comment.