guoguibing / librec

LibRec: A Leading Java Library for Recommender Systems, see
https://www.librec.net/
Other
3.23k stars 1.03k forks source link

pom 验证问题 #271

Open FlatMapIO opened 6 years ago

FlatMapIO commented 6 years ago

pom 文档一直有问题, 不知道 IDE 是怎么正确加载工程的. 下面是当前 master 分支 mvn validate 的输出结果:

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] 'dependencies.dependency. net.librec:librec-core:3.0.0-beta' for net.librec:librec-core:3.0.0-beta is referencing itself. @ net.librec:librec-core:[unknown-version], /Users/HD/Workspace/stars/librec/core/pom.xml, line 79, column 15
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ net.librec:librec-spark:[unknown-version], /Users/HD/Workspace/stars/librec/spark/pom.xml, line 98, column 12
 @
[ERROR] The build could not read 2 projects -> [Help 1]
[ERROR]
[ERROR]   The project net.librec:librec-gui:[unknown-version] (/Users/HD/Workspace/stars/librec/gui/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for net.librec:librec-gui:[unknown-version]: Failure to find net.librec:librec:pom:2.0.0-beta in http://maven.aliyun.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 13 -> [Help 2]
[ERROR]
[ERROR]   The project net.librec:librec-core:3.0.0-beta (/Users/HD/Workspace/stars/librec/core/pom.xml) has 1 error
[ERROR]     'dependencies.dependency. net.librec:librec-core:3.0.0-beta' for net.librec:librec-core:3.0.0-beta is referencing itself. @ net.librec:librec-core:[unknown-version], /Users/HD/Workspace/stars/librec/core/pom.xml, line 79, column 15
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

希望能修正这个问题.

SunYatong commented 6 years ago

刚刚修复了 GUI maven 配置的问题,请更新代码后再试下~

FlatMapIO commented 6 years ago

librec-core 模块中也循环依赖了 librec-core 自己.

SunYatong commented 6 years ago

感谢提醒,已修复