[ 
https://issues.apache.org/jira/browse/OOZIE-2487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15494976#comment-15494976
 ] 

Robert Kanter commented on OOZIE-2487:
--------------------------------------

I think the original problem with {{UUIDService}} must have been fixed at some 
point because I'm able to build Oozie with Java 8.  However, if I run {{mvn 
clean javadoc:javadoc -DskipTests}} directly, it fails with a bunch of errors 
and doesn't get very far, so I bet there's more than just this:
{noformat}
[INFO] Apache Oozie Client ............................... SUCCESS [4.013s]
[INFO] Apache Oozie Share Lib Oozie ...................... FAILURE [1.480s]
[INFO] Apache Oozie Share Lib HCatalog ................... SKIPPED
[INFO] Apache Oozie Share Lib Distcp ..................... SKIPPED
[INFO] Apache Oozie Core ................................. SKIPPED
[INFO] Apache Oozie Share Lib Streaming .................. SKIPPED
[INFO] Apache Oozie Share Lib Pig ........................ SKIPPED
[INFO] Apache Oozie Share Lib Hive ....................... SKIPPED
[INFO] Apache Oozie Share Lib Hive 2 ..................... SKIPPED
[INFO] Apache Oozie Share Lib Sqoop ...................... SKIPPED
[INFO] Apache Oozie Examples ............................. SKIPPED
[INFO] Apache Oozie Share Lib Spark ...................... SKIPPED
[INFO] Apache Oozie Share Lib ............................ SKIPPED
[INFO] Apache Oozie Docs ................................. SKIPPED
[INFO] Apache Oozie WebApp ............................... SKIPPED
[INFO] Apache Oozie Tools ................................ SKIPPED
[INFO] Apache Oozie MiniOozie ............................ SKIPPED
[INFO] Apache Oozie Distro ............................... SKIPPED
[INFO] Apache Oozie ZooKeeper Security Tests ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.667s
[INFO] Finished at: Thu Sep 15 17:36:18 PDT 2016
[INFO] Final Memory: 26M/437M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-javadoc-plugin:2.10.3:javadoc (default-cli) on 
project oozie-sharelib-oozie: An error has occurred in JavaDocs report 
generation:
[ERROR] Exit code: 1 - Picked up _JAVA_OPTIONS: -Djava.awt.headless=true
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherURIHandler.java:37:
 warning: no description for @throws
[ERROR] * @throws LauncherException
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherURIHandler.java:49:
 warning: no description for @throws
[ERROR] * @throws LauncherException
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/JavaMain.java:32:
 warning: no description for @throws
[ERROR] * @throws Exception
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherMain.java:142:
 warning: no @param for env
[ERROR] protected static String getFilePathFromEnv(String env) {
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherMain.java:142:
 warning: no @return
[ERROR] protected static String getFilePathFromEnv(String env) {
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherMain.java:161:
 warning: no description for @throws
[ERROR] * @throws OozieActionConfiguratorException
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherMain.java:185:
 warning: no description for @throws
[ERROR] * @throws IOException
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherMain.java:222:
 warning: no description for @throws
[ERROR] * @throws IOException
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherURIHandlerFactory.java:36:
 warning: no description for @param
[ERROR] * @param uri
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/LauncherURIHandlerFactory.java:38:
 warning: no description for @throws
[ERROR] * @throws LauncherException
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/OozieActionConfigurator.java:34:
 warning: no description for @throws
[ERROR] * @throws OozieActionConfiguratorException
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/OozieLauncherOutputCommitter.java:40:
 error: @param name not found
[ERROR] * @param context the task's context
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/ShellMain.java:58:
 warning: no description for @throws
[ERROR] * @throws Exception
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/ShellMain.java:343:
 warning: no description for @param
[ERROR] * @param actionConf
[ERROR] ^
[ERROR] 
/Users/rkanter/dev/oozie-git/sharelib/oozie/src/main/java/org/apache/oozie/action/hadoop/ShellMain.java:359:
 warning: no description for @param
[ERROR] * @param actionConf
[ERROR] ^
[ERROR]
[ERROR] Command line was: 
/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home/jre/../bin/javadoc
 @options @packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in 
'/Users/rkanter/dev/oozie-git/sharelib/oozie/target/site/apidocs' dir.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :oozie-sharelib-oozie
{noformat}

> Unable to build distro on Java 8 (on Mac)
> -----------------------------------------
>
>                 Key: OOZIE-2487
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2487
>             Project: Oozie
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 4.3.0
>         Environment: Mac OS X (10.10.5), Java 1.8.0_66
>            Reporter: Rajendra Patil
>            Priority: Trivial
>              Labels: java8
>             Fix For: 4.3.0
>
>         Attachments: OOZIE-2487-1.patch, OOZIE-2487-2.patch
>
>
> While looking at another issue, I came across this. When I cloned latest 
> oozie and tried to build distro using `./bin/mkdistro.sh` I found that the 
> build failed with following error. 
> -------
> ....
> .../oozie/core/src/main/java/org/apache/oozie/service/UUIDService.java:114: 
> error: reference not found
> [ERROR] * systemId is the value defined in the {@link #CONF_SYSTEM_ID} 
> configuration property.
> ...
> -------
> The error seems to be due to the Java 8 feature (DocLint) that checks for 
> errors in Java Docs strictly. The solution would be create a Java 8 specific 
> profile to pass '-Xdoclint:none' to deactivate it. Having this flag for older 
> java version fails to it has to be only for Java 8 using specific profile.
> I will create a patch for the same.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to