Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [XCore] org.eclipse.emf.ecore.xcore.lib cannot be resolved(Problem with tutorial https://wiki.eclipse.org/Xcore#Modeling_for_Programmers_and_Programming_for_Modelers)
[XCore] org.eclipse.emf.ecore.xcore.lib cannot be resolved [message #1388210] Thu, 26 June 2014 06:03 Go to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 164
Registered: October 2010
Location: Austria
Senior Member
Hy there,

I tried your tutorial both with Kepler and now with Luna. I installed the EMF - Eclipse Modeling Framework Xcore SDK, created an XCore Project and it works fine.

However, on every Project/clean or rebuild in Kepler the following bundles get added to the Manifest, which I can not resolve:

 
 org.eclipse.xtext.xbase.lib;visibility:=reexport,
 org.eclipse.emf.ecore.xcore.lib;visibility:=reexport,


on Luna, the same as befor, but just the following
 org.eclipse.emf.ecore.xcore.lib;visibility:=reexport,


Funny thing is, I don't seem to need them, as just removing the requirement removes all build problems. I also tried to find the required libraries. I do not seem to find an update site to install this feature, however.

Whats the matter with this? Thanks for your help, as it is really annoying to have to manually remove the dependency after each compile run.
Re: [XCore] org.eclipse.emf.ecore.xcore.lib cannot be resolved [message #1388264 is a reply to message #1388210] Thu, 26 June 2014 07:31 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30554
Registered: July 2009
Senior Member
Marco,

Comments below.

On 26/06/2014 8:03 AM, Marco Descher wrote:
> Hy there,
>
> I tried your tutorial both with Kepler and now with Luna. I installed
> the EMF - Eclipse Modeling Framework Xcore SDK, created an XCore
> Project and it works fine.
>
> However, on every Project/clean or rebuild in Kepler the following
> bundles get added to the Manifest, which I can not resolve:
>
>
> org.eclipse.xtext.xbase.lib;visibility:=reexport,
> org.eclipse.emf.ecore.xcore.lib;visibility:=reexport,
Are these bundles not in your target platform?
>
>
> on Luna, the same as befor, but just the following
>
> org.eclipse.emf.ecore.xcore.lib;visibility:=reexport,
>
>
> Funny thing is, I don't seem to need them, as just removing the
> requirement removes all build problems.
They generally are only needed if you have block expressions in your model?
> I also tried to
> https://github.com/eclipse/emf/blob/master/features/org.eclipse.emf.ecore.xcore.lib-feature/feature.properties
> the required libraries. I do not seem to find an update site to
> install this feature, however.
It sounds like you don't really have a target platform but rather are
using the installed IDE as the target platform. Is that right? Do you
have the Xcore SDK and Xtext SDK installed?
>
> Whats the matter with this? Thanks for your help, as it is really
> annoying to have to manually remove the dependency after each compile
> run.
Note that you can set the GenModel property "Update Classpath" to false
to turn this merging behavior off as a workaround, but I suspect the
problem is more a deficiency in your target platform. You really should
have one and it should have the SDKs in it...
Re: [XCore] org.eclipse.emf.ecore.xcore.lib cannot be resolved [message #1388295 is a reply to message #1388264] Thu, 26 June 2014 08:24 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6505
Registered: July 2009
Senior Member
On 26.06.14 09:31, Ed Merks wrote:
> Marco,
>
> Comments below.
>
> On 26/06/2014 8:03 AM, Marco Descher wrote:
>> Hy there,
>>
>> I tried your tutorial both with Kepler and now with Luna. I installed
>> the EMF - Eclipse Modeling Framework Xcore SDK, created an XCore
>> Project and it works fine.
>>
>> However, on every Project/clean or rebuild in Kepler the following
>> bundles get added to the Manifest, which I can not resolve:
>>
>>
>> org.eclipse.xtext.xbase.lib;visibility:=reexport,
>> org.eclipse.emf.ecore.xcore.lib;visibility:=reexport,
> Are these bundles not in your target platform?
>>
>>
>> on Luna, the same as befor, but just the following
>>
>> org.eclipse.emf.ecore.xcore.lib;visibility:=reexport,
>>
>>
>> Funny thing is, I don't seem to need them, as just removing the
>> requirement removes all build problems.
> They generally are only needed if you have block expressions in your model?

I've updated https://bugs.eclipse.org/bugs/show_bug.cgi?id=437093 maybe
you should mark them optional?

>> I also tried to
>> https://github.com/eclipse/emf/blob/master/features/org.eclipse.emf.ecore.xcore.lib-feature/feature.properties
>> the required libraries. I do not seem to find an update site to
>> install this feature, however.
> It sounds like you don't really have a target platform but rather are
> using the installed IDE as the target platform. Is that right? Do you
> have the Xcore SDK and Xtext SDK installed?
>>
>> Whats the matter with this? Thanks for your help, as it is really
>> annoying to have to manually remove the dependency after each compile
>> run.
> Note that you can set the GenModel property "Update Classpath" to false

That's a nice trick - didn't know about that.

> to turn this merging behavior off as a workaround, but I suspect the
> problem is more a deficiency in your target platform. You really should
> have one and it should have the SDKs in it...
>
>


Tom
Re: [XCore] org.eclipse.emf.ecore.xcore.lib cannot be resolved [message #1388300 is a reply to message #1388264] Thu, 26 June 2014 08:30 Go to previous messageGo to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 164
Registered: October 2010
Location: Austria
Senior Member

> org.eclipse.xtext.xbase.lib;visibility:=reexport,
> org.eclipse.emf.ecore.xcore.lib;visibility:=reexport,
Are these bundles not in your target platform?

I currently simply installed the required SDK. I am working with a target platform in another workspace, can't however figure out which feature to select, to satisfy these dependencies!

Thats when I came to the link, but the feature (EMF - Eclipse Modeling Framework Xcore Library Runtime Library) mentioned there seems not to be part of the EMF Update site http://download.eclipse.org/modeling/emf/emf/updates/releases/.


> on Luna, the same as befor, but just the following
>
> org.eclipse.emf.ecore.xcore.lib;visibility:=reexport,
>
>
> Funny thing is, I don't seem to need them, as just removing the
> requirement removes all build problems.
They generally are only needed if you have block expressions in your model?

Uhm, sorry, don't know 'bout block expressions! Eclipse is forcing the requirement each compile, and as mentioned, I don't really need it - removal works good!

> I also tried to
> https://github.com/eclipse/emf/blob/master/features/org.eclipse.emf.ecore.xcore.lib-feature/feature.properties
> the required libraries. I do not seem to find an update site to
> install this feature, however.
It sounds like you don't really have a target platform but rather are
using the installed IDE as the target platform. Is that right? Do you
have the Xcore SDK and Xtext SDK installed?

I have no problem using a target platform, but what feature to install there?? The only thing is the XCore SDK, is there a XCore runtime or something?

>
> Whats the matter with this? Thanks for your help, as it is really
> annoying to have to manually remove the dependency after each compile
> run.
Note that you can set the GenModel property "Update Classpath" to false
to turn this merging behavior off as a workaround, but I suspect the
problem is more a deficiency in your target platform. You really should
have one and it should have the SDKs in it...[/quote]

Thanks for the info, will try!
Re: [XCore] org.eclipse.emf.ecore.xcore.lib cannot be resolved [message #1388363 is a reply to message #1388300] Thu, 26 June 2014 10:29 Go to previous messageGo to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 164
Registered: October 2010
Location: Austria
Senior Member
Trying to set the required @GenModel Annotation gives me the same as here https://www.eclipse.org/forums/index.php/t/521760/ ..
Couldn't resolve reference to XAnnotationDirective 'GenModel'.
Re: [XCore] org.eclipse.emf.ecore.xcore.lib cannot be resolved [message #1388366 is a reply to message #1388363] Thu, 26 June 2014 10:32 Go to previous messageGo to next message
Marco Descher is currently offline Marco DescherFriend
Messages: 164
Registered: October 2010
Location: Austria
Senior Member
Just found the solution to this problem, add
annotation "http://www.eclipse.org/emf/2002/GenModel" as GenModel
Re: [XCore] org.eclipse.emf.ecore.xcore.lib cannot be resolved [message #1389304 is a reply to message #1388366] Fri, 27 June 2014 16:04 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30554
Registered: July 2009
Senior Member
Marco,

There is an xcore runtime feature in luna:



But it only shows up if you choose to show uncategorized items.

On 26/06/2014 12:32 PM, Marco Descher wrote:
> Just found the solution to this problem, add
> annotation "http://www.eclipse.org/emf/2002/GenModel" as GenModel
Previous Topic:MissingResourceException in Maven project
Next Topic:Attribute constraints on a dynamic model
Goto Forum:
  


Current Time: Tue Oct 22 13:45:26 GMT 2019

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

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

Back to the top