Maven repository and dependency

Splash Forums PrettyFaces Users Maven repository and dependency

This topic contains 3 replies, has 2 voices, and was last updated by  menegazzo 6 years, 8 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17875

    menegazzo
    Participant

    Hello,

    I’m trying setup prettyfaces for maven, ant i tried these settings:

    <repository>

    <id>ocpsoft.prettyfaces</id>

    <name>PrettyFaces repository</name>

    <url>http://ocpsoft.com/repository/com/ocpsoft/</url&gt;

    </repository>

    <dependency>

    <groupId>com.ocpsoft</groupId>

    <artifactId>prettyfaces-jsf2</artifactId>

    <version>3.0.2</version>

    </dependency>

    I tried also:

    http://ocpsoft.com/repository/com/ocpsoft/ocpsoft-pretty-faces/

    http://repo1.maven.org/maven2/com/ocpsoft/

    as URLs for repository.

    All without success, the error i’m getting is:

    [ERROR]Failed to execute goal on project hellopretty: Could not resolve dependencies for project com.playground:hellopretty:war:1.0: Failure to find com.ocpsoft:prettyfaces-jsf2:jar:3.0.2 in http://download.java.net/maven/2 was cached in the local repository, resolution will not be reattempted until the update interval of java.net has elapsed or updates are forced -> [Help 1]

    What i’m doing wrong?

    #20716

    The repository URL is wrong. Just use this:

    <repository>
    <id>ocpsoft.prettyfaces</id>
    <name>PrettyFaces repository</name>
    <url>http://ocpsoft.com/repository</url>
    </repository>

    #20717

    By the way: You won’t need to add the OcpSoft repository if you are using just the stable releases of PrettyFaces as these are deployed to the Maven Central Repository.

    #20718

    menegazzo
    Participant

    I found the problem.

    The trap was the version number.

    There is no 3.0.2, only 3.0.2-SNAPSHOT.

    I fixed version number at dependency tag, and all went fine.

    Thanks man.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Comments are closed.