I assume you tried the default value for generatedSourcesDirectory? Haven't used annotation processors myself, my Maven experience just suggests going with the defaults as much as possible. But if even the defaults don't work, something is clearly wrong. Either in the plugin or in your config. :-)
There is an integration-test regarding this for the maven-compiler-plugin. Have look at that to see how that differs from your setup. Possible also test with Maven 2.2.1 to see if Maven 3 is the problem. /Anders On Thu, Dec 9, 2010 at 05:35, lilyevsky <[email protected]> wrote: > > I am trying to learn how to use annotationProcessor feature with > maven-compiler-plugin 2.3.2 under maven 3. > My configuration is below. > The processor indeed works and it generates the files. > My problem is that the compiler does not see those files during compile > phase. What am I doing wrong? > I tried to put my generated-sources in different places, under target, > directly under the project folder. > I tried to use generated-sources/src/main/java structure. Nothing works. > > ============================================= > > <build> > <plugins> > <plugin> > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-compiler-plugin</artifactId> > <version>2.3.2</version> > <configuration> > <source>1.6</source> > <target>1.6</target> > > > <generatedSourcesDirectory>generated-sources/src/main/java</generatedSourcesDirectory> > <annotationProcessors> > > > <annotationProcessor>com.newamsterdam.framework.flexrecord.FlexRecordProcessor</annotationProcessor> > </annotationProcessors> > </configuration> > </plugin> > </plugins> > </build> > -- > View this message in context: > http://maven.40175.n5.nabble.com/Using-annotationProcessor-in-maven-compiler-plugin-tp3298435p3298435.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
