Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-626

Interface extensions need explicit dependency on javaparser-symbol-solver-core

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • Version 5.1.1
    • Version 5.2.0
    • Binding
    • None

    Description

      Tidying up the dependencies for my XMLBeans-consuming project, I find that I need to specify an explicit dependency on com.github.javaparser:javaparser-symbol-solver-core, or the interface extension generation step fails with:

      > java.lang.NoClassDefFoundError: com/github/javaparser/symbolsolver/model/resolution/TypeSolver

      For context, I am building with Gradle, and defining the Ant schema compilation task as follows:

      ant.taskdef (
              name: "xmlbean",
              classname: "org.apache.xmlbeans.impl.tool.XMLBean",
              classpath: configurations.xbeanconf.asPath
      )

      It is the classpath in the above snippet that needs javaparser-symbol-solver-core, and it is not pulled in as a transitive dependency from anywhere so I have to declare a dependency on it myself.

      Is this intended? Or should javaparser-symbol-solver-core be considered for inclusion as a dependency of xmlbeans itself? Or should I be doing this differently?

      Any hints appreciated.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            pakeller Peter Keller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m