Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » errors in MWE2 editor and Maven project(Couldn't resolve reference to Module ... errors in MWE2 editor and Maven project)
errors in MWE2 editor and Maven project [message #1282516] Wed, 02 April 2014 12:13 Go to next message
Maxim Frolov is currently offline Maxim FrolovFriend
Messages: 4
Registered: January 2012
Location: Aachen, Germany
Junior Member
Hi,

I have two Maven projects: A (type: JAR) and B (type: JAR). Project B has a Maven dependency to project A.

Project A is installed in local Maven repository and contains a workflow file Workflow_B.mwe2.

In project B there is another workflow Workflow_B.mwe2 which references Workflow_A.mwe2 from project A:
 module wokflow.Workflow_B

 Workflow {
	component = @workflow.Workflow_A {
	}
}


If I import project B in Eclipse as Maven project and open Workflow_B.mwe2 I get the error:
Couldn't resolve reference to Module 'workflow.Workflow_A'.


Nevertheless I can execute Workflow_B.mwe2 in Eclipse successfully using context menu.

If I also import project B in the Eclipse Workspace the errors disappear.

Is this a bug?

Or do I missing some project setup?

[Updated on: Wed, 02 April 2014 16:03]

Report message to a moderator

Re: errors in MWE2 editor and Maven project [message #1282531 is a reply to message #1282516] Wed, 02 April 2014 12:42 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13617
Registered: July 2009
Senior Member
HI,

do both projects have xtext nature?


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: errors in MWE2 editor and Maven project [message #1282648 is a reply to message #1282531] Wed, 02 April 2014 16:15 Go to previous message
Maxim Frolov is currently offline Maxim FrolovFriend
Messages: 4
Registered: January 2012
Location: Aachen, Germany
Junior Member
Christian Dietrich wrote on Wed, 02 April 2014 14:42
HI,
do both projects have xtext nature?


The second project, project B, did not have Xtext nature.

After adding Xtext nature to project B the errors in MWE2 file disappear.

Thank you a lot for the help!
Previous Topic:Null references in Xtext when we do a clean build
Next Topic:Cross References (Scoping) without names
Goto Forum:
  


Current Time: Thu Oct 01 20:09:47 GMT 2020

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

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

Back to the top