我有一个JSF
应用程序使用Primefaces
,我已经创建了Primefaces
用于演示文稿的自定义主题。主题放在JAR
文件中,我已将其添加为本地Maven
依赖项。Maven本地依赖认证错误
经过几个月没有触及代码,我今天做了一些小的改变。当试图构建应用程序,我得到一个错误说,它失败:
无法读取的nivis2神器描述:nivis2:罐子:2:无法传输神器......等
当试图显示NetBeans
Artifact details
我得到一些更多的信息:
错误解决项目神器:无法传输神器 nivis2:nivis2:POM:从/ 2至PrimeFaces Maven的-lib的 ( http://repository.primefaces.org/):同行不被认证为 项目nivis2:nivis2:罐子:2
POM:
<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>com.nivis</groupId>
<artifactId>idre_mk2</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>idre_mk2</name>
<properties>
<endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.10</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.2</version>
</dependency>
<dependency>
<groupId>nivis2</groupId>
<artifactId>nivis2</artifactId>
<version>2</version>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-web-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.7.2</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.12</version>
</dependency>
<dependency>
<groupId>javax.mail</groupId>
<artifactId>javax.mail-api</artifactId>
<version>1.5.4</version>
</dependency>
<!-- Shiro dependencies: -->
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-core</artifactId>
<version>1.2.4</version>
</dependency>
<dependency>
<groupId>org.apache.shiro</groupId>
<artifactId>shiro-web</artifactId>
<version>1.2.4</version>
<!--<classifier>sources</classifier>-->
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.9.2</version>
</dependency>
<dependency>
<groupId>org.omnifaces</groupId>
<artifactId>omnifaces</artifactId>
<version>2.1</version>
<!--<classifier>sources</classifier>-->
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<compilerArguments>
<endorseddirs>${endorsed.dir}</endorseddirs>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.3</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<outputDirectory>${endorsed.dir}</outputDirectory>
<silent>true</silent>
<artifactItems>
<artifactItem>
<groupId>javax</groupId>
<artifactId>javaee-endorsed-api</artifactId>
<version>7.0</version>
<type>jar</type>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<url>http://repository.primefaces.org/</url>
<id>PrimeFaces-maven-lib</id>
<layout>default</layout>
<name>Repository for library PrimeFaces-maven-lib</name>
</repository>
</repositories>
</project>
目录:
该nivis2-2.pom.lastUpdated
文件包含以下信息:
#NOTE: This is an internal implementation file, its format can be changed without prior notice.
#Mon Aug 07 13:49:13 CEST 2017
default-http\://repository.primefaces.org/.lastUpdated=1502106553736
http\://repo.maven.apache.org/maven2/.lastUpdated=1502105030633
http\://repository.primefaces.org/.error=Could not transfer artifact nivis2\:nivis2\:pom\:2 from/to PrimeFaces-maven-lib (http\://repository.primefaces.org/)\: sun.security.validator.ValidatorException\: PKIX path building failed\: sun.security.provider.certpath.SunCertPathBuilderException\: unable to find valid certification path to requested target
我没有真正改变任何东西,我不知道如何解释错误信息 - 它是否尝试将我的JAR文件复制到外部存储库Primefaces
?为什么现在突然间呢?
无论如何。我只需要能够使用自定义Primefaces
主题,也许有比这更好的方法呢?
这不是PrimeFaces库。它不在该存储库中。最有可能的是ypur maven settings.xml改变了,或者这个库在你以前的本地仓库中,它目前不是 – Kukeltje
对于你编辑的问题中的错误,搜索互联网......已经有Q/A – Kukeltje
我一直在在搜索互联网时无法找到答案,也许我不明白,我看了答案 - 你能指点我的问题吗? – nivis