How to use UML2 with Maven [message #1733341] |
Thu, 26 May 2016 12:54  |
Eclipse User |
|
|
|
Dear all,
I would like to generate sources from my Xcore model that references UML elements. I use the maven-xtext-plugin that does not use p2 repositories but maven dependencies for gathering dependencies. This approach works well for Xcore models that do not have a dependency to UML models.
My goal is to simply add the dependency to org.eclipse.uml2:uml:5.0.0-v20140602-0749 (http://mvnrepository.com/artifact/org.eclipse.uml2/uml/5.0.0-v20140602-0749). Unfortunately, this depends on org.eclipse.emf:ecore:[2.10.0,3.0.0), which is not available from maven central. Therefore, it is not usable from plain maven.
In contrast, org.eclipse.emf:org.eclipse.emf.ecore is available from maven central with the corresponding version. Because of the different artifact id, maven does not resolve to this.
How do I work around this issue or is this just a bug that should be fixed?
Best regards
Stephan
|
|
|
|
|
Re: How to use UML2 with Maven [message #1733459 is a reply to message #1733352] |
Fri, 27 May 2016 13:01  |
Eclipse User |
|
|
|
Hello Ed,
while your answer is perfectly reasonable, it is a bit disappointing as well. So, for the short term, there seems to be no solution.
I will look into the generator plugin for Xcore in more detail to determine if I can work around this issue.
Thanks
Stephan
|
|
|
Powered by
FUDForum. Page generated in 0.02998 seconds