2017-03-17 3 views
0

単純なメニューをドロップダウンするためにspring-bootを使用して、私のmavenプロジェクト内でVaadinの最後のバージョンをTree() methodに使用しようとしましたが、正しいパッケージをインポートできません。ツリーコンポーネントのVaadin最新バージョンが動作しない

私はちょうど私のpom.xmlファイルにこれらの依存関係を持っている:これは誤りである

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 
    <modelVersion>4.0.0</modelVersion> 
    <parent> 
     <groupId>org.springframework.boot</groupId> 
     <artifactId>spring-boot-starter-parent</artifactId> 
     <version>1.5.2.RELEASE</version> 
    </parent> 
    <groupId>spring.boot.vaadin.admin</groupId> 
    <artifactId>spring.boot.vaadin.admin.ui</artifactId> 
    <version>0.0.1-SNAPSHOT</version> 
    <dependencies> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-test</artifactId> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-tomcat</artifactId> 
      <scope>provided</scope> 
     </dependency> 
     <dependency> 
      <groupId>org.springframework.boot</groupId> 
      <artifactId>spring-boot-starter-web</artifactId> 
     </dependency> 
     <dependency> 
      <groupId>com.vaadin</groupId> 
      <artifactId>vaadin-spring-boot-starter</artifactId> 
      <version>2.0.0</version> 
     </dependency> 
    </dependencies> 
    <properties> 
     <java.version>1.8</java.version> 
    </properties> 
    <build> 
     <sourceDirectory>src/main/java</sourceDirectory> 
     <plugins> 
      <plugin> 
       <groupId>org.springframework.boot</groupId> 
       <artifactId>spring-boot-maven-plugin</artifactId> 
       <configuration> 
        <executable>true</executable> 
       </configuration> 
      </plugin> 
      <plugin> 
       <groupId>org.apache.maven.plugins</groupId> 
       <artifactId>maven-war-plugin</artifactId> 
       <configuration> 
        <failOnMissingWebXml>false</failOnMissingWebXml> 
        <warName>spring-boot-vaadin-admin-ui-components</warName> 
       </configuration> 
      </plugin> 
     </plugins> 
     <finalName>spring-boot-vaadin-admin-ui-components</finalName> 
    </build> 
    <packaging>war</packaging> 
</project> 

enter image description here

私はツリーを(使用するために何をすべき)Vaadinの最新バージョンにし、このエラーを解決しますか?

答えて

3

TreeコンポーネントはVaadin 8でまだ完全に準備されていません。使用したい場合は、vaadin-compatibility-serverパッケージを使用する必要があります。詳細については

<dependency> 
    <groupId>com.vaadin</groupId> 
    <artifactId>vaadin-compatibility-server</artifactId> 
    <version>8.0.2</version> 
</dependency> 
+1

は、[レガシーコンポーネントのリリースノートセクション]をチェックすることができます(https://vaadin.com/download/release/8.0/8.0.2/release-notes.html#legacycomponents)など[移行の提案](https://vaadin.com/docs/-/part/framework/migration/migrating-to-vaadin8.html)と同様に、 – Morfic

関連する問題