Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Building Xtext out of the box with maven fails on photon
Building Xtext out of the box with maven fails on photon [message #1801630] Wed, 23 January 2019 22:37 Go to next message
Duncan Krebs is currently offline Duncan KrebsFriend
Messages: 9
Registered: July 2014
Junior Member
Hello,
I am trying to do the simple task of creating a Xtext DSL project in eclipse photon using the new wizard and selecting maven as my build system but its failing out of the box. The error I am getting is below, love Xtext but hate building it, can anyone shed some light on the error and how I can get a freshly created XText project to build with maven in photon? It looks like the pom file generated is pointing to drop repository that no longer exists?

[WARNING] Failed to access p2 repository http://download.eclipse.org/tools/orbit/downloads/drops/S20180504181223/repository, use local cache. Neither http://download.eclipse.org/tools/orbit/downloads/drops/S20180504181223/repository/compositeContent.jar nor http://download.eclipse.org/tools/orbit/downloads/drops/S20180504181223/repository/compositeContent.xml found.
[ERROR] Failed to resolve target definition /Users/dkrebs/eclipse-workspace/org.xtext.example.mydsl.parent/org.xtext.example.mydsl.target/org.xtext.example.mydsl.target.target: Failed to load p2 metadata repository from location http://download.eclipse.org/tools/orbit/downloads/drops/S20180504181223/repository: Unable to read repository at http://download.eclipse.org/tools/orbit/downloads/drops/S20180504181223/repository. Artifact not found: http://download.eclipse.org/tools/orbit/downloads/drops2/S20180504181223/repository/content.xml.xz. -> [Help 1]
[ERROR]
Re: Building Xtext out of the box with maven fails on photon [message #1801638 is a reply to message #1801630] Thu, 24 January 2019 05:18 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Welll you should replace the s repo with the release one.
Can you show the content of the target file?

It should point to https://download.eclipse.org/tools/orbit/downloads/drops/R20180606145124/repository/

For some reason this is not the case with Xtext 2.14
In newer releases the problem is already addressed



Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Building Xtext out of the box with maven fails on photon [message #1801656 is a reply to message #1801638] Thu, 24 January 2019 09:28 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 762
Registered: July 2009
Location: Dortmund, Germany
Senior Member

Note that Eclipse Orbit repositories marked with "S" are so-called stable or milestone builds. They are deleted some time after a release repository is available. Sometimes these release repositories are not available at the time of an Xtext release, so we can only provide the latest stable release, which unfortunately break later. This is a chicken-egg-problem.
Previous Topic:Using EclipseResourceFileSystemAccess2 in test
Next Topic:Generated Files do not auto-compile
Goto Forum:
  


Current Time: Thu Apr 25 22:43:37 GMT 2024

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

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

Back to the top