[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2019-06-17 Thread Alex D Herbert (JIRA)


[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16865619#comment-16865619
 ] 

Alex D Herbert commented on COMMONSSITE-100:


The change was to {{src/site/site.xml}}. The pages where the MathJax script is 
not present are all the pages generated by the site plugin, e.g. the userguide 
pages.

The pom file is OK. It has settings for MathJax for the javadoc pages and they 
work fine.

I do not understand why the site plugin is ignoring the mathjax script 
inclusion. According to the documentation it should work. 

This is only an issue if some pages on the site have embedded equations. 
Searching in the userguide xml files finds nothing from:
{noformat}
`
$$
{
{noformat}
I found this in stat.xml for an embedded equation:
{noformat}
\(
{noformat}
I can confirm that locally the stat.html page of the user guide has not 
rendered this equation. It is in section 1.8:
{noformat}
\(D_n=\sup_x |F_n(x)-F(x)|\), where \(F\) is the expected distribution and
\(F_n\) is the empirical distribution of the \(n\) sample data points.  Both
one-sample tests against a RealDistribution and two-sample tests
(comparing two empirical distributions) are supported.  For one-sample tests,
the distribution of \(D_n\) is estimated using the method in 
{noformat}

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>Priority: Major
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2019-06-17 Thread Gilles (JIRA)


[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16865597#comment-16865597
 ] 

Gilles commented on COMMONSSITE-100:


bq. the mathjax script does not appear in the  tag of the generated pages

Yes, now that you mention it, I recall having seen it when I first noticed the 
problem (months ago).
I wonder whether it wouldn't be worth to try and completely overwrite the "CM" 
POM. \[And just add back the list of contributors\]. (?)

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>Priority: Major
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2019-06-17 Thread Alex D Herbert (JIRA)


[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16865527#comment-16865527
 ] 

Alex D Herbert commented on COMMONSSITE-100:


I ran {{mvn -X -e clean site}}. The final statement before it blows up is:
{noformat}
[DEBUG] Reading site descriptor from 
/home/ah403/git/commons-math/src/site/site.xml

...

Caused by: org.codehaus.plexus.util.xml.pull.XmlPullParserException: TEXT must 
be immediately followed by END_TAG and not START_TAG (position: START_TAG seen 
...thjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">... 
@86:122)
{noformat}
So looking at the difference between commons-math and commons-rng (where this 
works) is that the site.xml uses a CDATA tag around the mathjax script in 
commons-rng:
{noformat}

  http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";>
  

{noformat}
verses:
{noformat}

  

{noformat}
This is the documented way to [inject xhtml into 
|https://maven.apache.org/plugins/maven-site-plugin/examples/sitedescriptor.html#Inject_xhtml_into_.3Chead.3E]
 since version 3.5. This corresponds to the problem starting with commons 
parent 43 which changed 3.4 -> 3.6.

I've pushed a commit to add this change to commons-math.

Strangely even though the site now builds the mathjax script does not appear in 
the  tag of the generated pages. This used to happen as the live website 
for 3.6.1 [http://commons.apache.org/proper/commons-math/] contains the mathjax 
sccript. But my local site build for CM4 does not.


 

 

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>Priority: Major
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2019-06-16 Thread Gilles (JIRA)


[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16865184#comment-16865184
 ] 

Gilles commented on COMMONSSITE-100:


Issue still exists on my machine with CP 48 (as of commit 
418f2eb7f469c80b0e125377b1669f9be068f6ff on "master").

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>Priority: Major
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2018-01-11 Thread Gilles (JIRA)

[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16322403#comment-16322403
 ] 

Gilles commented on COMMONSSITE-100:


Still, MathJax does not work anymore...

Comparing pages between the live site and the latest generated ones; this line 
is missing from the latter:
{code:html}
http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML";>
{code}

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2018-01-11 Thread Gilles (JIRA)

[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16322243#comment-16322243
 ] 

Gilles commented on COMMONSSITE-100:


Fixed by setting version to 2.8: 
https://github.com/mojohaus/clirr-maven-plugin/issues/7

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2018-01-11 Thread Gilles (JIRA)

[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=1635#comment-1635
 ] 

Gilles commented on COMMONSSITE-100:


Problem is caused by "clirr"; here is the output when using the {{-e}} switch:
{noformat}
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution 
default-site of goal org.apache.maven.plugins:maven-site-plugin:3.7:site failed.
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
Caused by: java.lang.NullPointerException
at 
org.codehaus.mojo.clirr.ClirrReportGenerator$ApiChangeComparator.compare(ClirrReportGenerator.java:64)
at 
org.codehaus.mojo.clirr.ClirrReportGenerator$ApiChangeComparator.compare(ClirrReportGenerator.java:57)
at java.util.TimSort.binarySort(TimSort.java:296)
at java.util.TimSort.sort(TimSort.java:221)
at java.util.Arrays.sort(Arrays.java:1438)
at java.util.List.sort(List.java:478)
at java.util.Collections.sort(Collections.java:175)
at 
org.codehaus.mojo.clirr.ClirrReportGenerator.doApiChangesTable(ClirrReportGenerator.java:600)
at 
org.codehaus.mojo.clirr.ClirrReportGenerator.doApiChanges(ClirrReportGenerator.java:453)
at 
org.codehaus.mojo.clirr.ClirrReportGenerator.generateReport(ClirrReportGenerator.java:186)
at org.codehaus.mojo.clirr.ClirrReport.doReport(ClirrReport.java:316)
at org.codehaus.mojo.clirr.ClirrReport.generate(ClirrReport.java:227)
at org.codehaus.mojo.clirr.ClirrReport.generate(ClirrReport.java:363)
at 
org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:239)
at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:349)
at 
org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:184)
at 
org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:133)
at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
... 21 more
{noformat}


> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2018-01-11 Thread Gilles (JIRA)

[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16322218#comment-16322218
 ] 

Gilles commented on COMMONSSITE-100:


As of now (commit 5de2d1af79fabca56b5fa8fca159938fa023ae6a)
{noformat}
$ mvn clean site
{noformat}
fails.
Excerpt of console output:
{noformat}
[...]
[INFO] 
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Commons RNG . SUCCESS [ 21.958 s]
[INFO] Apache Commons RNG Client API .. SUCCESS [ 17.909 s]
[INFO] Apache Commons RNG Core  SUCCESS [ 29.075 s]
[INFO] Apache Commons RNG Simple .. SUCCESS [ 23.959 s]
[INFO] Apache Commons RNG Sampling  FAILURE [01:14 min]
[INFO] Apache Commons RNG JMH . SKIPPED
[INFO] 
[INFO] BUILD FAILURE
[INFO] 
[INFO] Total time: 02:47 min
[INFO] Finished at: 2018-01-11T13:52:12+01:00
[INFO] Final Memory: 92M/850M
[INFO] 
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-site-plugin:3.7:site (default-site) on project 
commons-rng-sampling: Execution default-site of goal 
org.apache.maven.plugins:maven-site-plugin:3.7:site failed. 
NullPointerException -> [Help 1]
[...]
{noformat}


> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2018-01-10 Thread Gary Gregory (JIRA)

[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16320574#comment-16320574
 ] 

Gary Gregory commented on COMMONSSITE-100:
--

Ah, crud, that new maven site plugin needs to be wrangled!

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2018-01-08 Thread Gary Gregory (JIRA)

[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16317468#comment-16317468
 ] 

Gary Gregory commented on COMMONSSITE-100:
--

Here is the XML comment in the commons-parent POM for version 42:
{quote}
- maven-site-plugin 3.4 -> 3.6 (for migrating from 3.4 to 3.5.1, see 
https://maven.apache.org/components/plugins/maven-site-plugin/migrate.html)
{quote}

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2018-01-08 Thread Sebb (JIRA)

[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16317429#comment-16317429
 ] 

Sebb commented on COMMONSSITE-100:
--

I just tried with CP 42 and that fails as well.
CP 41 seems OK.

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2018-01-08 Thread Gary Gregory (JIRA)

[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16317411#comment-16317411
 ] 

Gary Gregory commented on COMMONSSITE-100:
--

I wonder if this is a case where the site.xml file needs to be turned into a VM 
template. 

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2018-01-08 Thread Gilles (JIRA)

[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16317156#comment-16317156
 ] 

Gilles commented on COMMONSSITE-100:


bq. What is the failure message?

{noformat}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-site-plugin:3.7:site (default-site) on project 
commons-rng-parent: SiteToolException: Error parsing site descriptor: TEXT must 
be immediately followed by END_TAG and not START_TAG (position: START_TAG seen 
...thjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">... 
@42:122) -> [Help 1]
{noformat}

bq. What component(s) does it affect?

Commons RNG
IIRC, it was the same behaviour that prevent usage of CP 42 for Commons RNG.

This is the excerpt of  the POM that causes the issue:
{noformat}
  -Xdoclint:all --allow-script-in-comments -header 
'script type="text/javascript" 
src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"/script;'
{noformat}

bq. It's not a blocker

?
\[It blocks use of CP 43...\]

bq. use of CP 43 is optional

Well, this also true for . ;)


> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2018-01-08 Thread Sebb (JIRA)

[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16317109#comment-16317109
 ] 

Sebb commented on COMMONSSITE-100:
--

[It's not a blocker, because use of CP 43 is optional]

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)


[jira] [Commented] (COMMONSSITE-100) "mvn site" fails with commons-parent 43

2018-01-08 Thread Sebb (JIRA)

[ 
https://issues.apache.org/jira/browse/COMMONSSITE-100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16317107#comment-16317107
 ] 

Sebb commented on COMMONSSITE-100:
--

What is the failure message?
What component(s) does it affect?

> "mvn site" fails with commons-parent 43
> ---
>
> Key: COMMONSSITE-100
> URL: https://issues.apache.org/jira/browse/COMMONSSITE-100
> Project: Commons All
>  Issue Type: Bug
>  Components: Commons Parent Pom
>Reporter: Gilles
>Priority: Blocker
>
> See [this post|http://markmail.org/message/zgfb5h774aigatx2].



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)