Skip to content

Commit 8f45ca1

Browse files
committed
fix: add -am flag to build required dependencies
Add -am (also-make) flag alongside -amd to ensure Maven builds required dependencies like spring-ai-test before building the affected modules. This fixes the dependency resolution error: 'Could not resolve dependencies for project spring-ai-autoconfigure-mcp-stateless-server-common' Signed-off-by: Mark Pollack <[email protected]>
1 parent 6998de9 commit 8f45ca1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/main-push-fast.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
exit 0
139139
else
140140
echo "INFO: Running tests for affected modules: $MODS"
141-
./mvnw -B -q -T 1C -Pci-fast-integration-tests -DfailIfNoTests=false -pl "$MODS" -amd verify
141+
./mvnw -B -q -T 1C -Pci-fast-integration-tests -DfailIfNoTests=false -pl "$MODS" -am -amd verify
142142
fi
143143
144144
- name: Deploy to Artifactory (affected modules only)
@@ -149,4 +149,4 @@ jobs:
149149
run: |
150150
MODS="${{ steps.mods.outputs.modules }}"
151151
echo "INFO: Deploying affected modules to Artifactory: $MODS"
152-
./mvnw -B -q -s settings.xml -DfailIfNoTests=false -pl "$MODS" -amd deploy
152+
./mvnw -B -q -s settings.xml -DfailIfNoTests=false -pl "$MODS" -am -amd deploy

0 commit comments

Comments
 (0)