matiaslev

    matiaslev

    2 years ago
    Hi! I am facing this problem building arrow meta
    e: /Users/matias.lev/IdeaProjects/arrow-meta/gradle-plugin/src/main/kotlin/arrow/meta/plugin/gradle/InstallIdeaPlugin.kt: (3, 51): Symbol is declared in module 'java.xml' which does not export package '<http://com.sun.org|com.sun.org>.apache.xerces.internal.parsers'
    has Someone an insight of what could be the problem?
    Rachel

    Rachel

    2 years ago
    Hi @matiaslev, how are you building the project? Do you have any plugin in the dev environment which can be making that kind of check?
    Please, try to import DOMParser which is included in Gradle API:
    org.apache.xerces.parsers.DOMParser
    Does that error disappear?
    In any case, don't hesitate to propose another way to parse the XML
    DOM strategy fits in this case because it's a very small file and it's not necessary a SAX strategy
    However, there are other options as a document builder
    Thanks @matiaslev!!
    matiaslev

    matiaslev

    2 years ago
    hi! 🙂
    ./gradlew build or ./gradlew buildMeta
    also from the IDE, give the same error. the error points to the import
    import <http://com.sun.org|com.sun.org>.apache.xerces.internal.parsers.DOMParser
    and to the places when is used. I am using JDK 1.8. has to be something about my configuration, I think. I don't find the problem so far. I will share what is going on when I find it.
    Rachel

    Rachel

    2 years ago
    Thanks @matiaslev!! I build the project in the same way with the same JDK and I don't get that error
    What happens if you change that import by
    import org.apache.xerces.parsers.DOMParser
    ?
    matiaslev

    matiaslev

    2 years ago
    that change fix the problem 🎉
    Rachel

    Rachel

    2 years ago
    Great! Thanks for the info! Would you like to propose that change?
    matiaslev

    matiaslev

    2 years ago
    Choose Runtime plugin could be the problem although it was uninstalled while trying to fix it 🤔
    yes! I will create the PR
    Rachel

    Rachel

    2 years ago
    Thank you so much!! 👏