You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2023/04/14 12:21:00 UTC

[jira] [Commented] (PHOENIX-6922) Javadoc failure while building connectors with Java 11

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

Istvan Toth commented on PHOENIX-6922:
--------------------------------------

The problem is that javadoc fails on the first import statement that refers to a scala class.
Xdoclint:none doesn't help.

This is a major headache.

I gat as far as being able to generate the javadoc if I add  (the resolved) ${basedir}/target/classes directory to the -classpath in the generated target/apidocs/options file, and run target/apidocs/javadoc.sh manually.

Howerver, I couldn't find a way to manipulate the -classpath option generated by the javadoc plugin to do this from within maven.

> Javadoc failure while building connectors with Java 11
> ------------------------------------------------------
>
>                 Key: PHOENIX-6922
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6922
>             Project: Phoenix
>          Issue Type: Bug
>          Components: connectors, spark-connector
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Major
>
> {noformat}
> mvn clean verify -am -pl phoenix5-spark3-it/ -Dscala-tests-enabled
> ...
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.0.1:jar (attach-javadocs) on project phoenix5-spark3: MavenReportException: Error while generating Javadoc: 
> [ERROR] Exit code: 1 - /home/stoty/workspaces/apache-phoenix/phoenix-connectors/phoenix5-spark3/src/main/java/org/apache/phoenix/spark/sql/connector/PhoenixDataSource.java:22: error: cannot find symbol
> [ERROR] import org.apache.phoenix.spark.SparkSchemaUtil;
> [ERROR]                                ^
> [ERROR]   symbol:   class SparkSchemaUtil
> [ERROR]   location: package org.apache.phoenix.spark
> [ERROR] /home/stoty/workspaces/apache-phoenix/phoenix-connectors/phoenix5-spark3/src/main/java/org/apache/phoenix/spark/sql/connector/reader/PhoenixPartitionReader.java:56: error: cannot find symbol
> [ERROR] import org.apache.spark.sql.execution.datasources.SparkJdbcUtil;
> [ERROR]                                                  ^
> ...{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)