Skip to main content



      Home
Home » Modeling » UML2 » How to use UML2 with Maven
How to use UML2 with Maven [message #1733341] Thu, 26 May 2016 12:54 Go to next message
Eclipse UserFriend
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 #1733347 is a reply to message #1733341] Thu, 26 May 2016 13:11 Go to previous messageGo to next message
Eclipse UserFriend
I found the Eclipse Nexus repository, which contains some bundles. However, the codegen bundle is missing, for example. In the central maven repository, there is a quite old version. Are there any plans to add these bundles to Nexus as well?
Re: How to use UML2 with Maven [message #1733352 is a reply to message #1733347] Thu, 26 May 2016 13:58 Go to previous messageGo to next message
Eclipse UserFriend
Hi

My understanding is that provision of sensible Maven distribution awaits
support from Eclipse IT and that it is dependent on resolution of
incompatible version/persistence policies wrt Eclipse and Maven repos.
However since some projects seem to do it, maybe it is just necessary to
tell the rest of us what to do. Certainly I have done, and plan to do,
exactly nothing until someone tells me what to do for OCL. I suspect the
same goes for UML and EMF and ...

Regards

Ed Willink


On 26/05/2016 18:11, Stephan Seifermann wrote:
> I found the Eclipse Nexus repository, which contains some bundles.
> However, the codegen bundle is missing, for example. In the central
> maven repository, there is a quite old version. Are there any plans to
> add these bundles to Nexus as well?
Re: How to use UML2 with Maven [message #1733459 is a reply to message #1733352] Fri, 27 May 2016 13:01 Go to previous message
Eclipse UserFriend
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
Previous Topic:How to manipulate UML Class Diagram Elements
Next Topic:XMI idref reading error
Goto Forum:
  


Current Time: Mon Jul 07 05:37:17 EDT 2025

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

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

Back to the top