[英]Vaadin 10 maven pom file
我试图从Vaadin 8迁移到10,并且在更新pom文件中的vaadin-bom版本时遇到问题。
以前:
<properties>
<vaadin.version>8.4.3</vaadin.version>
<vaadin.plugin.version>8.4.3</vaadin.plugin.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-bom</artifactId>
<version>${vaadin.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-server</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-push</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-client-compiled</artifactId>
</dependency>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-themes</artifactId>
</dependency>
</dependencies>
一旦我将版本更新到10.0.1,我已经得到所有依赖项的错误
项目构建错误:com.vaadin:vaadin-server:jar的'dependencies.dependency.version'丢失。
我是否明确为依赖项放置一个版本(最新版本仍为8 ++)? 还是我应该在pom文件中更改任何步骤以使更新成功?
与以前的版本相比,Vaadin 10的打包方式稍有不同,这意味着存在不同的工件ID和不同的Maven插件(仅在生产版本中需要)。 不建议直接通过更改版本号和解决编译错误来直接更新。
您可以使用https://vaadin.com/start中的“项目库”启动程序之一来找到有效的基准pom.xml
设置,然后在上面添加自己的内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.