Skip to content

Compilation requires JDK. JRE/JVM is insufficient for compilation #3479

@FryFang

Description

@FryFang

Hi,

I am running into issues installing Phoebus in Ubuntu.

Apache Maven 3.9.11
Java version: 21.0.8, vendor: Ubuntu, runtime: /usr/lib/jvm/java-21-openjdk-amd64
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "6.6.87.2-microsoft-standard-wsl2", arch: "amd64", family: "unix"

Dependencies check seems to be working
mvn clean verify -f dependencies/pom.xml
[INFO] Reactor Summary for org.phoebus:dependencies 5.0.3-SNAPSHOT:
[INFO]
[INFO] org.phoebus:dependencies ........................... SUCCESS [ 0.546 s]
[INFO] org.phoebus:install-jars ........................... SUCCESS [ 1.027 s]
[INFO] org.phoebus:phoebus-target ......................... SUCCESS [ 1.609 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS

However, when I run
mvn clean install
I get errors
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.2:compile (default-compile) on project core-pva: Compilation failure -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :core-pva

Could anyone please point me to the right direction? Thanks a lot!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions