Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] M2E Extension Development: Help

>From the icons & folders it appears that it hasn't been added as a Java source folder.

On 31 October 2011 14:48, Francis ANDRE <francis.andre.kampbell@xxxxxxxxx> wrote:

Ok I got my M2E Extension Development working for the generation part. But there is a remaining problem. The target generated directory is properly added a an Eclipse source directory, but its content is not compiled as it should be. What I am missing?? See the screen capture. The target generated directory is named target/generated-sources/gdmo and is really full of java classes. The picture is taken after a Mavenàupdate project configuration.

 

 

Another point is I had to add the pluginManagement element for making m2e reorganize properly the iso.itu.osi.omf.mim.X721.MIM project, but I saw that an project using the antlrv3 maven plugin do not need to add this pluginManagement element. How it could be??

 

Thanks for your help.

 

 

 

> -----Message d'origine-----

> De : m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] De

> la part de Igor Fedorenko

> Envoyé : lundi 31 octobre 2011 15:22

> À : m2e-users@xxxxxxxxxxx

> Objet : Re: [m2e-users] M2E Extension Development: Help

>

> sourceDirectory antlr/antlr3 mojo configuration parameter defines

> location of grammar, i.e. .g, files location. By default sourceDirectory

> parameter value is src/main/antlr3 like you mentioned, but it can be

> changed to something else in pom.xml, so m2e-antlr configurator makes

> sure it watches the right directory.

>

> http://antlr.org/antlr3-maven-plugin/usage.html

>

>

> --

> Regards,

> Igor

>

> On 11-10-31 6:06 AM, Francis ANDRE wrote:

> > Hi

> >

> > Can someone explain the following lines from the M2E Extension Development

> >

> > AntlrBuildParticipant generates java source files (any resources

> > generated by ANTLR, to be precise) during eclipse incremental and full

> > builds.

> >

> > File source = maven.getMojoParameterValue(getSession(),

> > getMojoExecution(), "sourceDirectory", File.class);

> >

> > Scanner ds = buildContext.newScanner( source ); // delta or full scanner

> >

> > ds.scan();

> >

> > String[] includedFiles = ds.getIncludedFiles();

> >

> > if (includedFiles == null || includedFiles.length <= 0 )

> >

> > {

> >

> > return null;

> >

> > }

> >

> > The antlr3-maven-plugin takes the grammars to compile in the

> > src/main/antlr3 directory, thus I do not understand how updates of

> > grammar's file can be check in the "sourceDirectory".

> >

> >

> >

> > _______________________________________________

> > m2e-users mailing list

> > m2e-users@xxxxxxxxxxx

> > https://dev.eclipse.org/mailman/listinfo/m2e-users

> _______________________________________________

> m2e-users mailing list

> m2e-users@xxxxxxxxxxx

> https://dev.eclipse.org/mailman/listinfo/m2e-users


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



Back to the top