2012-05-11 3 views
3

Ubuntu 12.04의 Springsource Tool Suite 2.9.1에서 Spring ROO 1.2.1 + GWT 2.6.1을 사용하고 싶습니다. http://www.bytespring.com/blog/spring-roo-integration-gwt의 비디오와 같은 가이드에 따라 "비용"스크립트를 통해 roo로 새 프로젝트를 만든 다음 mvn gwt : run을 사용하여 실행할 수 있습니다. 좋아요, STS에서 관리하고 싶은데 문제가 시작됩니다. m2e에 관한 문제인 것 같습니다. 제가 해결 방법을 수행하려RequestFactory ValidationTool을 실행해야합니다 ... ApplicationRequestFactory RequestFactory 유형

Plugin execution not covered by lifecycle configuration: org.codehaus.mojo:exec-maven-plugin:1.2:exec (execution: default, phase: process-classes) 

How to solve "Plugin execution not covered by lifecycle configuration" for Spring Data Maven Builds에서 제안 :

은 pom.xml 파일에서 ID "간부-받는다는 - 플러그인"과 유물에 대한 태그이 오류가 있습니다.

"pluginManagement"태그가있는 "plugins"태그로 둘러 쌉니다. 이제 오류가 더 이상 나타나지 않습니다.

그런 다음 "Run as -> Web Application"응용 프로그램을 실행합니다 ... HTML 페이지 선택 : ApplicationScaffold.html.

웹 페이지,하지만이 오류가있는 창이 나타납니다

Error: One or more exceptions caught, see full set in UmbrellaException#getCause". 

STS는 콘솔

"java.lang.RuntimeException: The RequestFactory ValidationTool must be run for the org.springsource.roo.extrack.client.managed.request.ApplicationRequestFactory RequestFactory type". 

이 문제를 해결하기 위해 말한다

, 나는 http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation의 지시를 따랐다.

1) Project Properties-> Java Compiler-> Annotation Properties에서 프로젝트 별 설정, 편집기에서 주석 처리 및 처리, gen.source 디렉토리 : .apt_generated; 자세한 거짓.

공장 경로 2) 활성화 프로젝트 특정 설정하고, 잘

/home/toni/springsource/sts-2.9.1.RELEASE/plugins/com.google.gwt.eclipse.sdkbundle_2.4.0.v201205091048-rel-r37/gwt-2.4.0 

(??에있는 외부 requestfactory-apt.jar)

(나는 경우를 이해하지 못하는 추가 "확인 도구 및 메이븐 빌드 섹션이 중요합니다.

이제 프로젝트를 다시 작성한 후에 동일한 오류가 계속 발생했습니다.

누군가가이 문제를 해결 했습니까 ?? 방법? 제가 전문가가 아니기 때문에 단계별로 설명해주십시오. 봄과 가을에 대한 나의 첫 번째 접근법입니다 ...

답변

1

이것은 (내가 파고 드는) 뒤에서 잠깐 만났던 똑같은 문제와 같습니다. AJDT (Eclipse의 AspectJ 컴파일러)에서 a bug으로 내려 가면 현재 Java 6 주석 (Roo가 많이 사용함)을 처리 할 수 ​​없다는 것을 의미합니다. 연결된 GWT의 버그 리포트에

A comment 다음과 같은 해결 방법을 설명합니다

  1. move AspectJ builder to be in front (on top) of Java builder in project properties, Builder page.
  2. clean and build the project.
  3. copy and save generated Java/class files in .apt_generated directory to somewhere else.
  4. move Java builder back in front of AspectJ builder.
  5. clean and rebuild the project
  6. copy the class file from 3 above to your project's classpath.

을 다른 방법으로, 이클립스 외부에서 프로젝트를 빌드 할 수 있습니다 - 비 IDE AspectJ의 컴파일러, AJC이 문제에서 고통을하지 않습니다.

관련 문제