gpt4 book ai didi

java - Floreant POS : Error on build using maven

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:14:22 27 4
gpt4 key购买 nike

我正在尝试编译 Floreant POS使用maven的源代码。我从 SVN 存储库获取源代码并尝试运行“mvn clean install”命令,但出现以下错误:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building floreantpos 1.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.oro:licensor:jar:1.1-SNAPSHOT is missing, no dependency information available
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ floreantpos ---
[INFO] Deleting C:\workspace\floreantpos-code-706-trunk\target
[INFO]
[INFO] --- buildnumber-maven-plugin:1.3:create (default) @ floreantpos ---
[INFO] Downloading: http://maven.tmatesoft.com/content/repositories/releases/org/tmatesoft/svnkit/svnkit/1.8.4/svnkit-1.8.4.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.329 s
[INFO] Finished at: 2016-07-20T15:33:40-03:00
[INFO] Final Memory: 13M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.3:create (default) on project floreantpos: Execution default of goal org.codehaus.mojo:buildnumber-maven-plugin:1.3:create failed: Plugin org.codehaus.mojo:buildnumber-maven-plugin:1.3 or one of its dependencies could not be resolved: Failed to collect dependencies at org.codehaus.mojo:buildnumber-maven-plugin:jar:1.3 -> com.google.code.maven-scm-provider-svnjava:maven-scm-provider-svnjava:jar:2.1.1 -> org.tmatesoft.svnkit:svnkit:jar:1.8.4: Failed to read artifact descriptor for org.tmatesoft.svnkit:svnkit:jar:1.8.4: Could not transfer artifact org.tmatesoft.svnkit:svnkit:pom:1.8.4 from/to maven.tmatesoft.com.releases (http://maven.tmatesoft.com/content/repositories/releases): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

谁能帮帮我?谢谢!

最佳答案

简单的解决方案是从 pom.xml 文件中删除以下插件

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>buildnumber-maven-plugin</artifactId>
<version>1.3</version>
<executions>
<execution>
<phase>validate</phase>
<goals>
<goal>create</goal>
</goals>
</execution>
</executions>
<configuration>
<doCheck>false</doCheck>
<doUpdate>false</doUpdate>
<providerImplementations>
<svn>javasvn</svn>
</providerImplementations>
</configuration>
<dependencies>
<dependency>
<groupId>com.google.code.maven-scm-provider-svnjava</groupId>
<artifactId>maven-scm-provider-svnjava</artifactId>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>org.tmatesoft.svnkit</groupId>
<artifactId>svnkit</artifactId>
<version>1.8.5</version>
</dependency>
</dependencies>
</plugin>

谢谢

关于java - Floreant POS : Error on build using maven,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38488329/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com