2014-06-13 9 views
0

Vaadin 7을 사용하고 있으며 내 프로젯에 애드온을 추가하고 싶습니다. 나는 모든 단계를 설명한 here을 따라 갔지만 작동하지 않습니다. 내가 vaadin:update-widgetset install를 실행하면 내가이 얻을목표를 실행하지 못했습니다 : gwt-maven-plugin : 2.6.1 : 컴파일

<properties> 
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
    <vaadin.version>7.1.3</vaadin.version> 
    <vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version> 
</properties> 
<repositories> 
    <repository> 
    <id>vaadin-addons</id> 
    <url>http://maven.vaadin.com/vaadin-addons</url> 
    </repository> 
    <repository> 
    <id>vaadin-snapshots</id> 
    <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url> 
    <releases> 
    <enabled>false</enabled> 
    </releases> 
    <snapshots> 
    <enabled>true</enabled> 
    </snapshots> 
    </repository> 
</repositories> 
<pluginRepositories> 
    <pluginRepository> 
    <id>vaadin-snapshots</id> 
    <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url> 
    <releases> 
    <enabled>false</enabled> 
    </releases> 
    <snapshots> 
    <enabled>true</enabled> 
    </snapshots> 
    </pluginRepository> 
</pluginRepositories> 
<dependencies> 
    <dependency> 
    <groupId>com.vaadin</groupId> 
    <artifactId>vaadin-server</artifactId> 
    <version>${vaadin.version}</version> 
    </dependency> 
    <dependency> 
    <groupId>com.vaadin</groupId> 
    <artifactId>vaadin-client-compiled</artifactId> 
    <version>${vaadin.version}</version> 
    </dependency> 
    <!-- Needed when using the widgetset optimizer (custom ConnectorBundleLoaderFactory). 
    For widgetset compilation, vaadin-client-compiler is automatically added 
    on the compilation classpath by vaadin-maven-plugin so normally there is 
    no need for an explicit dependency. --> 
    <!-- <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-client-compiler</artifactId> 
    <version>${vaadin.version}</version> <scope>provided</scope> </dependency> --> 
    <dependency> 
    <groupId>com.vaadin</groupId> 
    <artifactId>vaadin-client</artifactId> 
    <version>${vaadin.version}</version> 
    <scope>provided</scope> 
    </dependency> 
    <dependency> 
    <groupId>com.vaadin</groupId> 
    <artifactId>vaadin-maven-plugin</artifactId> 
    <version>${vaadin.version}</version> 
    </dependency> 

    <dependency> 
    <groupId>com.vaadin</groupId> 
    <artifactId>vaadin-push</artifactId> 
    <version>${vaadin.version}</version> 
    </dependency> 
    <dependency> 
    <groupId>com.vaadin</groupId> 
    <artifactId>vaadin-themes</artifactId> 
    <version>${vaadin.version}</version> 
    </dependency> 
    <dependency> 
    <groupId>com.alfresco</groupId> 
    <artifactId>com.alfresco.connect</artifactId> 
    <version>1.3</version> 
    </dependency> 
    <dependency> 
    <groupId>com.vaadin</groupId> 
    <artifactId>vaadin-theme-compiler</artifactId> 
    <version>${vaadin.version}</version> 
    </dependency> 

    <dependency> 
    <groupId>com.google.code.gson</groupId> 
    <artifactId>gson</artifactId> 
    <version>2.2.4</version> 
    </dependency> 

    <dependency> 
    <groupId>com.vaadin.addon</groupId> 
    <artifactId>vaadin-charts</artifactId> 
    <version>1.0.0</version> 
    </dependency> 

    <dependency> 
    <groupId>org.apache.xmlgraphics</groupId> 
    <artifactId>fop</artifactId> 
    <version>0.93</version> 
    </dependency> 

    <dependency> 
    <groupId>org.vaadin.addons</groupId> 
    <artifactId>animator</artifactId> 
    <version>2.0.0</version> 
    </dependency> 

    <dependency> 
    <groupId>com.google.gwt</groupId> 
    <artifactId>gwt-servlet</artifactId> 
    <version>2.6.1</version> 
    </dependency> 

    <dependency> 
    <groupId>com.alfresco</groupId> 
    <artifactId>com.alfresco.connect</artifactId> 
    <version>1.5</version> 
    </dependency> 

    <dependency> 
    <groupId>org.vaadin.addon</groupId> 
    <artifactId>confirmdialog</artifactId> 
    <version>2.0.5</version> 
    </dependency> 

    <dependency> 
    <groupId>com.vaadin.addon</groupId> 
    <artifactId>vaadin-charts</artifactId> 
    <version>1.1.6</version> 
    </dependency> 

</dependencies> 

<build> 
    <plugins> 
    <plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>gwt-maven-plugin</artifactId> 
    <version>2.6.1</version> 
    <executions> 
    <execution> 
     <goals> 
     <goal>compile</goal> 
     <goal>generateAsync</goal> 
     <goal>test</goal> 
     </goals> 
    </execution> 
    </executions> 
    </plugin> 
    <plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-compiler-plugin</artifactId> 

    <configuration> 
    <source>1.7</source> 
    <target>1.7</target> 
    </configuration> 
    </plugin> 
    <!-- As we are doing "inplace" GWT compilation, ensure the widgetset --> 
    <!-- directory is cleaned properly --> 
    <plugin> 
    <artifactId>maven-clean-plugin</artifactId> 
    <version>2.4.1</version> 
    <configuration> 
    <filesets> 
     <fileset> 
     <directory>src/main/webapp/VAADIN/widgetsets</directory> 
     </fileset> 
    </filesets> 
    </configuration> 
    </plugin> 
    <plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-war-plugin</artifactId> 
    <version>2.2</version> 
    <configuration> 
    <failOnMissingWebXml>false</failOnMissingWebXml> 
    </configuration> 
    </plugin> 
    <plugin> 
    <groupId>com.vaadin</groupId> 
    <artifactId>vaadin-maven-plugin</artifactId> 
    <version>${vaadin.plugin.version}</version> 
    <configuration> 
    <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs> 
    <!-- <runTarget>mobilemail</runTarget> --> 
    <!-- We are doing "inplace" but into subdir VAADIN/widgetsets. This 
     way compatible with Vaadin eclipse plugin. --> 
    <webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets 
    </webappDirectory> 
    <hostedWebapp>${basedir}/src/main/webapp/VAADIN/widgetsets 
    </hostedWebapp> 
    <!-- Most Vaadin apps don't need this stuff, guide that to target --> 
    <persistentunitcachedir>${project.build.directory}</persistentunitcachedir> 
    <deploy>${project.build.directory}/gwt-deploy</deploy> 
    <!-- Compile report is not typically needed either, saves hunreds of 
     mb disk --> 
    <compileReport>false</compileReport> 
    <noServer>true</noServer> 
    <!-- Remove draftCompile when project is ready --> 
    <draftCompile>false</draftCompile> 

    <style>OBF</style> 
    <strict>true</strict> 
    <runTarget>http://localhost:8083/</runTarget> 
    </configuration> 
    <executions> 
    <execution> 
     <configuration> 
     <!-- if you don't specify any modules, the plugin will find them --> 
     <!-- <modules> <module>com.vaadin.demo.mobilemail.gwt.ColorPickerWidgetSet</module> 
     </modules> --> 
     </configuration> 
     <goals> 
     <goal>clean</goal> 
     <goal>resources</goal> 
     <goal>update-theme</goal> 
     <goal>update-widgetset</goal> 
     <goal>compile</goal> 
     </goals> 
    </execution> 
    </executions> 
    </plugin> 
    <plugin> 
    <groupId>org.mortbay.jetty</groupId> 
    <artifactId>jetty-maven-plugin</artifactId> 
    </plugin> 
    </plugins> 
    <pluginManagement> 
    <plugins> 
    <!--This plugin's configuration is used to store Eclipse m2e settings 
    only. It has no influence on the Maven build itself. --> 
    <plugin> 
    <groupId>org.eclipse.m2e</groupId> 
    <artifactId>lifecycle-mapping</artifactId> 
    <version>1.0.0</version> 
    <configuration> 
     <lifecycleMappingMetadata> 
     <pluginExecutions> 
     <pluginExecution> 
     <pluginExecutionFilter> 
      <groupId>com.vaadin</groupId> 
      <artifactId> 
      vaadin-maven-plugin 
      </artifactId> 
      <versionRange> 
      [7.1.2,) 
      </versionRange> 
      <goals> 
      <goal>resources</goal> 
      <goal>update-widgetset</goal> 
      <goal>compile</goal> 
      <goal>update-theme</goal> 
      <goal>compile-theme</goal> 
      </goals> 
     </pluginExecutionFilter> 
     <action> 
      <ignore></ignore> 
     </action> 
     </pluginExecution> 
     </pluginExecutions> 
     </lifecycleMappingMetadata> 
    </configuration> 
    </plugin> 
    </plugins> 
    </pluginManagement> 
</build> 
<parent> 
    <groupId>com.capgemini</groupId> 
    <artifactId>alfresco-custom-application</artifactId> 
    <version>0.0.1-SNAPSHOT</version> 
</parent> 
</project> 

: 나는 거의 모든 노력을

Results : 

    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 

    [INFO] 
    [INFO] --- gwt-maven-plugin:2.6.1:compile (default) @ alfredine --- 
    [INFO] auto discovered modules [custom.alfresco.UI.widgetset.confirmdialog] 
    [INFO] ------------------------------------------------------------------------ 
    [INFO] BUILD FAILURE 
    [INFO] ------------------------------------------------------------------------ 
    [INFO] Total time: 6.423s 
    [INFO] Finished at: Fri Jun 13 10:25:39 CEST 2014 
    [INFO] Final Memory: 19M/347M 
    [INFO] ------------------------------------------------------------------------ 
    [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.6.1:compile (default) on project alfredine: GWT Module org.vaadin.jouni.dom.DomWidgetset not found in project sources or resources. -> [Help 1] 
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. 
    [ERROR] Re-run Maven using the -X switch to enable full debug logging. 
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles: 
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException 

, 나는이 알아낼 수 없습니다 여기에 pom.xml 파일 내 구성입니다. 도와주세요!

업데이트 : 오류가 모듈 org.vaadin.jouni.dom.DomWidgetset이 발견 NOUT 말한다, 내 프로젝트 내부의 모든 파일을 보면서 나는 org.vaadin.jouni.dom.DomWidgetset라고 아무것도 찾을 수 없습니다. 그게 어디서 오는거야?!

답변

1

Animator 2.0은 DOM add-on에 따라 다르므로 pom.xml에도 추가해야합니다.

Vaadin Directory 애드온에 명시 적으로 종속성을 추가 할 수 있어야한다고 들었으므로 다음 버전에서 수정할 수 있는지 확인합니다. 하지만 지금은 DOM 애드온을 명시 적으로 추가해야합니다.

+0

당신은 의존성에 대해 옳았습니다. DOM 추가 기능을 추가했는데 다음과 같이 해결했습니다 :'GWT 모듈 org.vaadin.jouni.dom.DomWidgetset은 프로젝트에서 찾을 수 없습니다. '하지만 여전히'목표 org를 실행하지 못했습니다. .codehaus.mojo : gwt-maven-plugin : 2.6.1 : alfredine 프로젝트에서 컴파일 (기본값) : [ [오류] C : \ Program Files \ Java \ jdk1.7.0_17 \ jre \ bin \ java -Xmx512m -classpath ...' – deltascience