> On 17 Feb 2019, at 23:25, Gilles Sadowski <gillese...@gmail.com> wrote:
> 
> Hello.
> 
> Le dim. 17 févr. 2019 à 23:57, Alex Herbert <alex.d.herb...@gmail.com 
> <mailto:alex.d.herb...@gmail.com>> a écrit :
>> 
>> Hi Gilles,
>> 
>> This is related to the fix I made for MathJax. It apparently is not as 
>> simple as I thought, i.e. this was a hidden tag only for JDK 8. This tag is 
>> not officially documented so there is no official solution, only what you 
>> can find on the web.
>> 
>> I had installed openJDK 9 on my linux machine to test building the JMS 
>> modules. I had to remove the --allow-script-in-comments tag to get it to 
>> build the javadocs. So I changed the latest pom.xml for commons-rng-parent 
>> to only add the tag on JDK 1.8. I found that if I had that tag on open JDK 9 
>> the following fails:
>> 
>> mvn -v
>> Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 
>> 2018-06-17T19:33:14+01:00)
>> Maven home: /usr/local/apache-maven-3.5.4
>> Java version: 9-internal, vendor: Oracle Corporation, runtime: 
>> /usr/lib/jvm/java-9-openjdk-amd64
>> Default locale: en_GB, platform encoding: UTF-8
>> OS name: "linux", version: "4.4.0-142-generic", arch: "amd64", family: "unix"
>> 
>> java -version
>> openjdk version "9-internal"
>> OpenJDK Runtime Environment (build 9-internal+0-2016-04-14-195246.buildd.src)
>> OpenJDK 64-Bit Server VM (build 9-internal+0-2016-04-14-195246.buildd.src, 
>> mixed mode)
>> 
>> mvn javadoc:javadoc
>> 
>> Is OK.
>> 
>> mvn javadoc:javadoc -Pjdk8-javadoc
>> 
>> Does NOT work.
>> 
>> I have just tried:
>> 
>> mvn clean site site:stage -Pcommons-rng-examples
>> 
>> This is fails on the client-api module with this weird error running the 
>> findbugs report:
>> 
>> [INFO] Fork Value is true
>>     [java] Exception in thread "main" java.io.IOException: IOException while 
>> scanning codebases
>>     [java]     at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:282)
>>     [java]     at edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:401)
>>     [java]     at edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1187)
>>     [java] Caused by: 
>> edu.umd.cs.findbugs.classfile.ResourceNotFoundException: Resource not found: 
>> java/lang/Object.class
>>     [java]     at 
>> edu.umd.cs.findbugs.classfile.impl.ClassPathImpl.lookupResource(ClassPathImpl.java:164)
>>     [java]     at 
>> edu.umd.cs.findbugs.classfile.impl.ClassPathBuilder.build(ClassPathBuilder.java:282)
>>     [java]     at 
>> edu.umd.cs.findbugs.FindBugs2.buildClassPath(FindBugs2.java:674)
>>     [java]     at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:215)
>>     [java]     ... 2 more
>> 
>> So the I am thinking the jdk9 install I am using is broken and probably too 
>> old to have the hidden --allow-script-in-comments option for javadoc.
>> 
>> You could try running with the 'jdk8-javadoc’ profile on your java 9 and see 
>> if that fixes the problem for you.
>> 
>> Can you let me know what version of java 9 you are using?
> 
> Command
>  $ JAVA_HOME=/usr/lib/jvm/java-9-openjdk-amd64/ mvn
> -Pcommons-rng-examples -Pjdk8-javadoc clean package site site:stage
> works on
> $ /usr/lib/jvm/java-9-openjdk-amd64/bin/java -version
> openjdk version "9-Debian"
> OpenJDK Runtime Environment (build 9-Debian+0-9b181-4bpo91)
> OpenJDK 64-Bit Server VM (build 9-Debian+0-9b181-4bpo91, mixed mode)
> 
> I missed when the "jdk8-javadoc" profile became mandatory.  Is there a
> way to have it activated automatically when necessary (e.g. when compiling
> with a JKD >= 8)?
> 
> Gilles

I’ve removed the linux distribution version of OpenJDK 9 and manually installed 
OpenJDK 9, 10 and 11.

I confirm these versions all require the --allow-script-in-comments option for 
'mvn javadoc:javadoc'. So I’ve reverted the pom.xml to put this back in the 
profile for JDK 1.8+. 

I get a module error when building on OpenJDK 9:

mvn -v
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 
2018-06-17T19:33:14+01:00)
Maven home: /usr/local/apache-maven-3.5.4
Java version: 9, vendor: Oracle Corporation, runtime: /usr/lib/jvm/jdk-9
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "4.4.0-142-generic", arch: "amd64", family: “unix"

mvn clean site site:stage -Pcommons-rng-exampless

[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Commons RNG 1.3-SNAPSHOT .................... SUCCESS [ 13.143 s]
[INFO] Apache Commons RNG Client API ...................... SUCCESS [  8.144 s]
[INFO] Apache Commons RNG Core ............................ SUCCESS [ 19.623 s]
[INFO] Apache Commons RNG Simple .......................... SUCCESS [ 13.773 s]
[INFO] Apache Commons RNG Sampling ........................ SUCCESS [01:07 min]
[INFO] Apache Commons RNG Examples ........................ SUCCESS [  3.871 s]
[INFO] Stress test example ................................ SUCCESS [  6.715 s]
[INFO] Sampling example ................................... SUCCESS [  6.155 s]
[INFO] Quadrature example ................................. SUCCESS [  5.808 s]
[INFO] JMH Benchmark ...................................... SUCCESS [ 22.310 s]
[INFO] JPMS Integration test .............................. SUCCESS [  1.895 s]
[INFO] JPMS module example (library) ...................... FAILURE [  0.559 s]
[INFO] JPMS module example (application) 1.3-SNAPSHOT ..... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:49 min
[INFO] Finished at: 2019-02-18T13:54:01Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-site) on project 
commons-rng-examples-jpms-lib: failed to get report for 
org.apache.maven.plugins:maven-surefire-report-plugin: Failed to execute goal 
org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) 
on project commons-rng-examples-jpms-lib: Compilation failure: Compilation 
failure: 
[ERROR] 
/home/ah403/git/commons-rng/commons-rng-examples/examples-jpms/jpms-lib/src/main/java/module-info.java:[18,36]
 module not found: org.apache.commons.rng.api
[ERROR] 
/home/ah403/git/commons-rng/commons-rng-examples/examples-jpms/jpms-lib/src/main/java/module-info.java:[19,36]
 module not found: org.apache.commons.rng.sampling


I tried mvn 3.5.4 and 3.6.0.

This can be reduced to just running:

mvn compile in commons-rng-examples/examples-jpms

Something about this machine setup does not like the modules setup. I had a dig 
around and thought updating this module definition would work:

module org.apache.commons.rng.examples.jpms.lib {
    requires org.apache.commons.rng;
    requires org.apache.commons.rng.sampling.distribution;
    exports org.apache.commons.rng.examples.jpms.lib;
}

The module currently requires ‘o.a.c.rng.api’ which doesn’t exist and 
‘o.a.c.rng.sampling’ which needs .distribution added to the end. But that made 
no difference.

I am going to try on another machine to get the modules built.

Alex


> 
>> 
>> Alex
>> 
>> 
>>> On 17 Feb 2019, at 22:03, Gilles Sadowski <gillese...@gmail.com> wrote:
>>> 
>>> Hi Alex.
>>> 
>>> I tried to regenerate the site but the build fails:
>>> ---CUT---
>>> [INFO] Reactor Summary:
>>> [INFO]
>>> [INFO] Apache Commons RNG ................................. SUCCESS [ 
>>> 21.050 s]
>>> [INFO] Apache Commons RNG Client API ...................... FAILURE [  
>>> 7.723 s]
>>> [INFO] Apache Commons RNG Core ............................ SKIPPED
>>> [INFO] Apache Commons RNG Simple .......................... SKIPPED
>>> [INFO] Apache Commons RNG Sampling ........................ SKIPPED
>>> [INFO] Apache Commons RNG Examples ........................ SKIPPED
>>> [INFO] Stress test example ................................ SKIPPED
>>> [INFO] Sampling example ................................... SKIPPED
>>> [INFO] Quadrature example ................................. SKIPPED
>>> [INFO] JMH Benchmark ...................................... SKIPPED
>>> [INFO] JPMS Integration test .............................. SKIPPED
>>> [INFO] JPMS module example (library) ...................... SKIPPED
>>> [INFO] JPMS module example (application) .................. SKIPPED
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 29.294 s
>>> [INFO] Finished at: 2019-02-17T22:52:17+01:00
>>> [INFO] Final Memory: 82M/220M
>>> [INFO] 
>>> ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-site)
>>> on project commons-rng-client-api: Error generating
>>> maven-javadoc-plugin:3.0.1:javadoc report:
>>> [ERROR] Exit code: 1 - javadoc: error - option -header contains JavaScript.
>>> [ERROR] Use --allow-script-in-comments to allow use of JavaScript.
>>> [ERROR]
>>> [ERROR] Command line was:
>>> /usr/lib/jvm/java-9-openjdk-amd64/bin/javadoc @options @package
>>> ---CUT---
>>> 
>>> Command line was:
>>> $ JAVA_HOME=/usr/lib/jvm/java-9-openjdk-amd64/ mvn
>>> -Pcommons-rng-examples clean site site:stage
>>> 
>>> Regards,
>>> Gilles
>>> 
>>> P.S. I'd wait for the new RNG implementations to be in "master" before
>>> updating the
>>> live site (so that "current" will refer to "1.3-SNAPSHOT").
>>> 
>>> 
>>> Le dim. 17 févr. 2019 à 16:08, Alex Herbert <alex.d.herb...@gmail.com 
>>> <mailto:alex.d.herb...@gmail.com> <mailto:alex.d.herb...@gmail.com 
>>> <mailto:alex.d.herb...@gmail.com>>> a écrit :
>>>> 
>>>> 
>>>> 
>>>>> On 16 Feb 2019, at 21:31, Gilles Sadowski <gillese...@gmail.com 
>>>>> <mailto:gillese...@gmail.com>> wrote:
>>>>> 
>>>>> Hello.
>>>>> 
>>>>> Le sam. 16 févr. 2019 à 13:12, Alex Herbert <alex.d.herb...@gmail.com 
>>>>> <mailto:alex.d.herb...@gmail.com>> a écrit :
>>>>>> 
>>>>>> The link to the javadoc on the GitHub homepage is broken. I cannot find 
>>>>>> a link to the javadoc from the official commons RNG homepage.
>>>>>> 
>>>>>> I have tried to update the README.md using the commons build plugin. 
>>>>>> Here is a comparison between updated and the original:
>>>>>> 
>>>>>> https://github.com/apache/commons-rng/compare/master...aherbert:update-readme
>>>>>>  
>>>>>> <https://github.com/apache/commons-rng/compare/master...aherbert:update-readme>
>>>>>>  
>>>>>> <https://github.com/apache/commons-rng/compare/master...aherbert:update-readme
>>>>>>  
>>>>>> <https://github.com/apache/commons-rng/compare/master...aherbert:update-readme>>
>>>>>> 
>>>>>> Given the use of sub-modules it appears the output README.md files have 
>>>>>> to be tweaked.
>>>>>> 
>>>>>> The build plugin creates working links for each of the sub-modules to 
>>>>>> javadoc.io <http://javadoc.io/> <http://javadoc.io/ 
>>>>>> <http://javadoc.io/>>.
>>>>> 
>>>>> I don't see those links: the apidocs are hosted on the Apache server:
>>>>>  
>>>>> https://commons.apache.org/proper/commons-rng/commons-rng-core/apidocs/overview-summary.html
>>>>>  
>>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-core/apidocs/overview-summary.html>
>>>>>  
>>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-core/apidocs/overview-summary.html
>>>>>  
>>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-core/apidocs/overview-summary.html>>
>>>>>  
>>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-core/apidocs/overview-summary.html
>>>>>  
>>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-core/apidocs/overview-summary.html>
>>>>>  
>>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-core/apidocs/overview-summary.html
>>>>>  
>>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-core/apidocs/overview-summary.html>>>
>>>> 
>>>> The javadoc.io <http://javadoc.io/> <http://javadoc.io/ 
>>>> <http://javadoc.io/>> <http://javadoc.io/ <http://javadoc.io/> 
>>>> <http://javadoc.io/ <http://javadoc.io/>>> badges are put at the top of 
>>>> the README.md by the latest commons build plugin. It seems that when you 
>>>> visit javadoc.io <http://javadoc.io/><http://javadoc.io/ 
>>>> <http://javadoc.io/>> <http://javadoc.io/ <http://javadoc.io/> 
>>>> <http://javadoc.io/ <http://javadoc.io/>>> at the link this prompts them 
>>>> to get the public release and then create the javadoc pages on this site. 
>>>> All the badges I have tested do eventually build and show javadoc.
>>>> 
>>>> The latest README.md updates the badges so that:
>>>> 
>>>> - build status badge drops the '?branch=master’ parameter
>>>> - coverage badge drops the '?branch=master’ parameter
>>>> - maven central badge is unchanged *
>>>> - The licence badge is dropped
>>>> - The java docs badge is added to refer to javadoc.io <http://javadoc.io/> 
>>>> <http://javadoc.io/ <http://javadoc.io/>> <http://javadoc.io/ 
>>>> <http://javadoc.io/> <http://javadoc.io/ <http://javadoc.io/>>>
>>>> 
>>>> * This badge used the artefact name so has to be updated for the main 
>>>> README.md page as that refers to commons-rng-parent. All the sub-modules 
>>>> are OK. I just pointed it to commons-ring-simple.
>>>> 
>>>> So should the javadoc.io <http://javadoc.io/> <http://javadoc.io/ 
>>>> <http://javadoc.io/>> <http://javadoc.io/ <http://javadoc.io/> 
>>>> <http://javadoc.io/ <http://javadoc.io/>>> badge be dropped and the 
>>>> licence badge reinstated manually?
>>>> 
>>>>> 
>>>>>> However should there be a master javadoc with bundles for each module 
>>>>>> hosted somewhere on https://commons.apache.org/proper/commons-rng/ 
>>>>>> <https://commons.apache.org/proper/commons-rng/> 
>>>>>> <https://commons.apache.org/proper/commons-rng/ 
>>>>>> <https://commons.apache.org/proper/commons-rng/>> 
>>>>>> <https://commons.apache.org/proper/commons-rng/ 
>>>>>> <https://commons.apache.org/proper/commons-rng/> 
>>>>>> <https://commons.apache.org/proper/commons-rng/ 
>>>>>> <https://commons.apache.org/proper/commons-rng/>>>?
>>>>> 
>>>>> It doesn't bother me that there is no aggregate Javadoc; the modules can 
>>>>> be
>>>>> seen as separate libraries with different target audiences.
>>>>> The broken link in README.md should be replaced by links to the each of 
>>>>> the
>>>>> modules.
>>>>> 
>>>>> Regards,
>>>>> Gilles
>>>> 
>>>> OK. I have tweaked the output from the commons build plugin for the main 
>>>> page to add javadoc links for client-api, core, simple and sampling.
>>>> 
>>>> I updated all the other README.md files to:
>>>> 
>>>> - manually fix the javadoc link in the modules with javadoc *
>>>> - not refer to the module name but ‘Apache Commons RNG’ for the donate 
>>>> link.
>>>> - use <commons.componentid>rng</commons.componentid> as the example 
>>>> property
>>>> - drop the RNG from the auto-generated [Apache Commons RNG 
>>>> homepage](https://commons.apache.org/ <https://commons.apache.org/> 
>>>> <https://commons.apache.org/ <https://commons.apache.org/>>)
>>>> 
>>>> * The javadoc here:
>>>> https://commons.apache.org/proper/commons-rng/commons-rng-examples/apidocs/
>>>>  
>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-examples/apidocs/>
>>>>  
>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-examples/apidocs/
>>>>  
>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-examples/apidocs/>>
>>>>  
>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-examples/apidocs/
>>>>  
>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-examples/apidocs/>
>>>>  
>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-examples/apidocs/
>>>>  
>>>> <https://commons.apache.org/proper/commons-rng/commons-rng-examples/apidocs/>>>
>>>> Is for 1.1-SNAPSHOT. Some modules are missing (e.g. 
>>>> commons-ring-examples-quadrature).
>>>> 
>>>> So the 1.2 release did not deploy apidocs for commons-examples? I do not 
>>>> know how to browse the hosting server to check. If missing then the 
>>>> apidocs should be fixed (uploaded). If it is not official to host these I 
>>>> can update the README.md to remove the browse link.
>>>> 
>>>> You can see the latest comparison with what was previously in the README 
>>>> at this link:
>>>> 
>>>> https://github.com/apache/commons-rng/compare/master...aherbert:update-readme
>>>>  
>>>> <https://github.com/apache/commons-rng/compare/master...aherbert:update-readme>
>>>>  
>>>> <https://github.com/apache/commons-rng/compare/master...aherbert:update-readme
>>>>  
>>>> <https://github.com/apache/commons-rng/compare/master...aherbert:update-readme>>
>>>>  
>>>> <https://github.com/apache/commons-rng/compare/master...aherbert:update-readme
>>>>  
>>>> <https://github.com/apache/commons-rng/compare/master...aherbert:update-readme>
>>>>  
>>>> <https://github.com/apache/commons-rng/compare/master...aherbert:update-readme
>>>>  
>>>> <https://github.com/apache/commons-rng/compare/master...aherbert:update-readme>>>
>>>> 
>>>> You can view the pages here:
>>>> 
>>>> https://github.com/aherbert/commons-rng/tree/update-readme 
>>>> <https://github.com/aherbert/commons-rng/tree/update-readme> 
>>>> <https://github.com/aherbert/commons-rng/tree/update-readme 
>>>> <https://github.com/aherbert/commons-rng/tree/update-readme>> 
>>>> <https://github.com/aherbert/commons-rng/tree/update-readme 
>>>> <https://github.com/aherbert/commons-rng/tree/update-readme><https://github.com/aherbert/commons-rng/tree/update-readme
>>>>  <https://github.com/aherbert/commons-rng/tree/update-readme>>>
>>>> 
>>>> I think all the links work in all the modules except the missing javadocs 
>>>> for the commons-examples modules.
>>>> 
>>>> The badges, [Contributing], [License] and [Additional Resource] sections 
>>>> are all now up-to-date with the latest from the commons build plugin. The 
>>>> latest description from the pom.xml is also included.
>>>> 
>>>> 
>>>> 
>>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org 
>>> <mailto:dev-unsubscr...@commons.apache.org> 
>>> <mailto:dev-unsubscr...@commons.apache.org 
>>> <mailto:dev-unsubscr...@commons.apache.org>>
>>> For additional commands, e-mail: dev-h...@commons.apache.org 
>>> <mailto:dev-h...@commons.apache.org> <mailto:dev-h...@commons.apache.org 
>>> <mailto:dev-h...@commons.apache.org>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org 
> <mailto:dev-unsubscr...@commons.apache.org>
> For additional commands, e-mail: dev-h...@commons.apache.org 
> <mailto:dev-h...@commons.apache.org>

Reply via email to