5

I'm going crazy. I want to generate jaxb classes from a XSD in intellij, but I don't have the option in tools/jaxb or with right click in the file. I read that I need a "webservices" plugin, but I don't see it. Sorry if my english is bad. Thanks in advance.

leoxs
  • 425
  • 1
  • 5
  • 15

3 Answers3

8

Well, Community edition of Intellij don't have this option, that's the problem :P

To anyone with this problem, you can use Eclipse for free JAXB.

leoxs
  • 425
  • 1
  • 5
  • 15
  • I have ultimate but I do not see the menu anyway; as @Ganesh Krishnan says, make sure you have selected the tab with the .xsd file open. – Mike D3ViD Tyson Mar 04 '19 at 23:37
2

You need to have Ultimate Version of IntelliJ Idea to do this as JAXB doesn't seem to be supported by Community Edition.

In Ultimate Version make sure you open the file (And not just select it in the navigator). It's kind of counter-intuitive as I expected Tools menu to change based on what I have selected rather than opened but that's just me.

tldr: Make sure the file is open in editor and not just selected in navigator to see the JAXB menu

Ganesh Krishnan
  • 7,155
  • 2
  • 44
  • 52
0

If you want to generate an xml file thoses instructions should help Generating Instance Document from Schema Dialog But they dont seem to include any right click.

If you really need to generate a class with your IDE, I can only tell you that Eclipse doesn't do that on it's own. I had to use a maven plugin to accomplish that.

David
  • 69
  • 6
  • This does not actually answer the question. The link you're posted has nothing to do with the question and referring to Eclipse does not help and is incorrect as there are Eclispe plugins which invoke XJC. – lexicore Jul 25 '15 at 18:21