Help Center/ CodeArts Check/ FAQs/ General Issues/ Why Am I Told that No Dependency Exists in the Maven Repository?
Updated on 2024-10-10 GMT+08:00

Why Am I Told that No Dependency Exists in the Maven Repository?

Symptom

An error is reported, indicating that private dependencies cannot be found in the Maven repository.

Cause Analysis

Private dependencies are used in the project, but the private repository endpoints are not configured.

Solution 1

  1. On the View Task Details page, choose Settings > Rule sets > Check Parameter.
  2. Add -s settings.xml to the end of the compilation command to specify the settings used for Maven compilation.

Solution 2

  1. On the Tasks page, choose Settings > General > Service Endpoints to add a nexus repository endpoint.
  2. On the View Task Details page, choose Settings > Custom Environment > Self-hosted Repo Endpoints, and select the new nexus repository endpoint.