This type of material is the responsibility of the IDE Maven plugin, and, fortunately, M2E has supported it recently (finally!) Through the concept of M2E connectors, i.e. M2E extensions that understand the binding of certain types and the binding to them and the life cycle. And since recently not many Maven plugins have their own connectors for M2E.
However, you're in luck because Jaxb2 plugins are actually already supported. I assume that you are already using M2E. Then go to Settings -> Maven -> Discovery, then open the directory, and then find the Jaxb2 connector.
source
share