用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill maven-druid-build命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Handles reading, populating, and saving .docx files using the python-docx library. Use this skill for any tasks involving template filling or modifying Word documents.
Perform various data analysis on SEC 13-F and obtain some insights of fund activities such as number of holdings, AUM, and change of holdings between two quarters.
This skill includes search capability in 13F, such as fuzzy search a fund information using possibly inaccurate name, or fuzzy search a stock cusip info using its name.
基于 SOC 职业分类
正在显示 SKILL.md
| name | maven-druid-build |
| description | Building Apache Druid with Maven, managing memory constraints, and skipping verification checks. |
cd /root/druid
mvn clean package \
-DskipTests \
-Dcheckstyle.skip=true \
-Dpmd.skip=true \
-Dforbiddenapis.skip=true \
-Dspotbugs.skip=true \
-Danimal.sniffer.skip=true \
-Denforcer.skip=true \
-Djacoco.skip=true \
-Ddependency-check.skip=true \
-pl '!web-console' \
-pl indexing-service \
-am
| Flag | Purpose |
|---|---|
clean | Remove previous build artifacts |
package | Compile and package into JAR/WAR |
-DskipTests | Skip unit test execution |
-Dcheckstyle.skip=true | Skip code style checking |
-Dpmd.skip=true | Skip PMD analysis |
-Dforbiddenapis.skip=true | Skip forbidden API checking |
-Dspotbugs.skip=true | Skip SpotBugs (FindBugs) analysis |
-Danimal.sniffer.skip=true | Skip JDK version compatibility checks |
-Denforcer.skip=true | Skip Maven Enforcer rules |
-Djacoco.skip=true | Skip code coverage analysis |
-Ddependency-check.skip=true | Skip OWASP dependency checking |
-pl '!web-console' | Exclude web-console module (memory constraint) |
-pl indexing-service | Include indexing-service module |
-am | Also make dependencies of selected projects |
If you encounter OOM (Out of Memory) errors:
# Increase heap size
export MAVEN_OPTS="-Xmx2g -Xms1g"
# Very aggressive heap limit
export MAVEN_OPTS="-Xmx1g -Xms512m"
To speed up builds with multiple cores:
mvn clean package -T 1C # 1 thread per core
After successful build:
druid/indexing-service/target/druid-indexing-service-0.20.0-SNAPSHOT.jar
druid/distribution/target/apache-druid-0.20.0-SNAPSHOT/lib/
# Check if JAR was created
ls -la indexing-service/target/*.jar
# Check build log for errors
tail -100 build.log
# Verify specific file was included
jar tf indexing-service/target/*.jar | grep "JavaScriptFilter"
# Verify module exists
ls -la indexing-service/pom.xml
# Rebuild parent projects
mvn clean install -pl '!web-console'
# Detailed error output
mvn clean package -X 2>&1 | tail -50
# Compile only (no packaging)
mvn clean compile
# Build specific module and dependencies
mvn clean package -pl indexing-service -am
# Build without tests but with other checks
mvn clean package -DskipTests
# Minimal build for testing
mvn clean package -DskipTests -Denforcer.skip=true