[
https://issues.apache.org/jira/browse/DOXIA-618?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17260117#comment-17260117
]
ASF GitHub Bot commented on DOXIA-618:
--------------------------------------
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]
> doxia-module-markdown: Reincorporate maven-site-plugin's Doxia-specific
> integration tests
> -----------------------------------------------------------------------------------------
>
> Key: DOXIA-618
> URL: https://issues.apache.org/jira/browse/DOXIA-618
> Project: Maven Doxia
> Issue Type: Task
> Components: Module - Markdown
> Reporter: Bertrand Martin
> Priority: Major
>
> h1. Specification
> The below Doxia issues have integration tests in *maven-site_plugin*:
> * DOXIA-473
> * DOXIA-597
> * DOXIA-571
> * DOXIA-535
> These tests can be reincorporated into *doxia-module-markdown* which has its
> own integration tests that run in *maven-site-plugin*.
> h1. Doc
> None
> h1. Test
> Integration tests must pass.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)