Skip to content

Unable to compile and build #306

@DineshGuptaa

Description

@DineshGuptaa

Summary

I am unable to build the application on my local machine. The Maven build process fails during the plugin resolution phase due to an SSL/certificate trust issue between the Java 8 environment and Maven Central.

Expected behaviour

The command mvn clean package -Dmaven.test.skip=true should complete successfully and generate all project artifacts.

Current behaviour

The build fails with a PluginResolutionException. Maven cannot download maven-compiler-plugin:3.11.0 or maven-surefire-plugin:2.22.2. The root cause is a java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty.

Steps to reproduce

  • Ensure you are using Java 8 and Maven 3.6.3.
  • Run mvn clean package -Dmaven.test.skip=true from the project root.
  • The build fails during the download of core plugins.

Your environment

I am using:

  • OS: Linux Mint 22.3 (Zena)
  • Java: 8 (LTS)
  • Maven: 3.6.3
  • Docker: 29.3.0
  • Docker Compose: v5.1.0
  • Kubernetes: N/A

OS(e.g: cat /etc/os-release):

NAME="Linux Mint"
VERSION="22.3 (Zena)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 22.3"
VERSION_ID="22.3"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=zena
UBUNTU_CODENAME=noble

docker version(e.g docker version):
$ docker --version
Docker version 29.3.0, build 5927d80

docker-compose version (e.g docker-compose --version):
$ docker compose version
Docker Compose version v5.1.0

Kubernetes version(use kubectl version):
NA

istio version:
NA

Additional context

The project is approximately 4 years old, and there appear to be compatibility issues between the legacy build configuration and modern Linux certificate paths. On modern Debian/Ubuntu-based systems (like Mint 22.3), the Java cacerts path often needs manual linking for older JDK 8 installations to successfully perform SSL handshakes with Maven Central.

Please add all tool with version with documentation or a fix to ensure compatibility.

Search result and your thoughts

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