【发布时间】:2020-07-31 21:39:15
【问题描述】:
我在将 Vaadin 添加到我的 Spring 引导项目时遇到了这些错误(我正在使用 Intellij IDEA):
Cannot resolve plugin com.vaadin:vaadin-maven-plugin:${vaadin.version}
Cannot resolve com.vaadin:vaadin-spring-boot-starter:${vaadin.version}
这是 pom.xml 中的相关部分,与 vaadin 网站上提出的相同:
<<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-bom</artifactId>
<!-- declare the latest Vaadin version
as a property or directly here -->
<version>${vaadin.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.vaadin</groupId>
<artifactId>
vaadin-spring-boot-starter
</artifactId>
<version>${vaadin.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- The Spring Boot Maven plugin for easy
execution from CLI and packaging -->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
</plugin>
<!--
Takes care of synchronizing java
dependencies and imports in package.json and
main.js files. It also creates
webpack.config.js if does not exist yet.
-->
<plugin>
<groupId>com.vaadin</groupId>
<artifactId>vaadin-maven-plugin</artifactId>
<version>${vaadin.version}</version>
<executions>
<execution>
<goals>
<goal>prepare-frontend</goal>
<goal>build-frontend</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
我该如何解决? 我需要配置其他东西吗?
谢谢
【问题讨论】:
标签: spring-boot maven dependencies vaadin pom.xml