jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Ryan (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OAK-8815) Javadoc build fails if using Java 11
Date Tue, 03 Dec 2019 18:10:00 GMT

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

Matt Ryan commented on OAK-8815:
--------------------------------

On an updated SVN (r1870758), I ran {{mvn clean install -DskipTests}} to do a full build of
all of Oak, and then ran {{mvn clean install -Pdoc -pl :oak-doc-railroad-macro}}, {{mvn clean
-Pdoc}}, and {{mvn site -Pdoc}} in sequence as described in the {{oak-doc}} README.md.  All
of these worked successfully.

I then ran {{mvn site -Pjavadoc}}.  I got error output like the following:
{noformat}
[INFO] Jackrabbit Oak ..................................... FAILURE [01:48 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  02:01 min
[INFO] Finished at: 2019-12-03T09:44:30-07:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.1.1:aggregate
(aggregate) on project jackrabbit-oak: An error has occurred in Javadoc report generation:
[ERROR] Exit code: 1 - /Users/maryan/svn/oak/trunk/oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/principal/GroupPrincipals.java:20:
warning: [removal] Group in java.security.acl has been deprecated and marked for removal
[ERROR] import java.security.acl.Group;
[ERROR]                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/principal/PrincipalProvider.java:20:
warning: [removal] Group in java.security.acl has been deprecated and marked for removal
[ERROR] import java.security.acl.Group;
[ERROR]                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/principal/GroupPrincipalWrapper.java:20:
warning: [removal] Group in java.security.acl has been deprecated and marked for removal
[ERROR] import java.security.acl.Group;
[ERROR]                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/principal/EmptyPrincipalProvider.java:20:
warning: [removal] Group in java.security.acl has been deprecated and marked for removal
[ERROR] import java.security.acl.Group;
[ERROR]                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/principal/EveryonePrincipal.java:20:
warning: [removal] Group in java.security.acl has been deprecated and marked for removal
[ERROR] import java.security.acl.Group;
[ERROR]                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/principal/CompositePrincipalProvider.java:20:
warning: [removal] Group in java.security.acl has been deprecated and marked for removal
[ERROR] import java.security.acl.Group;
[ERROR]                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositoryUpgrade.java:144:
error: cannot find symbol
[ERROR] import org.apache.lucene.index.TermDocs;
[ERROR]                               ^
[ERROR]   symbol:   class TermDocs
[ERROR]   location: package org.apache.lucene.index
[ERROR] /Users/maryan/svn/oak/trunk/oak-upgrade/src/main/java/org/apache/jackrabbit/oak/upgrade/RepositoryUpgrade.java:145:
error: cannot find symbol
[ERROR] import org.apache.lucene.index.TermEnum;
[ERROR]                               ^
[ERROR]   symbol:   class TermEnum
[ERROR]   location: package org.apache.lucene.index
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/FieldFactory.java:36:
error: cannot find symbol
[ERROR] import static org.apache.lucene.index.FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS;
[ERROR]                                                ^
[ERROR]   symbol:   class IndexOptions
[ERROR]   location: class FieldInfo
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/FieldFactory.java:36:
error: static import only from classes and interfaces
[ERROR] import static org.apache.lucene.index.FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS;
[ERROR] ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/FieldFactory.java:37:
error: cannot find symbol
[ERROR] import static org.apache.lucene.index.FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS;
[ERROR]                                                ^
[ERROR]   symbol:   class IndexOptions
[ERROR]   location: class FieldInfo
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/FieldFactory.java:37:
error: static import only from classes and interfaces
[ERROR] import static org.apache.lucene.index.FieldInfo.IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS;
[ERROR] ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndex.java:95:
error: cannot find symbol
[ERROR] import org.apache.lucene.queries.CustomScoreQuery;
[ERROR]                                 ^
[ERROR]   symbol:   class CustomScoreQuery
[ERROR]   location: package org.apache.lucene.queries
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndex.java:106:
error: cannot find symbol
[ERROR] import org.apache.lucene.search.NumericRangeQuery;
[ERROR]                                ^
[ERROR]   symbol:   class NumericRangeQuery
[ERROR]   location: package org.apache.lucene.search
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndex.java:123:
error: package org.apache.lucene.search.postingshighlight does not exist
[ERROR] import org.apache.lucene.search.postingshighlight.PostingsHighlighter;
[ERROR]                                                  ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndex.java:216:
error: cannot find symbol
[ERROR]     private final PostingsHighlighter postingsHighlighter = new PostingsHighlighter();
[ERROR]                   ^
[ERROR]   symbol:   class PostingsHighlighter
[ERROR]   location: class LucenePropertyIndex
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/LucenePropertyIndex.java:1019:
error: cannot find symbol
[ERROR]     private CustomScoreQuery getCustomScoreQuery(IndexPlan plan, Query subQuery) {
[ERROR]             ^
[ERROR]   symbol:   class CustomScoreQuery
[ERROR]   location: class LucenePropertyIndex
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/score/ScorerProvider.java:19:
error: cannot find symbol
[ERROR] import org.apache.lucene.queries.CustomScoreQuery;
[ERROR]                                 ^
[ERROR]   symbol:   class CustomScoreQuery
[ERROR]   location: package org.apache.lucene.queries
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/score/ScorerProvider.java:24:
error: cannot find symbol
[ERROR]     CustomScoreQuery createCustomScoreQuery(Query subQuery);
[ERROR]     ^
[ERROR]   symbol:   class CustomScoreQuery
[ERROR]   location: interface ScorerProvider
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/OakOSGiRepositoryFactory.java:391:
error: type ServiceTracker does not take parameters
[ERROR]     private static class RepositoryTracker extends ServiceTracker<Repository, Repository>
{
[ERROR]                                                                  ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/OakOSGiRepositoryFactory.java:409:
error: type ServiceReference does not take parameters
[ERROR]         public Repository addingService(ServiceReference<Repository> reference)
{
[ERROR]                                                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/ConfigTracker.java:46:
error: type ServiceTracker does not take parameters
[ERROR] class ConfigTracker extends ServiceTracker<ConfigurationAdmin, ConfigurationAdmin>
{
[ERROR]                                           ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/ConfigTracker.java:60:
error: type ServiceReference does not take parameters
[ERROR]     public ConfigurationAdmin addingService(ServiceReference<ConfigurationAdmin>
reference) {
[ERROR]                                                             ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/RunnableJobTracker.java:40:
error: type ServiceTracker does not take parameters
[ERROR] public class RunnableJobTracker extends ServiceTracker<Runnable, Future>
[ERROR]                                                       ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/RunnableJobTracker.java:60:
error: type ServiceReference does not take parameters
[ERROR]     public Future addingService(ServiceReference<Runnable> reference) {
[ERROR]                                                 ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-benchmarks/src/main/java/org/apache/jackrabbit/oak/benchmark/authorization/principalbased/PrinicipalBasedReadTest.java:41:
error: cannot find symbol
[ERROR] import org.apache.jackrabbit.oak.security.internal.SecurityProviderHelper;
[ERROR]                                                   ^
[ERROR]   symbol:   class SecurityProviderHelper
[ERROR]   location: package org.apache.jackrabbit.oak.security.internal
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/directory/DefaultDirectoryFactory.java:38:
error: cannot find symbol
[ERROR] import static org.apache.lucene.store.NoLockFactory.getNoLockFactory;
[ERROR] ^
[ERROR]   symbol:   static getNoLockFactory
[ERROR]   location: class NoLockFactory
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/CompressingCodec.java:25:
error: package org.apache.lucene.codecs.lucene40 does not exist
[ERROR] import org.apache.lucene.codecs.lucene40.Lucene40LiveDocsFormat;
[ERROR]                                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/CompressingCodec.java:26:
error: package org.apache.lucene.codecs.lucene42 does not exist
[ERROR] import org.apache.lucene.codecs.lucene42.Lucene42NormsFormat;
[ERROR]                                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/CompressingCodec.java:27:
error: package org.apache.lucene.codecs.lucene46 does not exist
[ERROR] import org.apache.lucene.codecs.lucene46.Lucene46Codec;
[ERROR]                                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/CompressingCodec.java:28:
error: package org.apache.lucene.codecs.lucene46 does not exist
[ERROR] import org.apache.lucene.codecs.lucene46.Lucene46FieldInfosFormat;
[ERROR]                                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/util/CompressingCodec.java:29:
error: package org.apache.lucene.codecs.lucene46 does not exist
[ERROR] import org.apache.lucene.codecs.lucene46.Lucene46SegmentInfoFormat;
[ERROR]                                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-lucene/src/main/java/org/apache/jackrabbit/oak/plugins/index/lucene/writer/CommitMitigatingTieredMergePolicy.java:365:
error: cannot find symbol
[ERROR]     public MergeSpecification findMerges(MergeTrigger mergeTrigger, SegmentInfos infos)
throws IOException {
[ERROR]                                          ^
[ERROR]   symbol:   class MergeTrigger
[ERROR]   location: class CommitMitigatingTieredMergePolicy
[ERROR]
[ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home/bin/javadoc
@options @packages
[ERROR]
[ERROR] Refer to the generated Javadoc files in '/Users/maryan/svn/oak/trunk/oak-doc/target/site/apidocs'
dir.
[ERROR]
[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 :jackrabbit-oak {noformat}
The first relevant failures appear to be these, part way down:
{noformat}
...
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/OakOSGiRepositoryFactory.java:391:
error: type ServiceTracker does not take parameters
[ERROR]     private static class RepositoryTracker extends ServiceTracker<Repository, Repository>
{
[ERROR]                                                                  ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/OakOSGiRepositoryFactory.java:409:
error: type ServiceReference does not take parameters
[ERROR]         public Repository addingService(ServiceReference<Repository> reference)
{
[ERROR]                                                         ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/ConfigTracker.java:46:
error: type ServiceTracker does not take parameters
[ERROR] class ConfigTracker extends ServiceTracker<ConfigurationAdmin, ConfigurationAdmin>
{
[ERROR]                                           ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/ConfigTracker.java:60:
error: type ServiceReference does not take parameters
[ERROR]     public ConfigurationAdmin addingService(ServiceReference<ConfigurationAdmin>
reference) {
[ERROR]                                                             ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/RunnableJobTracker.java:40:
error: type ServiceTracker does not take parameters
[ERROR] public class RunnableJobTracker extends ServiceTracker<Runnable, Future>
[ERROR]                                                       ^
[ERROR] /Users/maryan/svn/oak/trunk/oak-pojosr/src/main/java/org/apache/jackrabbit/oak/run/osgi/RunnableJobTracker.java:60:
error: type ServiceReference does not take parameters
[ERROR]     public Future addingService(ServiceReference<Runnable> reference) {
[ERROR]                                                 ^
... {noformat}
If I then specify a Java 8 version, e.g. {{JAVA_HOME=/path/to/Java8 mvn site -Pjavadoc}} the
command completes without errors and the docs build.

> Javadoc build fails if using Java 11
> ------------------------------------
>
>                 Key: OAK-8815
>                 URL: https://issues.apache.org/jira/browse/OAK-8815
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: doc
>    Affects Versions: 1.20.0
>            Reporter: Matt Ryan
>            Priority: Major
>             Fix For: 1.22.0
>
>
> Trying to build the Javadocs when using Java 11 fails. If you specify Java 8 when building
the Javadocs, the build succeeds.
> Command I'm using to build the Javadocs:  {{mvn site -Pjavadoc}} (as described in the
{{oak-doc}} readme).
> I will include more information on the errors in comments.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message