17

I am trying to follow http://primefaces.org/themes to get it working.

All community themes are also available in "all-in-one" package.

<dependency>  
  <groupId>org.primefaces.themes</groupId>  
  <artifactId>all-themes</artifactId>  
  <version>1.0.10</version>  
</dependency> 

I added primefaces repository and have artifactory running. It says *.jar artifact missing.

I can see directories of all themes on local maven repository. However, all jars are missing and can't find them on artifactory server either.

kenorb
  • 155,785
  • 88
  • 678
  • 743
hakkican
  • 406
  • 1
  • 3
  • 12

9 Answers9

72

You must add repositories:

<repositories>
    <repository>
        <id>prime-repo</id>
        <name>PrimeFaces Maven Repository</name>
        <url>http://repository.primefaces.org</url>
        <layout>default</layout>
    </repository>
</repositories>
milosz889
  • 721
  • 4
  • 2
6

The http://repository.primefaces.org redirects to secure https://repository.primefaces.org, but the the server's certificate can't be trusted based on Java's default trust store.

You have two options:

  1. Add the "Let's Encrypt Authority X3" CA cert to the /lib/sercurity/cacerts. (The default password is: changeit)
  2. Ignore maven's certificate validation: How to tell Maven to disregard SSL errors (and trusting all certs)?
Community
  • 1
  • 1
Bukodi László
  • 428
  • 9
  • 15
  • Absolutely the right answer if one already has the Primefaces Repo in the section of pom.xml. Eclipse sufficiently obscures the real issue that it was a huge relief to stumble on this answer. I chose to install the Let's Encrypt cert but can't figure out why the Primefaces folks would use that CA. I can only imagine the workarounds that are being attempted to address (including some from other suggested answers ... eg. wget on entire section of repo which works but not sustainable). I'd be hesitant to have Maven disregard SSL issues, though. – Jacob Zwiers Mar 28 '17 at 18:09
  • 1
    Or use a more modern jdk? Does it contain the issuer then? – Kukeltje Mar 09 '18 at 18:40
2

Version 1.0.10 does not seem to be available at the moment. You can follow this link to see the latest version: http://search.maven.org/#search%7Cgav%7C1%7Cg%3A%22org.primefaces.extensions%22%20AND%20a%3A%22all-themes%22

I had this same issue. I fixed it by changing my dependency in my pom.xml file to:

  <dependency>  
    <groupId>org.primefaces.extensions</groupId>  
    <artifactId>all-themes</artifactId>   
    <version>1.0.8</version>  
</dependency>  

Because version 1.0.8 is the latest version I got what I needed. The only difference between what I have and what you have is the the groupId. After changing your groupId and doing a Maven update it worked fine.

level2fast
  • 31
  • 3
1

Try:

<dependency>
    <groupId>org.primefaces.extensions</groupId>
    <artifactId>all-themes</artifactId>
    <version>1.0.8</version>
</dependency>

I have tried with 1.0.10 but failed, 1.0.8 is ok!

ebo
  • 2,717
  • 1
  • 27
  • 22
SuperChia
  • 131
  • 1
  • 1
  • 4
0

Ubuntu have a problem with certificates, you have to add using this:

apt-get install ca-certificates-java
apt-get install ca-certificates
0

I was getting the error Blocked mirror for repositories: [prime-repo (http://repository.primefaces.org, default, releases+snapshots) and changed my http reference to https, problem solved!

<repositories>
  <repository>
    <id>prime-repo</id>
    <name>PrimeFaces Maven Repository</name>
    <url>https://repository.primefaces.org</url>
    <layout>default</layout>
  </repository>
</repositories>
ScottFree
  • 582
  • 6
  • 23
-1

It seems repo is temporary broken, so you have to download it manualy.

  1. Download all dependencies from http://repository.primefaces.org/org/primefaces/themes/

Here is how to do that: How to download HTTP directory with all files and sub-directories as they appear on the online files/folders list?

wget -r -np -nH --cut-dirs=3 -R index.html http://repository.primefaces.org/org/primefaces/themes/
  1. Move it to your ~/.m2/repository/org/primefaces/themes dir
  2. Update local repository index img: NetBeans update index example
Community
  • 1
  • 1
wunt
  • 109
  • 5
-1

I had this issue a while ago. I simply downloaded the jar file from Maven and placed the jar file in the *.m2\repository\org\primefaces\themes\all-themes\1.0.10 directory. Then on Eclipse I run maven > update.

  • Why? Why not solve the real issue. This is sort of a not to good solution. And your answer has already been given... – Kukeltje Mar 09 '18 at 18:38