You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Daniel Collins (JIRA)" <ji...@apache.org> on 2019/04/01 09:02:00 UTC

[jira] [Comment Edited] (SOLR-11579) Building Solr using Java 9 and Maven doesn't work

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

Daniel Collins edited comment on SOLR-11579 at 4/1/19 9:01 AM:
---------------------------------------------------------------

mvn install seems okay on master with openjdk "11.0.2" for windows) so withdrawing that item.

mvn javadoc:jar (on master with openjdk version "11.0.2" for windows) still fails

{{[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (default-cli) on project lucene-core: MavenReportException: Error while creating archive:}}
 {{[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:\Users\CollinsDaniel\Utils\jdk-11.0.2\bin\javadoc.exe @options @packages}}
 {{[ERROR]}}
 {{[ERROR] Refer to the generated Javadoc files in 'C:\Users\CollinsDaniel\Work\3rdparty\lucene-solr-7\maven-build\lucene\core\src\java\target\apidocs' dir.}}


was (Author: dancollins):
mvn install seems okay on master with openjdk "11.0.2" for windows) so withdrawing that issue.

mvn javadoc:jar (on master with openjdk version "11.0.2" for windows) still fails

{{[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (default-cli) on project lucene-core: MavenReportException: Error while creating archive:}}
{{[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:\Users\CollinsDaniel\Utils\jdk-11.0.2\bin\javadoc.exe @options @packages}}
{{[ERROR]}}
{{[ERROR] Refer to the generated Javadoc files in 'C:\Users\CollinsDaniel\Work\3rdparty\lucene-solr-7\maven-build\lucene\core\src\java\target\apidocs' dir.}}

> Building Solr using Java 9 and Maven doesn't work
> -------------------------------------------------
>
>                 Key: SOLR-11579
>                 URL: https://issues.apache.org/jira/browse/SOLR-11579
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Build
>    Affects Versions: 8.0
>         Environment: Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T19:41:47+01:00)
> Maven home: C:\Users\CollinsDaniel\Utils\apache-maven-3.6.0\bin\..
> Java version: 11.0.2, vendor: Oracle Corporation, runtime: C:\Users\CollinsDaniel\Utils\jdk-11.0.2
> Default locale: en_GB, platform encoding: Cp1252
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
> openjdk version "11.0.2" 2019-01-15
> OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
> OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
>            Reporter: Daniel Collins
>            Priority: Minor
>              Labels: maven, maven-enforcer-plugin
>         Attachments: SOLR-11579_1, SOLR-11579_2, SOLR-11579_4
>
>
> I'm calling this minor as I don't believe we officially support Java 9 (but correct me if I'm wrong), and I've only tried on master (again, I don't *think* branch_7x is setup for Java 9?)
> Several issues/notes:
>  # -enforcer plugin breaks if you try to do mvn install-
>  # javadoc plugin breaks if you try to do mvn javadoc:jar
>  # warnings from groovy-maven-plugin (TODO)
>  # a lot of the maven plugins are quite old
>  # forbiddenapis has some issues with Solr (I assume due to module split-up, javax is no longer part of core) (TODO)
> I have patches for 1, 2, and 4. Still working on 3 and 5.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org