GWT + Maven + Runtime Error (org.bsc.maven: maven-processor-plugin: 2.0.5: process: process: generate-sources)

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> <!--This plugin 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>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> 
+7
source share
3 answers

I managed to get it working by adding

 -vm C:\Program Files\Java\jdk1.6.0_26\jre\bin\server\jvm.dll 

before -vmargs in eclipse.ini

+8
source

As a rule of thumb, you always need to change the standard JRE under Window-> Preferences-> Java-> Installed JREs in the JDK folder. In my case, it was C: \ Program Files \ Java \ jre6. I had to change it to C: \ Program Files \ Java \ jdk1.6.0_31

+2
source

I had the same problem on a Linux environment, I did the same thing as Sydney, but I still had to disable the incremental build for the maven processor, for example:

 ... <action> <execute> <runOnIncremental>false</runOnIncremental> </execute> </action> ... 

It worked for me :)

0
source

All Articles