question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Eclipse error: Execution of default goal... A required class was missing..

See original GitHub issue

I have this error constantly marked on my pom.xml. It all works just fine from the command line.

Setup: Windows 10, Eclipse Mars 4.5.1 (Build 20150924-1200), M2e 1.6.2.20150902-0002, maven-jaxb2-plugin 0.13.1

Error:

Execution default of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate failed: A required class was missing while executing org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate: com/sun/xml/bind/api/ErrorListener

Stack trace: https://gist.github.com/cptwunderlich/b088e8e5d6116084ba94

Edit 17.01.2017: Still the same issue on latest Eclipse version: Version: Neon.1a Release (4.6.1) Build id: 20161007-1200

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:30 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
bukocommented, Oct 30, 2016

I’ll just add a quick comment here on what I’ve found.

  1. This issue isn’t fixed. The only work around to to use version 0.12.1 of this plugin.
  2. The problem is definitely related to Eclipse. Not a problem with the plugin itself.
  3. Removing all Installed JREs from Eclipse doesn’t solve the problem.

To actually fix this problem you must use a JDK to launch Eclipse. I repeat, what matter is whether you use a JDK or a JRE to launch Eclipse not the ‘Installed JREs’. This plugin does not work inside Eclipse unless a JDK is used to launch Eclipse.

To fix this issue you must:

  1. Open up ‘eclipse.ini’ and change the VM like so: -vm C:\data\applications\Java\jdk1.8.0_91\bin

Once you make this change you can use version 0.13.1 of this plugin.

It’s also worth mentioning that if you use Eclipse you must install an m2e-connector to get this plugin fully integrated. This stack-overflow plugin led me to this p2 repository which once installed got this plugin really grooving.

I suggest we add something to the documentation that explains how to use this plugin with Eclipse 4.5+. It’s very easy to waste a lot of time trying to get this to work and it can definitely discourage new users.

BTW, @highsource , this plugin rocks! Very impressed with how robust this plugin is and its ability to support large-scale schema-first development. Keep up the good work!

2reactions
highsourcecommented, Jan 11, 2017

Hm… Seems like I really have to repackage XJC to fix this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache CXF using eclipse: A required class was missing ...
Execution generate-sources of goal org.apache.cxf:cxf-codegen-plugin:3.2.0:wsdl2java failed: A required class was missing while executing ...
Read more >
[Solved] Maven Shade Plugin - A required class was missing ...
You may get this error when you have incompatible version of maven and it's maven shade plugin. Fixing version number mismatch will solve ......
Read more >
Execution Not Covered - M2Eclipse
Background. M2Eclipse 0.12 and earlier executed some parts of Maven build lifecycle inside Eclipse and then configured the Eclipse project based on ...
Read more >
379801 – If required source bundle is missing during ... - Bugs
src/ You get this: [ERROR] Failed to execute goal org.eclipse.tycho.extras: ... project org.jboss.tools.jmx.feature: Execution default-p2-metadata of goal ...
Read more >
Kubernetes Maven Plugin - JKube - Eclipse
Of course you can bind all those jkube-goals to execution phases as well, ... IfNotPresent : Automatic download any missing images (default).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found