I use pure eclipse 3.7, then added Maven Integration for Eclipse
from the Eclipse Marketplace. I also added WTP Integration
and m2e connector for build-helper-maven-plugin
from Windows -> Settings -> Maven -> Open -> Open Directory. I also added a Google plugin for Eclipse.
I import an exising maven project that works fine with the command line when running the command: mvn compile gwt:compile
or mvn gwt:run
, but in Eclipse I got this error:
Error executing (org.bsc.maven:maven-processor-plugin:2.0.5:process:process:generate-sources) pom.xml /base line 289 Maven Build Problem
Here is the related part of the pom file:
<plugin> <groupId>org.bsc.maven</groupId> <artifactId>maven-processor-plugin</artifactId> <version>2.0.5</version> <executions> <execution> <id>process</id> <phase>generate-sources</phase> <goals> <goal>process</goal> </goals> </execution> </executions> <dependencies> <dependency> <groupId>com.google.web.bindery</groupId> <artifactId>requestfactory-apt</artifactId> <version>${gwt.version}</version> </dependency> </dependencies> </plugin>
and
<pluginManagement> <plugins> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId>org.bsc.maven</groupId> <artifactId>maven-processor-plugin</artifactId> <versionRange>[2.0.5,)</versionRange> <goals> <goal>process</goal> </goals> </pluginExecutionFilter> <action> <execute /> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement>
Sydney
source share