You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Lucas Theisen <lu...@pastdev.com> on 2015/07/24 17:16:55 UTC

Eclipse MARS and antlr m2e

Has anybody else attempted to get eclipse MARS to work with the directory
source.  Specifically, the antlr-maven-plugin seems to be something m2e
complains about: "Plugin execution not covered by lifecycle configuration:
org.codehaus.mojo:antlr-maven-plugin:2.2:generate (execution: default,
phase: generate-sources)".  Without that plugin functioning, the sources
are not properly generated, and I cannot run the server in debug.  I dont
know much about antlr, but it seems like the code is using
antlr-maven-plugin, and the m2e doc seems to say we should be using
antlr3-maven-plugin (
http://www.eclipse.org/m2e/documentation/m2e-extension-development.html#m2e-antlr3-code-generation-support-explained).
Any suggestions here?

Re: Eclipse MARS and antlr m2e

Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
On 07/24/2015 07:03 PM, Stefan Seelmann wrote:
> On 07/24/2015 05:16 PM, Lucas Theisen wrote:
>> Has anybody else attempted to get eclipse MARS to work with the directory
>> source.  Specifically, the antlr-maven-plugin seems to be something m2e
>> complains about: "Plugin execution not covered by lifecycle configuration:
>> org.codehaus.mojo:antlr-maven-plugin:2.2:generate (execution: default,
>> phase: generate-sources)".  Without that plugin functioning, the sources
>> are not properly generated, and I cannot run the server in debug.  I dont
>> know much about antlr, but it seems like the code is using
>> antlr-maven-plugin, and the m2e doc seems to say we should be using
>> antlr3-maven-plugin (
>> http://www.eclipse.org/m2e/documentation/m2e-extension-development.html#m2e-antlr3-code-generation-support-explained).
>> Any suggestions here?
>>
> 
> The 1.6 m2e catalog doesn't include connectors for old maven plugins.
> But it is possible to install them manally.
> 
> I looked into the Luna installation, Help -> About -> Installation
> Details -> Plugins -> filter for "connector". Then used the PluginID and
> searched on https://search.maven.org/. This way its possible to find out
> the update site URL, which you can use in Window -> Install new Software
> to install the connector.
> 
> For Antlr the update sit URL is
> https://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-antlr/0.15.0/N/0.15.0.201405281449/
> 
> This should be enougth to get the API and Server build. I'll import
> Studio later to see which connectors are missing.

Ok, I imported Studio (target platform first, then the other modules),
the "m2e connector for Maven Dependency Plugin" was installed, then
everything worked :)

Kind Regards,
Stefan


Re: Eclipse MARS and antlr m2e

Posted by Lucas Theisen <lu...@pastdev.com>.
On Fri, Jul 24, 2015 at 1:03 PM, Stefan Seelmann <ma...@stefan-seelmann.de>
wrote:

> On 07/24/2015 05:16 PM, Lucas Theisen wrote:
> > Has anybody else attempted to get eclipse MARS to work with the directory
> > source.  Specifically, the antlr-maven-plugin seems to be something m2e
> > complains about: "Plugin execution not covered by lifecycle
> configuration:
> > org.codehaus.mojo:antlr-maven-plugin:2.2:generate (execution: default,
> > phase: generate-sources)".  Without that plugin functioning, the sources
> > are not properly generated, and I cannot run the server in debug.  I dont
> > know much about antlr, but it seems like the code is using
> > antlr-maven-plugin, and the m2e doc seems to say we should be using
> > antlr3-maven-plugin (
> >
> http://www.eclipse.org/m2e/documentation/m2e-extension-development.html#m2e-antlr3-code-generation-support-explained
> ).
> > Any suggestions here?
> >
>
> The 1.6 m2e catalog doesn't include connectors for old maven plugins.
> But it is possible to install them manally.
>
> I looked into the Luna installation, Help -> About -> Installation
> Details -> Plugins -> filter for "connector". Then used the PluginID and
> searched on https://search.maven.org/. This way its possible to find out
> the update site URL, which you can use in Window -> Install new Software
> to install the connector.
>
> For Antlr the update sit URL is
>
> https://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-antlr/0.15.0/N/0.15.0.201405281449/
>
> This should be enougth to get the API and Server build. I'll import
> Studio later to see which connectors are missing.
>
> Anyway, update to newer Maven plugins (espacially antlr) makes sense in
> any case :)
>
> Kind Regards,
> Stefan
>
>
Thanks Stefan, that update site worked for me.  After installing and
restarting, i had to Maven -> Update Projects... for all the projects using
antlr, but it works now.

Re: Eclipse MARS and antlr m2e

Posted by Stefan Seelmann <ma...@stefan-seelmann.de>.
On 07/24/2015 05:16 PM, Lucas Theisen wrote:
> Has anybody else attempted to get eclipse MARS to work with the directory
> source.  Specifically, the antlr-maven-plugin seems to be something m2e
> complains about: "Plugin execution not covered by lifecycle configuration:
> org.codehaus.mojo:antlr-maven-plugin:2.2:generate (execution: default,
> phase: generate-sources)".  Without that plugin functioning, the sources
> are not properly generated, and I cannot run the server in debug.  I dont
> know much about antlr, but it seems like the code is using
> antlr-maven-plugin, and the m2e doc seems to say we should be using
> antlr3-maven-plugin (
> http://www.eclipse.org/m2e/documentation/m2e-extension-development.html#m2e-antlr3-code-generation-support-explained).
> Any suggestions here?
> 

The 1.6 m2e catalog doesn't include connectors for old maven plugins.
But it is possible to install them manally.

I looked into the Luna installation, Help -> About -> Installation
Details -> Plugins -> filter for "connector". Then used the PluginID and
searched on https://search.maven.org/. This way its possible to find out
the update site URL, which you can use in Window -> Install new Software
to install the connector.

For Antlr the update sit URL is
https://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-antlr/0.15.0/N/0.15.0.201405281449/

This should be enougth to get the API and Server build. I'll import
Studio later to see which connectors are missing.

Anyway, update to newer Maven plugins (espacially antlr) makes sense in
any case :)

Kind Regards,
Stefan


Re: Eclipse MARS and antlr m2e

Posted by Emmanuel Lécharny <el...@gmail.com>.
Le 24/07/15 17:16, Lucas Theisen a écrit :
> Has anybody else attempted to get eclipse MARS to work with the directory
> source.  

As a mater of fact, I gave it a try yesterday (but that was for Studio)

> Specifically, the antlr-maven-plugin seems to be something m2e
> complains about: "Plugin execution not covered by lifecycle configuration:
> org.codehaus.mojo:antlr-maven-plugin:2.2:generate (execution: default,
> phase: generate-sources)".  

Yes, same problem, but it's not the only one. I tried to start studio,
and it launches, but I can't create connections, and things like that.

> Without that plugin functioning, the sources
> are not properly generated, and I cannot run the server in debug.  I dont
> know much about antlr, but it seems like the code is using
> antlr-maven-plugin, and the m2e doc seems to say we should be using
> antlr3-maven-plugin (
> http://www.eclipse.org/m2e/documentation/m2e-extension-development.html#m2e-antlr3-code-generation-support-explained).
> Any suggestions here?

At this point, use Luna. We should switch to antlr 4...