Heliosearch / heliosearch

The next generation of open source search
http://heliosearch.org
90 stars 19 forks source link

ant generate-maven-artifacts & javadoc warnings #40

Closed sttawm closed 9 years ago

sttawm commented 9 years ago

I would like to deploy heliosearch maven artifacts (for v0.09) to a maven repository, but I'm unable to. The build fails due to javadoc warnings in ParallelStream.java (a heliosearch class)

Steps to Reproduce

  1. Download the source of the latest release v0.09
  2. Run ant generate-maven-artifacts (from the root)

    The resulting error

[...]

download-java7-javadoc-packagelist:
     [copy] Copying 1 file to /home/mmww/helios/heliosearch-hs_0.09/solr/build/docs/solr-solrj
  [javadoc] Generating Javadoc
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package org.apache.solr.client.solrj...
  [javadoc] Loading source files for package org.apache.solr.client.solrj.beans...
  [javadoc] Loading source files for package org.apache.solr.client.solrj.impl...
  [javadoc] Loading source files for package org.apache.solr.client.solrj.request...
  [javadoc] Loading source files for package org.apache.solr.client.solrj.response...
  [javadoc] Loading source files for package org.apache.solr.client.solrj.streaming...
  [javadoc] Loading source files for package org.apache.solr.client.solrj.util...
  [javadoc] Loading source files for package org.apache.solr.common...
  [javadoc] Loading source files for package org.apache.solr.common.cloud...
  [javadoc] Loading source files for package org.apache.solr.common.luke...
  [javadoc] Loading source files for package org.apache.solr.common.params...
  [javadoc] Loading source files for package org.apache.solr.common.util...
  [javadoc] Constructing Javadoc information...
  [javadoc] /home/mmww/helios/heliosearch-hs_0.09/solr/solrj/src/java/org/apache/solr/client/solrj/streaming/ParallelStream.java:39: warning: BASE64Encoder is internal proprietary API and may be removed in a future release
  [javadoc] import sun.misc.BASE64Encoder;
  [javadoc]                ^
  [javadoc] Standard Doclet version 1.7.0_40
  [javadoc] Building tree for all the packages and classes...
  [javadoc] Building index for all the packages and classes...
  [javadoc] Building index for all classes...
  [javadoc] Generating /home/mmww/helios/heliosearch-hs_0.09/solr/build/docs/solr-solrj/help-doc.html...
  [javadoc] Note: Custom tags that were not seen:  @lucene.internal
  [javadoc] 1 warning

BUILD FAILED
/home/mmww/helios/heliosearch-hs_0.09/build.xml:170: The following error occurred while executing this line:
/home/mmww/helios/heliosearch-hs_0.09/solr/common-build.xml:60: The following error occurred while executing this line:
/home/mmww/helios/heliosearch-hs_0.09/solr/common-build.xml:57: The following error occurred while executing this line:
/home/mmww/helios/heliosearch-hs_0.09/solr/build.xml:437: The following error occurred while executing this line:
/home/mmww/helios/heliosearch-hs_0.09/solr/common-build.xml:268: The following error occurred while executing this line:
/home/mmww/helios/heliosearch-hs_0.09/solr/common-build.xml:275: The following error occurred while executing this line:
/home/mmww/helios/heliosearch-hs_0.09/solr/solrj/build.xml:58: The following error occurred while executing this line:
/home/mmww/helios/heliosearch-hs_0.09/solr/common-build.xml:290: The following error occurred while executing this line:
/home/mmww/helios/heliosearch-hs_0.09/lucene/common-build.xml:2025: Javadocs warnings were found!

Of course, there's a quick fix and a long-term fix: disable the fail-on-warning behavior, suppress such warnings or relax the build requirements.

sttawm commented 9 years ago

Alright someone else has been here before! I was able to get around this by specifying the property failonjavadocwarning, as in ant -Dfailonjavadocwarning=false generate-maven-artifacts.