2016-07-21 6 views
-1

В моем проекте Vaadin Maven Spring Boot Я не могу скомпилировать тему, но тот же проект в другом сообщении работает правильно и компилируется тема easly. Есть ли какая-нибудь идея, пожалуйста?Vaadin Maven Spring Boot theme compile

это мой 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.Steffen, я меняю свой пост – FoufaFaFa

+0

Вы определили тему своего проекта? Кроме того, из screebshot кажется, что вы компилируете с помощью плагина IDE, eclipse, intellij и т. Д. Вы получаете ту же ошибку, если попытаетесь скомпилировать ее через maven? – Morfic

ответ

2

Если я правильно понял проблему, то есть весна загрузки проекта с Vaadin , и вы хотите скомпилировать пользовательскую тему? Если да, пожалуйста, взгляните на мой example project on GithHub. Что это сводится к тому, что вам нужно рассказать плагин Vaadin для поиска темы под resources, а не webapp.

Поэтому, учитывая, у вас есть настройки плагина Vaadin в вашем pom.xml

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

Убедитесь, что конфигурация

  <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