Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-28580

javax.xml.XMLConstants twice in classpath

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • jenkins-core 1.615

      The class javax.xml.XMLConstants is twice in the classpath:
      1. From the Java Runtime (from 1.6 or 1.7)
      2. From the maven dependency
      stax/stax-api-1.0.1 (http://stax.codehaus.org/)

      Number 2 does not define the constant FEATURE_SECURE_PROCESSING, which is used in jenkins.util.xml.XMLUtils. It seems that at least Eclipse gives preference to the codehaus variant so this leads to a compilation error.

      Interestingly, there is one more artifact with the name "jstax-api", but it doesn't contain javax.xml.XMLConstants.

      See also: https://issues.jenkins-ci.org/browse/JENKINS-2547

      Source and target version of Maven are at 1.7 - I guess Java 1.5 support is not an issue any more.

            Unassigned Unassigned
            gustave Gustave Laville
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: