이 매개 변수를 사용하여 Maven 프로젝트를 만들려고 할 때 : Archetype Group Id - org.codehaus.mojo; Archetype Artifact ID - gwt-maven-plugin; Archetype 버전 - 2.3.0-1.이클립스에서 간단하게 GWT 2.3 및 Maven2 (3) 프로젝트
플러그인 라이프 사이클 구성에 포함되지 실행 : org.codehaus.mojo : GWT-받는다는 - 플러그인 : 2.3.0-1 : generateAsync (실행 : 기본적 단계 : 나는 이상한 오류를 얻을 생성 org.codehaus.mojo : -sources) 라이프 사이클 구성에 포함
플러그인 실행하지 GWT-받는다는 - 플러그인 : 2.3.0-1 : 국제화 (실행 : 기본적 단계 : 생성 - 소스)
라이프 사이클 설정으로 덮어 쓰지 않은 플러그인 실행 : org.apache.maven.plugins : maven-war-plugin : 2.1 0.1 : 폭발했다 (실행 : 기본적 단계 : 컴파일)
과 같은 몇 가지 경고 :
이 프로젝트 패싯 jst.web의 구현이
를 찾을 수 없습니다. 기능이 제한됩니다.프로젝트 패싯 wst.jsdt.web의 구현을 찾을 수 없습니다. 기능이 제한됩니다. 그래서
<?xml version="1.0" encoding="UTF-8"?> <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/maven-v4_0_0.xsd"> <!-- POM file generated with GWT webAppCreator --> <modelVersion>4.0.0</modelVersion> <groupId>net.test1</groupId> <artifactId>TestWebApp</artifactId> <packaging>war</packaging> <version>0.0.1-SNAPSHOT</version> <name>GWT Maven Archetype</name> <properties> <!-- Convenience property to set the GWT version --> <gwtVersion>2.3.0</gwtVersion> <!-- GWT needs at least java 1.5 --> <webappDirectory>${project.build.directory}/${project.build.finalName}</webappDirectory> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> </properties> <dependencies> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-servlet</artifactId> <version>${gwtVersion}</version> <scope>runtime</scope> </dependency> <dependency> <groupId>com.google.gwt</groupId> <artifactId>gwt-user</artifactId> <version>${gwtVersion}</version> <scope>provided</scope> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.7</version> <scope>test</scope> </dependency> <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> <version>1.0.0.GA</version> <scope>test</scope> </dependency> <dependency> <groupId>javax.validation</groupId> <artifactId>validation-api</artifactId> <version>1.0.0.GA</version> <classifier>sources</classifier> <scope>test</scope> </dependency> </dependencies> <build> <!-- Generate compiled stuff in the folder used for developing mode --> <outputDirectory>${webappDirectory}/WEB-INF/classes</outputDirectory> <plugins> <!-- GWT Maven Plugin --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>gwt-maven-plugin</artifactId> <version>2.3.0-1</version> <executions> <execution> <goals> <goal>compile</goal> <goal>test</goal> <goal>i18n</goal> <goal>generateAsync</goal> </goals> </execution> </executions> <!-- Plugin configuration. There are many available options, see gwt-maven-plugin documentation at codehaus.org --> <configuration> <runTarget>TestWebApp.html</runTarget> <hostedWebapp>${webappDirectory}</hostedWebapp> <i18nMessagesBundle>net.test1.TestWebApp.client.Messages</i18nMessagesBundle> </configuration> </plugin> <!-- Copy static web files before executing gwt:run --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.1.1</version> <executions> <execution> <phase>compile</phase> <goals> <goal>exploded</goal> </goals> </execution> </executions> <configuration> <webappDirectory>${webappDirectory}</webappDirectory> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> </plugins> </build> </project>
그리고 :
이
내 pom.xml 파일입니다. 이게 뭐야? 나는 가능한 모든 매뉴얼을 인터넷에서 시험해 보았다. Eclipse를 사용하지 않고 수동으로 프로젝트를 만들려고했습니다. 내 생각에, 문제는 인터넷의 매뉴얼이 이전 버전의 Eclipse, Maven, GWT 용으로 작성되었다는 것입니다. 내가 어떻게 이길 수 있니? 오류없이 GWT 2.3, Maven2 플러그인 및 Eclipse Indigo로 간단한 프로젝트를 만들려면 어떻게해야합니까?
비슷한 오류가 있지만 빌드가 성공합니다. 이러한 오류 및 경고는 m2eclipse에서 발생했다고 생각합니다. m2eclipse를 설치 했습니까? – Adi