dsl maven build cannot resolve types defined in xtend [message #1753873] |
Fri, 10 February 2017 22:46  |
Eclipse User |
|
|
|
Hi,
I met a compilation problem in building a dsl project, where the dsl code uses types from xtend code.
I experimented with the example project:
https://github.com/xtext/maven-xtext-example
Defined a Foo type in
example-project/src/main/java/my/pack/Foo.xtend
package my.pack
class Foo { }
Then changed the example-project/src/main/java/Super.hero file to:
hero Superman can FLY {
pirntln(new my.pack.Foo())
println("Hello I can fly!")
}
In mvn compile, I got the error:
ERROR:my.pack.Foo cannot be resolved. (file:/Users/paul/Downloads/maven-xtext-example/example-project/src/main/java/Super.hero line : 2 column : 17)
The pom adds both the xtend plugin and the dsl plugin. Are the maven plugins not able to perform this kind of build? I tried the same on the gradle version, it seems to work.
Thanks,
Paul
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04778 seconds