Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recent JDK and Maven causes build failures #5

Closed
ganskef opened this issue May 16, 2023 · 1 comment
Closed

Recent JDK and Maven causes build failures #5

ganskef opened this issue May 16, 2023 · 1 comment

Comments

@ganskef
Copy link
Owner

ganskef commented May 16, 2023

While testing the Open Source release on other platforms it couldn't be built with recent JDK 17 and Maven 9.2.

ganskef added a commit that referenced this issue May 18, 2023
@ganskef
Copy link
Owner Author

ganskef commented May 18, 2023

Linux is the development platform (openjdk-11) and works of course. On Windows:

Microsoft Windows [Version 10.0.19044.2965]
(c) Microsoft Corporation. Alle Rechte vorbehalten.

This jdk-11 C:\Program Files\OpenLogic\jdk-11.0.19.7-hotspot works with Maven 3.8.8:

C:\Users\ganske>"\Program Files\OpenLogic\jdk-11.0.19.7-hotspot\bin\java.exe" -version
openjdk version "11.0.19" 2023-04-18
OpenJDK Runtime Environment OpenLogic-OpenJDK (build 11.0.19+7-adhoc..jdk11u)
OpenJDK 64-Bit Server VM OpenLogic-OpenJDK (build 11.0.19+7-adhoc..jdk11u, mixed mode)

C:\Users\ganske\MoCuishle-master>mvn -version && mvn clean install
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: C:\ganskef\apache-maven-3.8.8
Java version: 11.0.19, vendor: OpenLogic, runtime: C:\Program Files\OpenLogic\jdk-11.0.19.7-hotspot
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
...
[INFO] Reactor Summary:
[INFO]
[INFO] LittleProxy 1.1.1-offline .......................... SUCCESS [  4.281 s]
[INFO] LittleProxy - Man-In-The-Middle 1.1.1-offline ...... SUCCESS [ 23.626 s]
[INFO] Mo Cuishle 2.1.0 ................................... SUCCESS [ 18.284 s]
[INFO] Mo Cuishle - Browser Extensions 2.1.2 .............. SUCCESS [  0.808 s]
[INFO] Mo Cuishle - Parent 2.0.0 .......................... SUCCESS [  0.029 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  47.884 s
[INFO] Finished at: 2023-05-18T14:42:24+02:00
[INFO] ------------------------------------------------------------------------

On macOS too:

Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: /Users/frank/Documents/apache-maven-3.8.8
Java version: 11.0.19, vendor: OpenLogic, runtime: /Library/Java/JavaVirtualMachines/openlogic-openjdk-11.jdk/Contents/Home
Default locale: de_DE, platform encoding: UTF-8
OS name: "mac os x", version: "12.6.5", arch: "x86_64", family: "mac"
...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] LittleProxy 1.1.1-offline .......................... SUCCESS [  4.394 s]
[INFO] LittleProxy - Man-In-The-Middle 1.1.1-offline ...... SUCCESS [ 18.372 s]
[INFO] Mo Cuishle 2.1.0 ................................... SUCCESS [ 18.057 s]
[INFO] Mo Cuishle - Browser Extensions 2.1.2 .............. SUCCESS [  0.841 s]
[INFO] Mo Cuishle - Parent 2.0.0 .......................... SUCCESS [  0.018 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  42.479 s
[INFO] Finished at: 2023-05-18T15:43:53+02:00
[INFO] ------------------------------------------------------------------------

This jdk-11 C:\Program Files\Java\jdk-11 fails to build the LittleProxy dependencies:

C:\Users\ganske>"\Program Files\Java\jdk-11\bin\java.exe" -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)

This jdk-17 fails too:

C:\Users\ganske\MoCuishle-master>mvn -version && mvn clean install
Apache Maven 3.8.8 (4c87b05d9aedce574290d1acc98575ed5eb6cd39)
Maven home: C:\ganskef\apache-maven-3.8.8
Java version: 17.0.7, vendor: OpenLogic, runtime: C:\Program Files\OpenLogic\jdk-17.0.7.7-hotspot
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
[INFO] Compiling 38 source files to C:\Users\ganske\MoCuishle-master\LittleProxy\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 6 is no longer supported. Use 7 or later.
[ERROR] Target option 6 is no longer supported. Use 7 or later.
[INFO] 2 errors

ganskef added a commit that referenced this issue Oct 6, 2023
- Fixes #5 built with current Java and Maven, but Java 11 too
- Integrate JaCoCo coverage report in Maven build
- Use maven.compiler.release to fix warnings
- Reuse mocuishle KeyStore and CA, but allow configuration by properties
- Rewiew of README.md files
@ganskef ganskef closed this as completed in 38a7ad2 Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant