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: 315
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 online Christian DietrichFriend
Messages: 10588
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)
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 online Christian DietrichFriend
Messages: 10588
Registered: July 2009
Senior Member
I just saw that parts are missing . I'll ask Dennis
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 online Christian DietrichFriend
Messages: 10588
Registered: July 2009
Senior Member
workaround: use https://oss.sonatype.org/content/repositories/releases/
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: 315
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: 21
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 online Christian DietrichFriend
Messages: 10588
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
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: 315
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 Spoenemann is currently offline Miro SpoenemannFriend
Messages: 28
Registered: March 2015
Junior 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 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?
Previous Topic:Xtext 2.11 is out
Next Topic:Troubles With Parsing Numbers
Goto Forum:
  


Current Time: Mon May 29 09:43:03 GMT 2017

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

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