jaxb
  1. jaxb
  2. JAXB-1010

allow generate episode to use if-exists attribute

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: xjc
    • Labels:
      None

      Description

      We forked the jaxb maven plugin a while back and I'm trying to replace it with the latest "open-source, off-the-shelf" version. The earlier maven plugin didn't generate episode files correctly (or at all?) so we wrote our own plugin to generate episodes. One nice attribute in episode files if the "if-exists" attribute as shown below:

      <bindings if-exists="true" scd="~tns:Foo">
      <class ref="com.acme.common.Foo"/>
      </bindings>

      This eliminates the need to re-import every schema when compiler later schemas with this episode file.

        Activity

        Hide
        lexi added a comment -

        I'm not quite sure, how is this related to the maven plugin for JAXB.

        Show
        lexi added a comment - I'm not quite sure, how is this related to the maven plugin for JAXB.
        Hide
        emystein added a comment -

        tdrury could share your fork that generates episodes with if-exists attribute on bindings?
        Thanks in advance,

        Show
        emystein added a comment - tdrury could share your fork that generates episodes with if-exists attribute on bindings? Thanks in advance,
        Hide
        tdrury added a comment -

        I didn't fork the plugin. Instead, I wrote my own maven plugin that generates episode files from the package-info.java file that xjc creates.

        Show
        tdrury added a comment - I didn't fork the plugin. Instead, I wrote my own maven plugin that generates episode files from the package-info.java file that xjc creates.
        Hide
        lexi added a comment -

        Hi Iaroslav,

        here's an idea for bindings customization. Was filed in my maven-jaxb2-plugin project, but is clearly not in scope there.

        Best wishes,
        /Alexey

        Show
        lexi added a comment - Hi Iaroslav, here's an idea for bindings customization. Was filed in my maven-jaxb2-plugin project, but is clearly not in scope there. Best wishes, /Alexey

          People

          • Assignee:
            Iaroslav Savytskyi
            Reporter:
            tdrury
          • Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated: