Closed tlaukkan closed 7 years ago
This seems to be a workaround:
compile ('lc.kra.system:system-hook:3.1') {
exclude group: 'xerces', module: 'xercesImpl'
}
Hello Tommi, fist of all, thanks a lot for your comment. Your error really wonders me, a) because I can‘t reproduce the error on my machine and b) besides an Apache component beeing used as a build evironment (Apache Maven), there should be no other Apache dependency. The sys-hook itself doesn‘t have any dependencies.
Could you please elaborate more in detail, which commands you try to execute and which build environment you try to run the code on? Thanks.
Hi
Thank you for fast response Kristian.
Just adding the dependency to a new project and adding the following line to main method causes the output when running the application:
val keyboard = GlobalKeyboardHook(true) // use false here to switch to hook instead of raw input
The compile ('lc.kra.system:system-hook:3.1') dependency adds the following dependencies to project dependency list:
lc.kra.system:system-hook:3.1 ant-contrib:cpptasks:1.0b5 ant:ant:1.6.5 xerces:xercesImpl:2.8.1 xml-apis:xml-apis:1.3.03 lc.kra.system:system-hook:3.1 ant-contrib:cpptasks:1.0b5 ant:ant:1.6.5 xerces:xercesImpl:2.8.1 xml-apis:xml-apis:1.3.03 ant-contrib:cpptasks:1.0b5 ant:ant:1.6.5 xerces:xercesImpl:2.8.1 xml-apis:xml-apis:1.3.03
-Tommi
These dependencies are probably transient dependencies from the only dependency in system-hook pom.xml:
Hi Tommi. Hmm, you are right. By the look of it, I dislike two things about the current way the POM file looks: 1) the ant-contrib dependency barely gets maintained / can be considered unmaintained, as the last version was released 9 years ago and 2) having the ant-contrib as a
Let me see if I can update to a newer dependency and find another way of including it into the ant build task.
Removed dependency to cpptask and switched to much better maintained nar-maven-plugin with d556894789ffa16058d7c387c9617425055f2b36 (version 3.2). Thanks for your suggestion! 👍
It would be nice to disable these from console:
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.' Compiler warnings: WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' 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.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.' Compiler warnings: WARNING: 'org.apache.xerces.jaxp.SAXParserImpl: Property 'http://javax.xml.XMLConstants/property/accessExternalDTD' is not recognized.'