Files
seaweedfs/test/java/spark/.gitignore
T
chrislu f52d2902b2 fix: copy Maven artifacts into workspace instead of mounting $HOME/.m2
Issue: Docker volume mount from $HOME/.m2 wasn't working in GitHub Actions
- Container couldn't access the locally built SNAPSHOT JARs
- Maven failed with 'Could not find artifact seaweedfs-hadoop3-client:3.80.1-SNAPSHOT'

Solution: Copy Maven repository into workspace
1. In CI: Copy ~/.m2/repository/com/seaweedfs to test/java/spark/.m2/repository/com/
2. docker-compose.yml: Mount ./.m2 (relative path in workspace)
3. .gitignore: Added .m2/ to ignore copied artifacts

Why this works:
- Workspace directory (.) is successfully mounted as /workspace
- ./.m2 is inside workspace, so it gets mounted too
- Container sees artifacts at /root/.m2/repository/com/seaweedfs/...
- Maven finds the 3.80.1-SNAPSHOT JARs with our debug logging!

Next run should finally show the [DEBUG-2024] logs! 🎯
2025-11-23 11:07:05 -08:00

34 lines
335 B
Plaintext

# Maven
target/
.m2/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
# IDE
.idea/
*.iml
.vscode/
.classpath
.project
.settings/
# Spark
spark-warehouse/
metastore_db/
derby.log
# Logs
*.log
# OS
.DS_Store
Thumbs.db