jars are missing on `artifactory` server after installing primefaces all-themes

 ̄綄美尐妖づ 提交于 2020-01-20 02:16:08

问题


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.


回答1:


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>



回答2:


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)?



回答3:


Repository

http://search.maven.org/#search|ga|1|g%3A%22org.primefaces.extensions%22

or

Custom

Step 1 - http://jqueryui.com/themeroller/

Step 2 - https://themeroller.osnode.com/themeroller/




回答4:


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!




回答5:


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.




回答6:


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

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



回答7:


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



回答8:


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.



来源:https://stackoverflow.com/questions/21705509/jars-are-missing-on-artifactory-server-after-installing-primefaces-all-themes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!