-----Original Message-----
From: Igor Vaynberg [mailto:[email protected]] 
Sent: Friday, November 18, 2011 2:43 PM
To: [email protected]
Subject: Re: Metagen configuration issue

very strange. we are using the configuration on the github page and
its working great here.

try using the original configuration and add <version>2.0.5</version>
to the maven processor plugin, maybe you are just using an old one.

also add this into your pom so you can get to 2.0.5

I think it's the version of the build-helper-maven-plugin.  You have 1.3.  I 
was using the latest, 1.7.  I just switched to 1.3 and ran. Now, a build gives 
me generated-sources/apt and target/generated-sources/annotations.

I then switched back to 1.7, and I removed the build-helper plugin. The 
maven-processor-plugin usage page claims that 

        Sources will be generated into target/generated-sources/apt/main/java. 
Test sources into target/generated-sources/apt/test/java Both directories will 
be added to the compilation path

One thing we're missing is the code on the usage page:

<plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
                <compilerArgument>-proc:none</compilerArgument>
        </configuration>
</plugin>

Perhaps the compiler was running the annotation processor itself.  And, it 
works!  So, with later versions of the compiler plugin, you need to keep it 
from running the annotation processor itself.

Respectfully,
Eric Jablow

This communication, along with any attachments, is covered by federal and state 
law governing electronic communications and may contain company proprietary and 
legally privileged information.  If the reader of this message is not the 
intended recipient, you are hereby notified that any dissemination, 
distribution, use or copying of this message is strictly prohibited.  If you 
have received this in error, please reply immediately to the sender and delete 
this message.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to