2016-07-21 6 views
-1

私のプロジェクトでは、Vaadin Maven Spring Bootはテーマをコンパイルできませんが、別の投稿の同じプロジェクトが正しく動作し、テーマがeaslyコンパイルされます。Vaadin Maven Spring Bootテーマのコンパイル

これが私のpom.xmlです:

<parent> 
 
\t \t <groupId>org.springframework.boot</groupId> 
 
\t \t <artifactId>spring-boot-starter-parent</artifactId> 
 
\t \t <version>1.3.6.RELEASE</version> 
 
\t \t <relativePath /> <!-- lookup parent from repository --> 
 
\t </parent> 
 

 
\t <properties> 
 
\t \t <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
 
\t \t <java.version>1.8</java.version> 
 
\t </properties> 
 
\t <repositories> 
 
\t \t <repository> 
 
\t \t \t <id>vaadin-addons</id> 
 
\t \t \t <url>http://maven.vaadin.com/vaadin-addons</url> 
 
\t \t \t <snapshots> 
 
\t \t \t \t <enabled>true</enabled> 
 
\t \t \t </snapshots> 
 
\t \t </repository> 
 
\t \t <repository> 
 
     <id>AsposeJavaAPI</id> 
 
     <name>Aspose Java API</name> 
 
     <url>http://maven.aspose.com/artifactory/simple/ext-release-local/</url> 
 
    </repository> 
 
\t </repositories> 
 
\t <dependencies> 
 
\t \t <dependency> 
 
\t \t \t <groupId>org.springframework.boot</groupId> 
 
\t \t \t <artifactId>spring-boot-starter-data-jpa</artifactId> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>org.springframework.boot</groupId> 
 
\t \t \t <artifactId>spring-boot-starter-jdbc</artifactId> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>org.springframework.boot</groupId> 
 
\t \t \t <artifactId>spring-boot-starter-security</artifactId> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>com.vaadin</groupId> 
 
\t \t \t <artifactId>vaadin-spring-boot-starter</artifactId> 
 
\t \t \t <version>1.0.0</version> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>org.springframework.boot</groupId> 
 
\t \t \t <artifactId>spring-boot-starter-velocity</artifactId> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>org.springframework.boot</groupId> 
 
\t \t \t <artifactId>spring-boot-starter-web</artifactId> 
 
\t \t </dependency> 
 

 
\t \t <dependency> 
 
\t \t \t <groupId>org.postgresql</groupId> 
 
\t \t \t <artifactId>postgresql</artifactId> 
 
\t \t \t <scope>runtime</scope> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>org.springframework.boot</groupId> 
 
\t \t \t <artifactId>spring-boot-starter-tomcat</artifactId> 
 
\t \t \t <scope>provided</scope> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>org.springframework.boot</groupId> 
 
\t \t \t <artifactId>spring-boot-starter-test</artifactId> 
 
\t \t \t <scope>test</scope> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>core-framework</groupId> 
 
\t \t \t <artifactId>core-framework</artifactId> 
 
\t \t \t <version>0.0.1-SNAPSHOT</version> 
 
\t \t \t <type>ejb</type> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>com.google.guava</groupId> 
 
\t \t \t <artifactId>guava</artifactId> 
 
\t \t \t <version>18.0</version> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>org.vaadin.addon</groupId> 
 
\t \t \t <artifactId>confirmdialog</artifactId> 
 
\t \t \t <version>2.1.1</version> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>org.flywaydb</groupId> 
 
\t \t \t <artifactId>flyway-core</artifactId> 
 
\t \t </dependency> 
 

 
\t \t <dependency> 
 
\t \t \t <groupId>com.aspose</groupId> 
 
\t \t \t <artifactId>aspose-words</artifactId> 
 
\t \t \t <classifier>jdk16</classifier> 
 
\t \t \t <version>16.4.0</version> 
 
\t \t </dependency> 
 
\t \t <dependency> 
 
\t \t \t <groupId>com.vaadin</groupId> 
 
\t \t \t <artifactId>vaadin-themes</artifactId> 
 
\t \t \t <version>7.4.4</version> 
 
\t \t </dependency> 
 
\t </dependencies> 
 

 
\t <dependencyManagement> 
 
\t \t <dependencies> 
 
\t \t \t <dependency> 
 
\t \t \t \t <groupId>com.vaadin</groupId> 
 
\t \t \t \t <artifactId>vaadin-bom</artifactId> 
 
\t \t \t \t <version>7.6.3</version> 
 
\t \t \t \t <type>pom</type> 
 
\t \t \t \t <scope>import</scope> 
 
\t \t \t </dependency> 
 

 
\t \t </dependencies> 
 
\t </dependencyManagement> 
 

 
\t <build> 
 
\t \t <plugins> 
 
\t \t \t <plugin> 
 
\t \t \t \t <groupId>org.springframework.boot</groupId> 
 
\t \t \t \t <artifactId>spring-boot-maven-plugin</artifactId> 
 
\t \t \t </plugin> 
 

 
\t \t </plugins> 
 

 
\t </build>

と、これは誤りです:enter image description here

+2

を持っていることを確認し、時間がかかるしてくださいあなたの質問の質を向上させるために[this](https://stackoverflow.com/help/asking)を読んでください。コード、pom.xml、ビルドのログ、エラーログを追加します。 –

+1

Ok Mr.Tteffen、投稿を変更しています – FoufaFaFa

+0

プロジェクトのテーマを定義しましたか?また、screebshotから、IDEプラグイン、Eclipse、intellijなどでコンパイルしているようです.Maven経由でコンパイルしようとすると同じエラーが出ますか? – Morfic

答えて

2

私が正しく問題を理解している場合、あなたはVaadinと春ブートプロジェクトを持っていますカスタムテーマをコンパイルしたいと思っていますか?もしそうなら、私のexample project on GithHubを見てください。それは、Vaadinのプラグインにresourcesのテーマを探すように指示する必要があるということです。webappではなく、ですから、あなたのpom.xmlに

<build> 
    <plugins> 
     <plugin> 
      <groupId>com.vaadin</groupId> 
      <artifactId>vaadin-maven-plugin</artifactId> 

をVaadinプラグインの設定を持っている与えられた

は、設定

  <configuration> 
      ... 
      <warSourceDirectory>${basedir}/src/main/resources 
      ... 
      </configuration> 

や目標

  <executions> 
       <execution> 
        <goals> 
         <goal>resources</goal> 
         <goal>update-theme</goal> 
         <goal>update-widgetset</goal> 
         <goal>compile-theme</goal> 
         <goal>compile</goal> 
        </goals> 
+0

私の時間を節約した回答の方に感謝します! – GVArt

関連する問題