0
当我导入maven项目并构建它时,我得到下面的错误:Run as> Maven build。无法解决依赖关系:org.springframeswork:spring-core:jar:4.3.10.RELEASE
我删除了我的.m2文件夹以及与Eclipse相关的所有内容,以便从头开始仍然不起作用。
我试过了:Maven> Update Project>强制更新但不工作。
生成错误:
[ERROR] Failed to execute goal on project ecours: Could not resolve dependencies for project com.ecours:ecours:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at org.primefaces.themes:sunny:jar:1.0.10: Failed to read artifact descriptor for org.primefaces.themes:sunny:jar:1.0.10: Could not transfer artifact org.primefaces.themes:sunny:pom:1.0.10 from/to prime-repo (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 -> [Help 1]
的pom.xml
<properties>
<org.springframework-version>4.3.10.RELEASE</org.springframework-version>
<primefaces-version>5.3</primefaces-version>
</properties>
<dependencies>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>3.0-alpha-1</version>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<version>2.3.1</version>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>javax.faces-api</artifactId>
<version>2.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframeswork</groupId>
<artifactId>spring-core</artifactId>
<version>${org.springframework-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${org.springframework-version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${org.springframework-version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.9</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>5.2.9.Final</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>1.11.6.RELEASE</version>
</dependency>
<dependency>
<groupId>com.jolbox</groupId>
<artifactId>bonecp</artifactId>
<version>0.7.1.RELEASE</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>${primefaces-version}</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.16.2</version>
</dependency>
<dependency>
<groupId>org.primefaces.themes</groupId>
<artifactId>sunny</artifactId>
<version>1.0.10</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>prime-repo</id>
<name>PrimeFaces Maven Repository</name>
<url>http://repository.primefaces.org</url>
<layout>default</layout>
</repository>
</repositories>
任何帮助吗?
显示另一个错误:无法在org.primefaces.themes收集的依赖。 – Spoonatte
对于'groupId = org.primefaces.themes',[Maven Central]中没有任何内容(http://search.maven.org/#search|ga|1|org.primefaces.themes)。所以,大概这是打算从http://repository.primefaces.org解决?如果是这样,您是否可以在尝试解决依赖关系时更新问题以显示修改后的错误消息? – glytching
如何使用repository.primefaces.org中的主题? – Spoonatte