Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext/Xtend integration in a Maven build(How to establish Xtext/Xtend integration in a Maven build by only using a nexus repository)
Xtext/Xtend integration in a Maven build [message #1092063] Thu, 22 August 2013 09:26 Go to next message
Adrian Pollak is currently offline Adrian PollakFriend
Messages: 27
Registered: August 2013
Junior Member
Hello,

we are currently working with Eclipse Indigo and Xtext 2.4 SDK. Everything works fine in eclipse.

Now, we want to integrate the whole generation process into our maven build. We do not want to put the generated files into our CVS, so every code generation should be performed by the maven build.
Furthermore, the build must be executed on a server which has no internet access, only access to a nexus repository.

We have tried several solutions proposed in many discussion forums, but we did not find any solution for the current Xtext version 2.4, that completely worked as desired. Either the solution was to old or something didn't work as expected in our adoption of the proposal. We are no experts in eclipse/OSGI. So there always are some things in the solutions we don't understand.
Additionally, each build requires internet access to some repository that did not seem to be downloaded from a maven repository that could be easily integrated in our nexus repository.

We doubt whether this can be truly achieved by ourselves.

Because we do not want to spend more time in investigation (1 week is enough) we have this question:

Is it possible to create a maven build with the current Xtext/Xtend-version on a pc with no internet access, just a nexus repository access and without deeply knowlegde about eclipse/OSGI internals (just a straightforward pom.xml with some stable, documented plugins)?

If the answer would be yes, then we would also appreciate a solution or at least a hint.

Regards

Adrian
Re: Xtext/Xtend integration in a Maven build [message #1092172 is a reply to message #1092063] Thu, 22 August 2013 12:17 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14670
Registered: July 2009
Senior Member
Hi,

i am not quite sure what you are doing (is this a question on how to build generally - http://www.eclipse.org/forums/index.php/t/506048/)
or on use of nexus
we have a similar situation but our nexus (pro) has internet access and thus can serve as proxy for p2 repositories (for maven tycho)
if you cant go this way you have to mirror the p2 repositories in other ways.

~Christian


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext/Xtend integration in a Maven build [message #1092221 is a reply to message #1092063] Thu, 22 August 2013 13:36 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Of course this is possible. It is usual to have such setup, the Nexus serves as proxy to the internet.

A special case are the necessary access to p2 repositories which you require for the Tycho build. Without Tycho your build is hard to set up, it would require manual installation of the required OSGi bundles and POM dependency madness.

However, proxying p2 repositories requires either Nexus Pro (easiest way) or installation of the p2 Nexus plugins on Nexus OSS (they are available without requiring Nexus Pro).

Also a typical way is to provide aggregated p2 repositories hosted by Nexus. You could aggregate one e.g. with the b3 Aggregator. In Nexus you would set up a hosted Maven2 repository which would just serve as web space. The aggregated p2 repository would be placed into this location, and your build uses the p2 repository location.

No need to access the internet from the build server!

Some guidance on Tycho build setup you would find on many sites. I could recommend looking at project Spray. It is Xtext and Tycho based, and some concepts are explained in the developer guide. http://code.google.com/a/eclipselabs.org/p/spray/

I see a big problem: I doubt that you come along without any reasonable knowledge of OSGi, Maven, Tycho to really solve hurdles you could be facing. The setup is quite simple and repeatable, but at the end it requires knowledge of what you are doing and why something fails. Did you ever thought on getting some professional assistance?

Kind regards,
~Karsten


Need professional support for Xtext, EMF, Eclipse IDE?
Go to: http://devhub.karakun.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: Xtext/Xtend integration in a Maven build [message #1093020 is a reply to message #1092063] Fri, 23 August 2013 12:59 Go to previous messageGo to next message
Christoph Kulla is currently offline Christoph KullaFriend
Messages: 48
Registered: July 2009
Member
Hi,

you may want to take a look at:
https://github.com/ckulla/xtext-tycho-example for an example how to
setup an xtext tycho build.

Cheers,

Christoph

On 8/22/13 2:05 PM, Adrian Pollak wrote:
> Hello,
>
> we are currently working with Eclipse Indigo and Xtext 2.4 SDK.
> Everything works fine in eclipse.
> Now, we want to integrate the whole generation process into our maven
> build. We do not want to put the generated files into our CVS, so every
> code generation should be performed by the maven build.
> Furthermore, the build must be executed on a server which has no
> internet access, only access to a nexus repository.
>
> We have tried several solutions proposed in many discussion forums, but
> we did not find any solution for the current Xtext version 2.4, that
> completely worked as desired. Either the solution was to old or
> something didn't work as expected in our adoption of the proposal. We
> are no experts in eclipse/OSGI. So there always are some things in the
> solutions we don't understand.
> Additionally, each build requires internet access to some repository
> that did not seem to be downloaded from a maven repository that could be
> easily integrated in our nexus repository.
>
> We doubt whether this can be truly achieved by ourselves.
>
> Because we do not want to spend more time in investigation (1 week is
> enough) we have this question:
>
> Is it possible to create a maven build with the current
> Xtext/Xtend-version on a pc with no internet access, just a nexus
> repository access and without deeply knowlegde about eclipse/OSGI
> internals (just a straightforward pom.xml with some stable, documented
> plugins)?
>
> If the answer would be yes, then we would also appreciate a solution or
> at least a hint.
>
> Regards
>
> Adrian
Re: Xtext/Xtend integration in a Maven build [message #1095054 is a reply to message #1093020] Mon, 26 August 2013 15:00 Go to previous message
Michael Vorburger is currently offline Michael VorburgerFriend
Messages: 103
Registered: July 2009
Senior Member
Similar example also on e.g. https://github.com/aphethean/xtext-maven-examples, and two simple public Xtext langs built with Maven on https://github.com/vorburger/efactory and https://github.com/vorburger/eLang. HTH.
Previous Topic:Reference to non ID element from imported grammar
Next Topic:JVM inferred objects and content assist still not solved
Goto Forum:
  


Current Time: Sat Apr 27 04:49:52 GMT 2024

Powered by FUDForum. Page generated in 0.03955 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top