Eclipse error: Execution of default goal... A required class was missing..
See original GitHub issueI 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:
- Created 8 years ago
- Comments:30 (10 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll just add a quick comment here on what I’ve found.
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:
-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!
Hm… Seems like I really have to repackage XJC to fix this.