On Thu, May 9, 2019 at 4:26 AM Alex Herbert <alex.d.herb...@gmail.com> wrote:
> You have to run Maven from the appropriate sub-directory. Your screenshot > on Slack shows you are in the top level commons-rng directory: > > $ cd commons-rng-examples/examples-jmh > $ mvn javadoc:javadoc > > That should work. > > It did! Thank you ! > The JMH tutorial requires you to download JMH from its own source > repository. They use Mercurial (an alternative source control system from > git). This is the ‘hg’ command (Mercury is element Hg) in the list of > instructions I sent. > > Try running through them step-by-step. It should work as these are the > commands that I used to get it running. > > Turned out I was building in a wrong directory. I changed the directories and tried building the JMH project in order to go through the tutorials using mvn clean install. I got a build failure. The error report is as follows : [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.0-M1:jar (attach-javadoc) on project jmh-samples: MavenReportException: Error while generating Javadoc: [ERROR] Exit code: 1 - javadoc: error - The code being documented uses modules but the packages defined in http://docs.oracle.com/javase/7/docs/api/ are in the unnamed module. [ERROR] [ERROR] Command line was: "C:\Program Files\Java\jdk-11.0.2\bin\javadoc.exe" @options @packages [ERROR] [ERROR] Refer to the generated Javadoc files in 'C:\Users\abhi1\Documents\GitHub\commons-rng\jmh\jmh-samples\target\apidocs' dir. > Alex > Regards, Abhishek