Maven Repository Themes problem

UI Components for JSF
Post Reply
Razoid
Posts: 2
Joined: 14 Sep 2016, 15:39

14 Sep 2016, 17:02

I have been to the following page for the Maven dependency for PrimeFaces themes and used the Maven dependency listed here:

http://www.primefaces.org/themes

The dependency listed at the bottom:

Code: Select all

<dependency>  
            <groupId>org.primefaces.themes</groupId>  
            <artifactId>all-themes</artifactId>  
            <version>1.0.10</version>  
</dependency> 
However, this returns the following error message:
Could not find artifact org.primefaces.themes:all-themes:jar:1.0.10 in central (https://repo.maven.apache.org/maven2)
I have found the following Maven dependency via the central repository:

Code: Select all

<dependency>
            <groupId>org.primefaces.extensions</groupId>
            <artifactId>all-themes</artifactId>
            <version>1.0.8</version>
</dependency>
However, I get the following error message when use this dependency:
Failed to collect dependencies at org.primefaces.extensions:all-themes:jar:1.0.8 -> org.primefaces.themes:afterdark:jar:1.0.8: Failed to read artifact descriptor for org.primefaces.themes:afterdark:jar:1.0.8: Could not transfer artifact org.primefaces.themes:afterdark:pom:1.0.8 from/to prime-repo-new (http://repository.primefaces.org): Access denied to: http://repository.primefaces.org/org/pr ... -1.0.8.pom
I presume the 2nd listed dependency is the correct to use, so can anyone help me resolve this issue?

I am currently behind a proxy, and I have Maven configured for the proxy, and I'm able to download all other Maven dependencies without an issue, so I do not believe that is the issue. I am not a proxy expert so I could be wrong.

Thanks in advance!

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

14 Sep 2016, 17:54

Please add;

Code: Select all

<repository>  
    <id>prime-repo</id>  
    <name>PrimeFaces Maven Repository</name>  
    <url>http://repository.primefaces.org</url>  
    <layout>default</layout>  
</repository>  

Razoid
Posts: 2
Joined: 14 Sep 2016, 15:39

14 Sep 2016, 18:05

I cleared my local maven repository and tried the repository again. I still receive the same error. :(

Jan Eckert
Posts: 84
Joined: 11 Sep 2014, 10:13
Location: Brussels, Belgium

29 Dec 2017, 11:42

I am late to the party but if this is still an issue, please post your whole pom. From what I read, It should work.
Primefaces 6.1+
Wildfly 11

greenup
Posts: 1
Joined: 28 Jun 2018, 16:11

03 Jul 2018, 11:07

Code: Select all

<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/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.zynp.jsf_learning</groupId>
  <artifactId>hellojsf</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <name>Hello JSF</name>
  
   <!-- PrimeFaces Repository -->
    <repositories>
        
   <repository>  
    <id>prime-repo</id>  
    <name>PrimeFaces Maven Repository</name>  
    <url>http://repository.primefaces.org</url>  
    <layout>default</layout>  
</repository>  
</repositories>
 
  
  <!-- JSF Dependency -->
  <dependencies>
  <dependency> <groupId>javax.faces</groupId>
   <artifactId>jsf-api</artifactId> 
   <version>2.1</version> 
   <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-api</artifactId>
        <version>2.2.14</version>
    </dependency>
    <dependency>
        <groupId>com.sun.faces</groupId>
        <artifactId>jsf-impl</artifactId>
        <version>2.2.14</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>javax.servlet-api</artifactId>
        <version>3.1.0</version>
    </dependency>
    <dependency>
    <groupId>commons-digester</groupId>
    <artifactId>commons-digester</artifactId>
    <version>2.1</version>
</dependency>

<!-- Primefaces -->
        <dependency>
            <groupId>org.primefaces</groupId>
            <artifactId>primefaces</artifactId>
            <version>6.0</version>
        </dependency>
 
        <!-- PrimeFaces Theme -->
        <dependency>
            <groupId>org.primefaces.themes</groupId>
            <artifactId>all-themes</artifactId>
            <version>1.0.10</version>
        </dependency>
 
 
</dependencies>
   
  <!-- Build Maven WAR -->
<build>
 
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.6.2</version>
        <configuration>
          <!-- Java version -->
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
    </plugins>
    
  </build>
</project>
I am also receiving the same error. And this is my pom.xml file. Can anybody help,please?

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests