Wednesday, August 1, 2012

Re: maven-compiler=plugin not invoking validation tool during build

Hi,

I'm also having problems with GWT 2.4 and I have org.bsc.maven:maven-processor-plugin in my POM but I have the following error message:

CDT: Build errors; org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.bsc.maven:maven-processor-plugin:2.0.5:process (process) on project: Error executing

Do you have any idea how to get rid of that?

Thanks


On Wed, Jul 11, 2012 at 4:25 AM, Thomas Broyer <t.broyer@gmail.com> wrote:

On Wednesday, July 11, 2012 4:01:35 AM UTC+2, Yan wrote:
Hi there,

I am having trouble with GWT 2.4 using Request factory with Maven 2.2.1 build.

I have followed this URL:  http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation#Maven_builds

The maven build works, but validation tool is not run, I can see that by the error I get at run-time. Should not requestfactory-apt  automatically pick up the request factory classes?

It should.
 
What did I miss?  The following is what my POM.xml looks like,

Thanks,
yan

      <plugin>
       
<artifactId>maven-compiler-plugin</artifactId>
       
<version>2.5.1</version>
       
<configuration>
         
<source>1.6</source>
         
<target>1.6</target>
       
</configuration>
       
<dependencies>
         
<dependency>
           
<groupId>com.google.web.bindery</groupId>
           
<artifactId>requestfactory-apt</artifactId>
           
<version>2.4.0</version>
         
</dependency>
       
</dependencies>
     
</plugin>


Try adding the following to the configuration:
<annotationProcessors>
  <annotationProcessor>com.google.web.bindery.requestfactory.apt.RfValidator</annotationProcessor>
</annotationProcessors>

If that still doesn't work, try using the org.bsc.maven:maven-processor-plugin in the generate-sources phase.
See http://code.google.com/p/google-web-toolkit/source/detail?spec=svn11159&r=11019 for the changes I made to the wiki page; the previous version used the maven-processor-plugin.

Please come back here with your feedback so I can fix the wiki.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Bl0zVOaodnQJ.

To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment