Skip to content
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.
This repository has been archived by the owner on Apr 13, 2019. It is now read-only.

scss-lint: SAXparser problems/warnings/errors, but build succesful #35

Closed
mprins opened this issue Mar 8, 2015 · 1 comment · Fixed by #58
Closed

scss-lint: SAXparser problems/warnings/errors, but build succesful #35

mprins opened this issue Mar 8, 2015 · 1 comment · Fixed by #58
Assignees
Labels
Milestone

Comments

@mprins
Copy link
Member

mprins commented Mar 8, 2015

Doxia has "old" versions of sax parsers included. On current JVM (>7) this leads to warnings compiling and applying XSLT like we do in the scss-lint-report which looks like this:

[INFO] --- sass-maven-plugin:2.3-SNAPSHOT:scss-lint (default) @ maven-compass-example ---
[INFO] Linting Sass sources in: /tmp/maven-compass-example/src/main/sass
[INFO] Reporting scss lint in: /tmp/maven-compass-example/target/scss-lint.xml
[WARNING] Lints with a severity of 'warning' were reported (no errors)
[INFO] 
[INFO] <<< sass-maven-plugin:2.3-SNAPSHOT:scss-lint-report < compile @ maven-compass-example <<<
[INFO] Relativizing decoration links with respect to project URL: http://mprins.github.com/maven-compass-example/
[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
[INFO] Generating "scss-lint report" report     --- sass-maven-plugin:2.3-SNAPSHOT:scss-lint-report
Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler warnings:
  WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
Warning:  org.apache.xerces.parsers.SAXParser: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
ERROR:  'Premature end of file.'
ERROR:  'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Premature end of file.'
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:33 min
[INFO] Finished at: 2015-03-08T11:53:23+01:00
[INFO] Final Memory: 63M/209M
[INFO] ------------------------------------------------------------------------

to reproduce: mvn clean test -Dtest=SCSSLintReportMojoTest

to solve upgrade doxia components to > 1.6

refs:

@mprins mprins added the bug label Mar 8, 2015
@mprins mprins self-assigned this Mar 8, 2015
@mprins mprins added this to the 2.x milestone Mar 8, 2015
@mprins mprins changed the title SAXparser problems/warnings/errors, but build succesful [2.3-SNAPSHOT] SCSSLint: SAXparser problems/warnings/errors, but build succesful [2.3-SNAPSHOT] May 22, 2015
@mprins mprins changed the title SCSSLint: SAXparser problems/warnings/errors, but build succesful [2.3-SNAPSHOT] scss-lint: SAXparser problems/warnings/errors, but build succesful May 28, 2015
mprins added a commit that referenced this issue Jul 6, 2015
This works around the fact that doxia =<1.6 and maven-reporting-impl =< 2.3 include xerces:xercesImpl which conflicts with jre built-in xml libs which causes:
```
Warning:  org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
Compiler warnings:
  WARNING:  'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'
Warning:  org.apache.xerces.parsers.SAXParser: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.
Warning:  org.apache.xerces.parsers.SAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' is not recognized.
```

close #35
@mprins mprins modified the milestones: 2.8-SNAPSHOT, 2.x Jul 6, 2015
@mprins mprins closed this as completed in #58 Jul 6, 2015
@lock
Copy link

lock bot commented Oct 31, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant