Evo maven build diagnosis

From OpenLAIR/OpenSkill · View interactive version

Evo maven build diagnosis is an AI agent skill from the GitHub repository OpenLAIR/OpenSkill. Executes Maven builds, captures output, and parses error logs to identify root causes of build failures. Handles compilation errors, dependency resolution failures, POM configuration issues, and JDK version incompatibilities.

How to use this skill

Skill file

evo-maven-build-diagnosis

Diagnoses Java Maven build failures by analyzing error logs and .travis.yml configuration.

Key Functions

Usage

import sys
sys.path.insert(0, '/app/environment/skills/evo-maven-build-diagnosis/scripts')
from utils import (
    execute_maven_build, classify_build_failure, analyze_travis_yml,
    write_diagnosis_report, parse_compilation_errors, parse_pom_errors
)

# Analyze build logs
with open('build.log') as f:
    log = f.read()
analysis = classify_build_failure(log)

# Check .travis.yml
travis = analyze_travis_yml('.travis.yml')

# Write report
write_diagnosis_report('failed_reasons.txt', analysis, log_analysis=analysis, travis_analysis=travis)

Common Error Patterns

  1. POM Configuration: Missing/wrong POM file references (e.g., build.pom.xml vs build-pom.xml)
  2. Version Incompatibility: Source/target version no longer supported by JDK
  3. Dependency Resolution: Missing artifacts, tools.jar not found in JDK 9+
  4. Compilation: Cannot find symbol, missing imports, missing method implementations
  5. Plugin Execution: Failed plugin goals
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.