Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » What happend to(UML2MetaModel and ProfileMetaModel)
What happend to [message #1711490] Fri, 16 October 2015 12:28 Go to next message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 25
Registered: February 2010
Junior Member
I had a worklfow in an old Projekt that was using XPand on UML model.

I didn't work with this project for a while when I try to run all the dependencies it has disappeared from Maven Repositories.

I try to adapt the libraries to the newer versions but even some classes are completely disappeared.

for ex.
org.eclipse.xtend.typesystem.uml2.UML2MetaModel and org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel

I can't find this classes anymore in Eclipse projects.

What should I do to make it work again, I think because these classes are disappeared there must be some major changes.

I checked this site but I can't see any useful pointers for my scenario.

https://www.eclipse.org/Xtext/documentation

My old workflow was looking something like this.

<?xml version="1.0" encoding="UTF-8"?>
<workflow>
	<property file="workflow.properties" />
	
	<bean class="org.eclipse.xtend.typesystem.uml2.Setup" standardUML2Setup="true" />
		
	<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
		<platformUri value=".." />
	</bean>
	
	<bean id="uml" class="org.eclipse.xtend.typesystem.uml2.UML2MetaModel"/>
	
	<bean id="datatype" class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel">
		<profile value="platform:/resource/ssd/src/main/resources/model/Datatype.profile.uml"/>
	</bean>
	
	<bean id="java" class="org.eclipse.xtend.typesystem.uml2.profile.ProfileMetaModel">
		<profile value="platform:/resource/ssd/src/main/resources/model/Java.profile.uml"/>
	</bean>
	
	<component class="org.eclipse.xtend.typesystem.emf.XmiReader">
        <modelFile value="model/domain.uml" />
        <outputSlot value="model" />
    </component>
    
	<component id="generator" class="org.eclipse.xpand2.Generator"
		skipOnErrors="true">
		<fileEncoding value="ISO-8859-1" />
		<!--metaModel idRef="EmfMM" /-->
		<metaModel idRef="uml" />
		<metaModel idRef="datatype" />
		<metaModel idRef="java" />

		<expand value="template::Root::Root FOR model" />
		<outlet path="src/generated/java" >
			<postprocessor class="org.eclipse.xpand2.output.JavaBeautifier" />
		</outlet>
	</component>			
</workflow>


PS. I was using Fornax Javabasic Cartridge also it seems that is also quite outdated, is there any other templates that I can use to create Java code now?

[Updated on: Fri, 16 October 2015 12:31]

Report message to a moderator

Re: What happend to [message #1712824 is a reply to message #1711490] Wed, 28 October 2015 14:33 Go to previous message
Missing name Mising name is currently offline Missing name Mising nameFriend
Messages: 25
Registered: February 2010
Junior Member
For the people who might experience the same problem, it seems that the artifact org.eclipse.xtend.typesystem.uml2 is not anymore available under Maven repositories.

Only possible solution at the moment create a Maven artifact with Tycho plugin and let that resolve the artifact from p2 repository, then expand these dependencies with maven dependency plugin and then pack again with assembly plugin and provide to other Maven projects that you have.
Previous Topic:[ACCELEO] Add model preprocessing before text generation
Next Topic:How the use 2 input Models in Acceleo
Goto Forum:
  


Current Time: Sun Nov 18 08:33:05 GMT 2018

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

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

Back to the top