Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BPMN 2.0 Modeler » Using BPMN2 Model in maven
Using BPMN2 Model in maven [message #1737245] Wed, 06 July 2016 14:48 Go to next message
Bert Brecht is currently offline Bert BrechtFriend
Messages: 7
Registered: July 2016
Junior Member
Hi,

im working on my thesis and want to create bpmn2 models. I thought, I can use the bpmn2 project hosted at eclipse.
I already found a quite old and outdated "BPMN 2.0 Metamodel Implementation for Eclipse: Get it and Use it". I managed to make the source code being referenced there to compile by adding:

<dependency>
<groupId>org.eclipse.emf</groupId>
<artifactId>ecore</artifactId>
<version>2.3.0-v200706262000</version>
<type>jar</type>
</dependency>

to the dependencies. Unfortunately, its running into a couple of NoClassDefFoundErrors during runtime. Is there any way to use the API from maven only? Seems like black magic to get the needed dependencies and would be quite happy about any hint allowing me to write a bpmn2 file.

Thanks,
Bert
Re: Using BPMN2 Model in maven [message #1737488 is a reply to message #1737245] Fri, 08 July 2016 15:33 Go to previous message
Robert Brodt is currently offline Robert BrodtFriend
Messages: 811
Registered: August 2010
Location: Colorado Springs, CO
Senior Member

Hi Bert,

The update sites for the BPMN2 metamodel plugin are here:

http://download.eclipse.org/modeling/mdt/bpmn2/updates/<eclipse_platform>/<version>

for example:

http://download.eclipse.org/modeling/mdt/bpmn2/updates/mars/1.2.1

I think you need to include a <repository> definition in your parent pom.xml that points to one of these update sites - I'm not aware of any public maven repositories that mirror this plugin (e.g. maven.org or codehaus.org) So, something like this:

	<repositories>
               ...
		<repository>
			<id>eclipse-bpmn2</id>
			<url>http://download.eclipse.org/modeling/mdt/bpmn2/updates/neon/1.3.0/</url>
			<layout>p2</layout>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
			<releases>
				<enabled>true</enabled>
			</releases>
		</repository>


Also, maybe this will help:

https://wiki.eclipse.org/BPMN2-Modeler/DeveloperTutorials/Maven

Cheers,
Bob
Previous Topic:Dynamically update the layout of a customTaskElement
Next Topic:Import of BPMN Models on server
Goto Forum:
  


Current Time: Tue Feb 20 21:55:52 GMT 2018

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

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