Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext 2.11 in Maven central
Xtext 2.11 in Maven central [message #1753133] Thu, 02 February 2017 07:23 Go to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 339
Registered: July 2009
Senior Member
Hi all,

first congratulations to the new release. I started migration yesterday, but fail to run the Maven build, because the final 2.11 version has not landed in Maven central yet.

This leads to the following error message:

Quote:

Failed to collect dependencies at org.eclipse.xtext:xtext-maven-plugin:jar:2.11.0 -> org.eclipse.xtext:org.eclipse.xtext.builder.standalone:jar:[2.11.0]: No versions available for org.eclipse.xtext:org.eclipse.xtext.builder.standalone:jar:[2.11.0] within specified range


Was this update forgotten or does it just need some time?

Thanks,

Axel
Re: Xtext 2.11 in Maven central [message #1753134 is a reply to message #1753133] Thu, 02 February 2017 07:27 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12322
Registered: July 2009
Senior Member
Well it is there now and it may take always some hours until it is visible .
And there is the metadata caching (you may need to call maven with -U)


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext 2.11 in Maven central [message #1753135 is a reply to message #1753134] Thu, 02 February 2017 07:29 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12322
Registered: July 2009
Senior Member
I just saw that parts are missing . I'll ask Dennis

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext 2.11 in Maven central [message #1753137 is a reply to message #1753135] Thu, 02 February 2017 07:38 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12322
Registered: July 2009
Senior Member
workaround: use https://oss.sonatype.org/content/repositories/releases/

Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext 2.11 in Maven central [message #1753138 is a reply to message #1753135] Thu, 02 February 2017 07:38 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 339
Registered: July 2009
Senior Member
Thank you, Christian!

Didn't know the -U flag yet - learning never stops Smile

With "mvn clean verify -U" there the following issue occurs:

Quote:

Could not find artifact org.eclipse.xtext:org.eclipse.xtext.xtext:jar:2.11.0 in central (https://repo.maven.apache.org/maven2)


Will wait a bit and try again afterwards.
Re: Xtext 2.11 in Maven central [message #1753139 is a reply to message #1753138] Thu, 02 February 2017 07:59 Go to previous messageGo to next message
Akos Kitta is currently offline Akos KittaFriend
Messages: 25
Registered: November 2015
Junior Member
I thought, org.eclipse.xtext:org.eclipse.xtext.xtext:jar:2.11.0 is depraced and not availble from 2.11. Maybe I'm simply wrong.
Re: Xtext 2.11 in Maven central [message #1753146 is a reply to message #1753139] Thu, 02 February 2017 08:40 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12322
Registered: July 2009
Senior Member
well there are a lot of ther stuff missing as well e.g. http://search.maven.org/#search%7Cga%7C1%7Ca%3A%22org.eclipse.xtext.xbase.testing%22
for me it looks like they will appear one after another at maven centreal


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext 2.11 in Maven central [message #1753147 is a reply to message #1753139] Thu, 02 February 2017 08:49 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 339
Registered: July 2009
Senior Member
Seems you are right. I removed the dependency from the maven plugin org.codehaus.mojo:exec-maven-plugin for generating the DSL artifacts and now the build works Smile
Re: Xtext 2.11 in Maven central [message #1753658 is a reply to message #1753133] Wed, 08 February 2017 14:57 Go to previous messageGo to next message
Manuel Das is currently offline Manuel DasFriend
Messages: 2
Registered: February 2017
Junior Member
Hi,

I'm trying to migrate our xtext based project from xtext version 2.10.0 to 2.11.0.
Our gradle script downloads all packages from JCenter.

Unfortunately, the following required packages are not available with version 2.11.0:

org.eclipse.xtext:org.eclipse.xtext.ui
org.eclipse.xtext:org.eclipse.xtext.ui.shared
org.eclipse.xtext:org.eclipse.xtext.builder
org.eclipse.xtext:org.eclipse.xtext.ui.codetemplates.ui

It would be nice, if someone could publish these packages at JCenter or Maven Central.
Or are they deprecated?

Thank you,
Manuel
Re: Xtext 2.11 in Maven central [message #1753676 is a reply to message #1753658] Wed, 08 February 2017 17:44 Go to previous messageGo to next message
Miro Spönemann is currently offline Miro SpönemannFriend
Messages: 49
Registered: March 2015
Location: Kiel, Germany
Member

For most "missing" artifacts mentioned here it's just a matter of being patient until the synchronization process of the public Maven repositories is finished.

Quote:
org.eclipse.xtext:org.eclipse.xtext.ui
org.eclipse.xtext:org.eclipse.xtext.ui.shared
org.eclipse.xtext:org.eclipse.xtext.builder
org.eclipse.xtext:org.eclipse.xtext.ui.codetemplates.ui


None of the Eclipse bundles from xtext-eclipse have been published as Maven artifacts. They are available on the release update site. Why do you need them in Maven?
Re: Xtext 2.11 in Maven central [message #1753808 is a reply to message #1753676] Fri, 10 February 2017 11:18 Go to previous messageGo to next message
Manuel Das is currently offline Manuel DasFriend
Messages: 2
Registered: February 2017
Junior Member
Thank's for the quick answer, Miro!

As far as I know, the "xtext-gradle-plugin" does not currently support building Eclipse Plugins with Gradle. Therefore, I wrote my own gradle script for our continuous integration that builds the Eclipse Plugin without requiring a full Eclipse installation.

The required Xtext packages are fetched using the gradle dependency management. Also, we use the "xtext-gradle-plugin" for compiling xtend files.

I tried using the "com.diffplug.gradle.p2.asmaven" gradle plugin to get the packages directly from the official xtext release update site. But unfortunately I ran into some problems caused by the different version format ("2.11.0.v*" vs. "2.11.0").

So, my idea was to use the published Maven artifacts (that are not available for 2.11.0). Do you have any suggestions?
Re: Xtext 2.11 in Maven central [message #1781786 is a reply to message #1753808] Tue, 13 February 2018 10:26 Go to previous messageGo to next message
Clément Hurlin is currently offline Clément HurlinFriend
Messages: 9
Registered: February 2014
Junior Member
Manuel Das> I'm facing the same issue as we started our continous integration tool on xtext 2.9.2, which is the only version for which org.eclipse.xtext.builder is published on maven central; but I'm now stuck as we're updating to 2.13.

What was your final solution (I'm looking at p2asmaven too, but it's not straightforward) ?

[Updated on: Tue, 13 February 2018 10:32]

Report message to a moderator

Re: Xtext 2.11 in Maven central [message #1781787 is a reply to message #1781786] Tue, 13 February 2018 10:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12322
Registered: July 2009
Senior Member
which plugin are you exactly talking about?
and where do you need it?


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Tue, 13 February 2018 10:29]

Report message to a moderator

Re: Xtext 2.11 in Maven central [message #1781792 is a reply to message #1781787] Tue, 13 February 2018 10:39 Go to previous messageGo to next message
Clément Hurlin is currently offline Clément HurlinFriend
Messages: 9
Registered: February 2014
Junior Member
Thanks for your answer Christian. I'm talking about the jar for org.eclipse.xtext.builder, whose only versions on maven central are 2.9.* and 2.10.0: see this search on maven central.

I need it, because we build a command line compiler for our custom xtext-based language (at http://www.provenrun.com), which doesn't require a UI Eclipse to be available; but nevertheless depends on features of Eclipse that can be used without osgi running (IProgressMonitor, IPath, etc.).

[Updated on: Tue, 13 February 2018 10:42]

Report message to a moderator

Re: Xtext 2.11 in Maven central [message #1781805 is a reply to message #1781792] Tue, 13 February 2018 11:56 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12322
Registered: July 2009
Senior Member
if you dont run eclipse (not even headless) you should not need that plugin.
so i assume you go headless. but you build with gradle?
then i dont see an option besides mvn eclipse:to-maven


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext 2.11 in Maven central [message #1781813 is a reply to message #1781805] Tue, 13 February 2018 13:22 Go to previous messageGo to next message
Clément Hurlin is currently offline Clément HurlinFriend
Messages: 9
Registered: February 2014
Junior Member
I see, we depend on org.eclipse.xtext.builder for example because there's a single xtext builder for the core (headless) plugin and the UI plugin; and it needs to implement org.eclipse.xtext.builder.IXtextParticipant for the latter (and this interface is fine for being used without osgi running). I'll investigate how far our dependency goes and better split the core and the UI plugin to see if I can get rid of this dependency. Our distinction between core and UI was made circa 2013 and it hasn't changed much since, so we should update on this topic.

Yes we go headless and build with gradle. I've made further progress on using p2asmaven to make Eclipse update sites available from gradle, so I've good hope I'll manage to get the build working again.

Thanks for your help.
Re: Xtext 2.11 in Maven central [message #1781818 is a reply to message #1781813] Tue, 13 February 2018 13:52 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12322
Registered: July 2009
Senior Member
if p2asmaven does not help:
we did some years ago mvn eclipse:to-maven


Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Creating new xtext resource in quickfix
Next Topic:Creating new xtext resource in quickfix
Goto Forum:
  


Current Time: Wed Oct 17 22:08:55 GMT 2018

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

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

Back to the top