Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Archetype that uses annotation processor doesn't generate correct project

Annotation processors are not supported yet. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=335036

Regards,

Fred Bricon

2011/4/25 Rick Genter <rgenter@xxxxxxxxxxxxxxxx>
Hi,

We have an archetype where the template POM specifies use of an annotation processor during the compile phase. The relevant section of the POM:

          <plugin>
              <artifactId>maven-compiler-plugin</artifactId>
              <version>2.3.2</version>

              <configuration>
                  <fork>true</fork>
                  <meminitial>128m</meminitial>
                  <maxmem>256m</maxmem>
                  <source>1.6</source>
                  <target>1.6</target>
                  <compilerArgument>-AnovaApplicationVersion=${project.version}</compilerArgument>
                  <annotationProcessors>
                      <annotationProcessor>net.interactions.nova.annotations.processing.FrameworkAnnotationProcessor</annotationProcessor>
                  </annotationProcessors>
                  <generatedSourcesDirectory>${project.build.directory}/generated-sources/</generatedSourcesDirectory>
              </configuration>
          </plugin>

When we generate a project using this archetype, however, the annotation processor settings are not configured in the Eclipse project and the generated project subsequently fails to build. If I then go into the project's properties and manually configure the annotation processor, everything works.

We are using Eclipse Helios Service Release 2, Build 20110218-0911, and m2eclipse version 0.12.1.20110112-1712. Thanks.

*******************************************************************************
This e-mail and any of its attachments may contain Interactions Corporation
proprietary information, which is privileged, confidential, or subject to
copyright belonging to the Interactions Corporation. This e-mail is intended
solely for the use of the individual or entity to which it is addressed. If you
are not the intended recipient of this e-mail, you are hereby notified that any
dissemination, distribution, copying, or action taken in relation to the
contents of and attachments to this e-mail is strictly prohibited and may be
unlawful. If you have received this e-mail in error, please notify the sender
immediately and permanently delete the original and any copy of this e-mail and
any printout. Thank You. 
*******************************************************************************


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users




--
"Have you tried turning it off and on again" - The IT Crowd

Back to the top