Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Weird maven-dependency-plugin copy problem with emf.common.2.19
Weird maven-dependency-plugin copy problem with emf.common.2.19 [message #1850868] Sun, 20 March 2022 00:50 Go to next message
Brandon Lewis is currently offline Brandon LewisFriend
Messages: 268
Registered: May 2012
Senior Member
I know this is a Maven problem and not an EMF problem, I'm just writing here in a desperate attempt to get any clues as to what might be happening.

I'm trying to build a standalone Xtext compiler, and I've had a Maven recipe that has worked for years. Suddenly, the recipe has stopped working and the first problem I'm hitting is:

For some unexplained reason, the maven-dependency-plugin copies the org.emf.common.2.19 plugin into the resulting jar - but it doesn't copy ANY of it's classes. Instead of a 367KB emf.common jar in my fatjar, I get a 19KB jar that has a manifest, but it has ZERO classes.

So when I run my compiler, it immediately dies when it tries to access "common EMF stuff".

Since I'm not really doing anything specific to my problem other than asking maven (and Tycho I suppose) to copy my deps, why in the world would it know that I need eclipse.emf.common, but then copy the most shallow representation of it without any classes?

[Updated on: Sun, 20 March 2022 00:51]

Report message to a moderator

Re: Weird maven-dependency-plugin copy problem with emf.common.2.19 [message #1850869 is a reply to message #1850868] Sun, 20 March 2022 01:36 Go to previous messageGo to next message
Brandon Lewis is currently offline Brandon LewisFriend
Messages: 268
Registered: May 2012
Senior Member
The same type of problem is happening with org.eclipse.emf.ecore.2.22 as well - I get an exported jar that is essentially blank and doesn't have any classes.

Exporting my Main xtext compiler as a Runnable Jar File from Eclipse works just fine - I just can't do any continuous integration with a command line compiler I have to generate manually.
Re: Weird maven-dependency-plugin copy problem with emf.common.2.19 [message #1850872 is a reply to message #1850869] Sun, 20 March 2022 07:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33143
Registered: July 2009
Senior Member
Do you have any idea what's changed? A newer version of Maven or Tycho? The jar versions look to be a number of releases back so I assume those haven't changed since when it was working.

Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Weird maven-dependency-plugin copy problem with emf.common.2.19 [message #1850874 is a reply to message #1850872] Sun, 20 March 2022 13:31 Go to previous messageGo to next message
Brandon Lewis is currently offline Brandon LewisFriend
Messages: 268
Registered: May 2012
Senior Member
Ed Merks wrote on Sun, 20 March 2022 03:09
Do you have any idea what's changed?


I wish. :-)

Every single thing changes every 3 months now.

[Updated on: Sun, 20 March 2022 22:59]

Report message to a moderator

Re: Weird maven-dependency-plugin copy problem with emf.common.2.19 [message #1852013 is a reply to message #1850874] Mon, 25 April 2022 19:17 Go to previous message
Ewoud Werkman is currently offline Ewoud WerkmanFriend
Messages: 28
Registered: January 2018
Junior Member
An wild thought: could it have something to do with signed Jars? Such that the maven dependency plugin does not copy them?
Previous Topic:Generate EMF from XSD failed with BPMN 2.0
Next Topic:How to keep the namespace prefix when saving a new model
Goto Forum:
  


Current Time: Thu May 02 06:15:13 GMT 2024

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

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

Back to the top