处理拷贝时候存在-source.jar包

This commit is contained in:
2025-12-25 17:34:23 +08:00
parent 27947aa36a
commit 933c4789ab

View File

@@ -11,10 +11,10 @@ RUN API_MODULE=$(ls -d *-api 2>/dev/null | head -1) && \
fi && \
if [ -n "$SVC_MODULE" ]; then \
echo "Found SVC module: $SVC_MODULE, copying from $SVC_MODULE target..." && \
cp "$SVC_MODULE/target/"*.jar . ; \
find "$SVC_MODULE/target" -maxdepth 1 -name "*.jar" ! -name "*-sources.jar" -exec cp {} app.jar \; ; \
else \
echo "No SVC module found, copying from root target..." && \
cp target/*.jar . ; \
find "target" -maxdepth 1 -name "*.jar" ! -name "*-sources.jar" -exec cp {} app.jar \; ; \
fi