[
https://issues.apache.org/jira/browse/DOXIASITETOOLS-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15646985#comment-15646985
]
Michael Osipov commented on DOXIASITETOOLS-171:
-----------------------------------------------
The first issues were MSHARED-432 and MSHARED-191. I had also a discussion with
the reporters how to properly interprete the specification and the constraints
by WebLogic. {{ArtifactVersion}} does not have a base version without snapshot
or qualifiers. One might of course argue, why you need specification changes
for three or four (which we do not support actually) places. Two are shall be
enough. I have no opinion here. Though, I do think that in our case, you are
really after the implemenation version not the specification version since we
do not strictly adhere to semver. I do not think that this is too late, we
still can fix this because the specification allows {{int.(int)*}}. WDYT?
See the change
[here|http://svn.apache.org/viewvc/maven/shared/trunk/maven-archiver/src/main/java/org/apache/maven/archiver/MavenArchiver.java?r1=1722470&r2=1722469&pathrev=1722470].
> DefaultSiteRenderer must use Package#getImplementationVersion to check for
> Doxia Sitetools prerequisite
> -------------------------------------------------------------------------------------------------------
>
> Key: DOXIASITETOOLS-171
> URL: https://issues.apache.org/jira/browse/DOXIASITETOOLS-171
> Project: Maven Doxia Sitetools
> Issue Type: Bug
> Components: Site renderer
> Affects Versions: 1.7.3
> Reporter: Michael Osipov
> Assignee: Michael Osipov
> Fix For: 1.7.4
>
>
> Issue raised on the [mailing
> list|https://mail-archives.apache.org/mod_mbox/maven-dev/201611.mbox/%3CCAArU9iZJLoscR0VQw7%2BpTcXUwHLwjF%3Dva8MNLN-rn%2BEuMQGfCQ%40mail.gmail.com%3E]
> with a [sample project|https://github.com/jieryn/fluido-fail] issue has been
> reproduced.
> The reason is that the prerequisite for the Sitetools are validated against:
> {code:java}
> Package p = DefaultSiteRenderer.class.getPackage();
> String current = ( p == null ) ? null : p.getSpecificationVersion();
> {code}
> but the specification for the value of {{SpecificationVersion}} is
> {{major.minor}}. This was broken for some years and finally fixed with
> MSHARED-191. This likely creeped into the module.
> Proposed patch:
> {code}
> Index: DefaultSiteRenderer.java
> ===================================================================
> --- DefaultSiteRenderer.java (revision 1768577)
> +++ DefaultSiteRenderer.java (working copy)
> @@ -803,7 +803,7 @@
> skinModel.getPrerequisites() == null ? null :
> skinModel.getPrerequisites().getDoxiaSitetools();
>
> Package p = DefaultSiteRenderer.class.getPackage();
> - String current = ( p == null ) ? null :
> p.getSpecificationVersion();
> + String current = ( p == null ) ? null :
> p.getImplementationVersion();
>
> if ( StringUtils.isNotBlank( toolsPrerequisite ) && (
> current != null )
> && !matchVersion( current, toolsPrerequisite ) )
> {code}
> works flawlessly with the sample project.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)