Gradle无法解析PrimeFaces主题依赖关系:peer未通过身份验证

时间:2017-03-30 21:44:26

标签: ssl gradle primefaces

我有一个Gradle Java项目,我正在使用JSF和PrimeFaces。 为了更改它的主题,我在build.gradle文件中添加了所需的依赖项,其中最重要的部分配置如下:

apply plugin: 'war'
apply plugin: 'eclipse-wtp'

sourceCompatibility = 1.8
version = '1.0'
jar {
    manifest {
        attributes  'Implementation-Title': 'Arch Project', 
                    'Implementation-Version': version
    }
}

repositories {    
    mavenCentral()
    jcenter()

    maven { url 'https://repository.primefaces.org' }
    maven { url 'https://repository.jboss.org/nexus/content/groups/public' }
}

configurations {
    provided
}

sourceSets {
    main.compileClasspath += configurations.provided
    test.compileClasspath += configurations.provided
    test.runtimeClasspath += configurations.provided
}

dependencies {

    /* Cryptography API for BCrypt algorithm. */
    compile 'de.svenkubiak:jBCrypt:0.4'

    /* Primefaces. */
    compile 'org.primefaces:primefaces:5.3'

    /* Primefaces pepper grinder theme. */
    compile 'org.primefaces.themes:pepper-grinder:1.0.10'

    ... another few dependencies
} 

但是,当我在控制台上运行gradle build时,我收到以下错误:

C:\Users\bruno.gasparotto\git\archproject\archproject>gradle build
:compileJava

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':compile'.
> Could not resolve org.primefaces.themes:pepper-grinder:1.0.10.
  Required by:
      :archproject:1.0
   > Could not HEAD 'https://repository.primefaces.org/org/primefaces/themes/pepper-grinder/1.0.10/pepper-grinder-1.0.10.pom'.
      > peer not authenticated

到目前为止我尝试过但没有工作的内容:

  • 将依赖关系从pepper-grinder更改为all-themes
  • 在我的https文件中的PrimeFaces repo配置中用http替换了build.gradle

此外,重要的是要提及:

  • 如果我尝试通过浏览器访问,则可以使用网址https://repository.primefaces.org/org/primefaces/themes/pepper-grinder/1.0.10/pepper-grinder-1.0.10.pom
  • 我在代理后面
  • 如果我删除pepper-grinder依赖项,它就可以正常运行。
  • 相同的设置过去一年多以前都有用,所以我相信会有新的事情发生。

有什么想法吗? 谢谢你的到来。

0 个答案:

没有答案
相关问题