Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-dev] [External] : Re: Problems building master

What exactly does java -version say? I’m using OracleJdk and infra was switched to the latest AdoptOpenJdk to get over apparent bug in javadoc tool from OpenJdk.

I see no problem pushing the change in once it is correct - instead of changing source version add the other detect option, I think it is detectOfflineLinks, and set it to false. That should help too

Thanks,
—lukas

5. 8. 2021 v 22:23, Jody Grassel <fyrewyld@xxxxxxxxx>:


After reading https://stackoverflow.com/questions/58836862/jdk-11-and-javadoc I was able to work around it with:

--- a/jpa/org.eclipse.persistence.jpars/pom.xml

+++ b/jpa/org.eclipse.persistence.jpars/pom.xml

@@ -186,6 +186,10 @@

             <plugin>

                 <groupId>org.apache.maven.plugins</groupId>

                 <artifactId>maven-javadoc-plugin</artifactId>

+                <configuration>

+                     <source>11</source>

+                     <detectJavaApiLink>false</detectJavaApiLink>

+                </configuration>

                 <executions>

                     <!-- need javadoc even in normal/short build

                         for inclusion in binary distribution -->


Not sure if that's an adequate solution to push to github, but I'll use it locally for now.

On Thu, Aug 5, 2021 at 3:02 PM Jody Grassel <fyrewyld@xxxxxxxxx> wrote:
It's been a long time since I've tried building master locally, and it looks like maven dies when it reaches jpa-rs.  Can someone help me out here?  I'm seeing the following:

```

Generating /Users/jgrassel/Dev/EE4J/eclipselink/jpa/org.eclipse.persistence.jpars/target/apidocs/help-doc.html...

1 error

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary for EclipseLink Parent 3.1.0-SNAPSHOT:

[INFO] 

[INFO] EclipseLink Parent ................................. SUCCESS [  1.793 s]

[INFO] EclipseLink Hermes Parser .......................... SUCCESS [ 19.114 s]

[INFO] EclipseLink Core ................................... SUCCESS [ 21.517 s]

[INFO] EclipseLink JPA .................................... SUCCESS [  6.874 s]

[INFO] EclipseLink JPA Model Generator .................... SUCCESS [  2.208 s]

[INFO] EclipseLink MOXy ................................... SUCCESS [ 25.017 s]

[INFO] EclipseLink DBWS ................................... SUCCESS [  4.059 s]

[INFO] EclipseLink JPA-RS ................................. FAILURE [  9.163 s]

[INFO] EclipseLink Core Test Framework .................... SKIPPED

<SNIP>


[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  01:30 min

[INFO] Finished at: 2021-08-05T14:58:22-05:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.2.0:jar (attach-javadocs) on project org.eclipse.persistence.jpars: MavenReportException: Error while generating Javadoc: 

[ERROR] Exit code: 1 - javadoc: error - The code being documented uses packages in the unnamed module, but the packages defined in https://docs.oracle.com/en/java/javase/11/docs/api/ are in named modules.

[ERROR] 

[ERROR] Command line was: /Users/jgrassel/Applications/java/jdk-11.0.8+10/Contents/Home/bin/javadoc -J-Xms2048m @options @packages @argfile

[ERROR] 

[ERROR] Refer to the generated Javadoc files in '/Users/jgrassel/Dev/EE4J/eclipselink/jpa/org.eclipse.persistence.jpars/target/apidocs' dir.

```

Using maven 3.6.3 and "openjdk version "11.0.8" 2020-07-14"
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://urldefense.com/v3/__https://www.eclipse.org/mailman/listinfo/eclipselink-dev__;!!ACWV5N9M2RV99hQ!b3xGIuvHAmPtz-sCogEcAPAaG5SOiAfaA8x06-0Z-Ql1xUs_ikIMgt9r0EQYJA9piD0$

Back to the top