Skip to main content



      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 08:13 Go to next message
Eclipse UserFriend
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 12:03] by Moderator

Re: errors in MWE2 editor and Maven project [message #1282531 is a reply to message #1282516] Wed, 02 April 2014 08:42 Go to previous messageGo to next message
Eclipse UserFriend
HI,

do both projects have xtext nature?
Re: errors in MWE2 editor and Maven project [message #1282648 is a reply to message #1282531] Wed, 02 April 2014 12:15 Go to previous message
Eclipse UserFriend
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: Mon Jul 14 17:56:22 EDT 2025

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

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

Back to the top