Skip to content

Fix/makefile build ordering#87

Open
goyalpalak18 wants to merge 2 commits intohyphae:add-license-1from
goyalpalak18:fix/makefile-build-ordering
Open

Fix/makefile build ordering#87
goyalpalak18 wants to merge 2 commits intohyphae:add-license-1from
goyalpalak18:fix/makefile-build-ordering

Conversation

@goyalpalak18
Copy link

Description

This PR addresses a build failure that occurs when running make build on a clean environment or when using parallel execution (make -j).

Currently, the Makefile treats sub-projects as independent targets, but they actually have strict compile-time dependencies (e.g., apis-common requires apis-bom to be installed first). Without enforcing this order, Maven fails to find the required artifacts in the local repository, causing the build to crash for new contributors.

Changes made:

  1. Enforced Build Order: Added explicit inter-target dependencies to the Makefile.
    • build-apis-common now strictly depends on build-apis-bom.
    • build-apis-main, build-apis-ccc, build-apis-log, and build-apis-web now depend on build-apis-common.
  2. Cleaned up clean target: Removed duplicate entries for clean-apis-common and clean-apis-bom in the clean command (Line 96), which were previously listed twice.

Related Issue

Fixes #74

SuparnaKScope and others added 2 commits August 6, 2024 16:42
Signed-off-by: goyalpalak18 <goyalpalak1806@gmail.com>
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

Successfully merging this pull request may close these issues.

Build fails when Maven tries to pull apis-bom during build : apis-bom:3.0.0 not found in Maven Central

2 participants