bertysentry commented on pull request #52: URL: https://github.com/apache/maven-doxia/pull/52#issuecomment-755782224
Builds have been failing on JDK7 since this commit: [b55285c](https://github.com/apache/maven-doxia/commit/b55285cada6195ca227a21da0168462addbac6de#diff-58b75a6a6d67dfd731133d8b93826810ccf10d33637b4305483ac8b6ffd320ed) There are 2 error messages. ## First error: ``` org.codehaus.plexus.component.repository.exception.ComponentLookupException: Unable to lookup component 'org.apache.maven.doxia.parser.Parser', it could not be started. role: org.apache.maven.doxia.parser.Parser roleHint: markdown classRealm: plexus.core ----------------------------------------------------- realm = plexus.core strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy Number of foreign imports: 0 ----------------------------------------------------- ``` I really don't see what could have triggered this problem. It must be either in [MarkdownParser.java](https://github.com/apache/maven-doxia/blob/master/doxia-modules/doxia-module-markdown/src/main/java/org/apache/maven/doxia/module/markdown/MarkdownParser.java) or [MarkdownParserTest.java](https://github.com/apache/maven-doxia/blob/master/doxia-modules/doxia-module-markdown/src/test/java/org/apache/maven/doxia/module/markdown/MarkdownParserTest.java) But since I haven't touched the component declaration, I don't understand what is wrong here. ## 2nd error message ``` at org.apache.maven.doxia.module.markdown.MarkdownParserTest.setUp(MarkdownParserTest.java:58) Caused by: org.codehaus.plexus.component.repository.exception.ComponentLifecycleException: Error constructing component role: 'org.apache.maven.doxia.parser.Parser', implementation: 'org.apache.maven.doxia.module.markdown.MarkdownParser', role hint: 'markdown' at org.apache.maven.doxia.module.markdown.MarkdownParserTest.setUp(MarkdownParserTest.java:58) Caused by: java.lang.ExceptionInInitializerError at org.apache.maven.doxia.module.markdown.MarkdownParserTest.setUp(MarkdownParserTest.java:58) Caused by: java.util.regex.PatternSyntaxException: Illegal/unsupported escape sequence near index 97 \A^\s*(?:title|author|date|address|affiliation|copyright|email|keywords|language|phone|subtitle)\h*:\h*\V*\h*$\v+(?:^\h*[^:\v]+\h*:\h*\V*\h*$\v+)* ^ at org.apache.maven.doxia.module.markdown.MarkdownParserTest.setUp(MarkdownParserTest.java:58) ``` This one I understand. The `\h` escape sequence in Regex appears to be not supported in Java 7, unfortunately. So, this needs to be fixed in a separate issue. Sorry about that! ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
