【发布时间】:2019-04-01 09:14:09
【问题描述】:
问题
我在IntelliJ 2018.3 有一个工作项目,用于Vaadin 11,使用Project Base starter-pack 创建。
➥ 如何从 Vaadin 11.0.0 切换到 Vaadin 12.0.0.alpha4 ?
我的问题与此类似,Vaadin 8 alpha/beta prerelease fail with “Non-resolvable import POM: Failure to find” errors。该页面上的The solution 是在IntelliJ 的Maven 侧边栏中的Profiles 列表中启用vaadin-prerelease 复选框。但是对于 Vaadin 11 项目,在那里找到的唯一此类复选框标记为 production-mode。
失败的解决方案
在项目的Maven POM文件pom.xml,我尝试切换:
<vaadin.version>11.0.0</vaadin.version>
…到:
<vaadin.version>12.0.0.alpha4</vaadin.version>
...从currently published JavaDoc site 中获取了版本号字符串。
在使用此版本号执行 Maven clean 时,我收到以下错误:
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Non-resolvable import POM: Failure to find com.vaadin:vaadin-bom:pom:12.0.0.alpha4 in http://maven.vaadin.com/vaadin-addons was cached in the local repository, resolution will not be reattempted until the update interval of Vaadin Directory has elapsed or updates are forced @ line 28, column 25
[ERROR] 'dependencies.dependency.version' for com.vaadin:vaadin-core:jar is missing. @ line 39, column 21
[ERROR] 'dependencies.dependency.version' for org.slf4j:slf4j-simple:jar is missing. @ line 46, column 21
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.basilbourque.acme:acme:1.0-SNAPSHOT (/Users/basilbourque/IdeaProjects/Acme/pom.xml) has 3 errors
[ERROR] Non-resolvable import POM: Failure to find com.vaadin:vaadin-bom:pom:12.0.0.alpha4 in http://maven.vaadin.com/vaadin-addons was cached in the local repository, resolution will not be reattempted until the update interval of Vaadin Directory has elapsed or updates are forced @ line 28, column 25 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for com.vaadin:vaadin-core:jar is missing. @ line 39, column 21
[ERROR] 'dependencies.dependency.version' for org.slf4j:slf4j-simple:jar is missing. @ line 46, column 21
[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
【问题讨论】:
-
对于 Vaadin 14,请参阅:Configure Maven pom to access Vaadin 14 alpha pre-release。 My solution there 与 my solution here 非常相似。
标签: maven intellij-idea vaadin project vaadin-flow