AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL unreviewed MIT Self-run

Java Maven Helper

skill-curiouslearner-devkit-java-maven-helper · by CuriousLearner

Maven build system, dependency management, and Java project configuration assistance.

No reviews yet
0 installs
36 views
0.0% view→install

Install

$ agentstack add skill-curiouslearner-devkit-java-maven-helper

Open-source listing, not yet scanned by AgentStack. Follow the source repository for install instructions.

Security review

⚠ Flagged

1 finding(s); flagged for manual review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures
  • high Destructive filesystem operation.

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution Used

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Reliability & compatibility

Not yet reviewed
0 installs to date
no reviews yet
11mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Java Maven Helper? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Java Maven Dependency and Build Helper Skill

Maven build system, dependency management, and Java project configuration assistance.

Instructions

You are a Maven and Java ecosystem expert. When invoked:

  1. Maven Project Management:
  • Initialize and configure Maven projects
  • Manage pom.xml configuration
  • Handle project structure and organization
  • Configure multi-module projects
  • Use Maven archetypes
  1. Dependency Management:
  • Add, update, and remove dependencies
  • Manage dependency scopes
  • Handle version conflicts
  • Use dependency management sections
  • Work with BOMs (Bill of Materials)
  1. Build Configuration:
  • Configure plugins and goals
  • Set up build profiles
  • Manage build lifecycle
  • Configure properties and resources
  • Handle filtering and resource processing
  1. Troubleshooting:
  • Fix dependency resolution errors
  • Debug build failures
  • Resolve plugin conflicts
  • Clean corrupted repositories
  • Handle version conflicts
  1. Best Practices: Provide guidance on Maven project organization, dependency management, and build optimization

Maven Basics

Project Initialization

# Create from archetype (interactive)
mvn archetype:generate

# Create quickstart project (non-interactive)
mvn archetype:generate \
  -DgroupId=com.example \
  -DartifactId=my-app \
  -DarchetypeArtifactId=maven-archetype-quickstart \
  -DarchetypeVersion=1.4 \
  -DinteractiveMode=false

# Create web application
mvn archetype:generate \
  -DgroupId=com.example \
  -DartifactId=my-webapp \
  -DarchetypeArtifactId=maven-archetype-webapp \
  -DinteractiveMode=false

# Create Spring Boot application
mvn archetype:generate \
  -DgroupId=com.example \
  -DartifactId=my-spring-app \
  -DarchetypeArtifactId=maven-archetype-quickstart \
  -DinteractiveMode=false

Basic Commands

# Clean build artifacts
mvn clean

# Compile project
mvn compile

# Run tests
mvn test

# Package (create JAR/WAR)
mvn package

# Install to local repository
mvn install

# Deploy to remote repository
mvn deploy

# Skip tests
mvn package -DskipTests

# Run specific test
mvn test -Dtest=MyTest

# Show dependency tree
mvn dependency:tree

# Show effective POM
mvn help:effective-pom

# Run project (with exec plugin)
mvn exec:java -Dexec.mainClass="com.example.Main"

Usage Examples

@java-maven-helper
@java-maven-helper --init-project
@java-maven-helper --add-dependency
@java-maven-helper --fix-dependencies
@java-maven-helper --multi-module
@java-maven-helper --troubleshoot

pom.xml Configuration

Complete Example


    4.0.0

    
    com.example
    my-application
    1.0.0-SNAPSHOT
    jar

    
    My Application
    A sample Maven project
    https://github.com/user/my-application
    2024

    
    
        Example Corp
        https://example.com
    

    
    
        
            Apache License, Version 2.0
            https://www.apache.org/licenses/LICENSE-2.0
            repo
        
    

    
    
        
            dev1
            Developer Name
            dev@example.com
            Example Corp
            
                developer
            
        
    

    
    
        scm:git:git://github.com/user/my-application.git
        scm:git:ssh://github.com/user/my-application.git
        https://github.com/user/my-application
        HEAD
    

    
    
        
        17
        17
        UTF-8

        
        3.2.0
        5.10.1
        1.18.30
        2.0.9

        
        3.11.0
        3.2.2
    

    
    
        
            
            
                org.springframework.boot
                spring-boot-dependencies
                ${spring.boot.version}
                pom
                import
            
        
    

    
    
        
        
            org.springframework.boot
            spring-boot-starter-web
        

        
        
            org.projectlombok
            lombok
            ${lombok.version}
            provided
        

        
        
            org.slf4j
            slf4j-api
            ${slf4j.version}
        

        
        
            org.junit.jupiter
            junit-jupiter
            ${junit.version}
            test
        

        
            org.springframework.boot
            spring-boot-starter-test
            test
        
    

    
    
        
        ${project.artifactId}

        
        
            
                src/main/resources
                true
            
        

        
        
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                ${maven.compiler.plugin.version}
                
                    ${maven.compiler.source}
                    ${maven.compiler.target}
                
            

            
            
                org.apache.maven.plugins
                maven-surefire-plugin
                ${maven.surefire.plugin.version}
            

            
            
                org.springframework.boot
                spring-boot-maven-plugin
                ${spring.boot.version}
                
                    
                        
                            repackage
                        
                    
                
            
        
    

    
    
        
            development
            
                true
            
            
                dev
            
        

        
            production
            
                prod
            
        
    

    
    
        
            central
            Maven Central
            https://repo.maven.apache.org/maven2
        
    

Dependency Scopes


    
    
        org.apache.commons
        commons-lang3
        3.14.0
        compile
    

    
    
        javax.servlet
        javax.servlet-api
        4.0.1
        provided
    

    
    
        mysql
        mysql-connector-java
        8.0.33
        runtime
    

    
    
        org.junit.jupiter
        junit-jupiter
        5.10.1
        test
    

    
    
        com.example
        custom-lib
        1.0
        system
        ${project.basedir}/lib/custom-lib.jar
    

    
    
        org.springframework.boot
        spring-boot-dependencies
        3.2.0
        pom
        import
    

Project Structure

Standard Maven Layout

my-app/
├── pom.xml
├── src/
│   ├── main/
│   │   ├── java/
│   │   │   └── com/
│   │   │       └── example/
│   │   │           ├── Main.java
│   │   │           ├── model/
│   │   │           ├── service/
│   │   │           └── repository/
│   │   ├── resources/
│   │   │   ├── application.properties
│   │   │   ├── logback.xml
│   │   │   └── db/
│   │   │       └── migration/
│   │   └── webapp/  (for web apps)
│   │       ├── WEB-INF/
│   │       │   └── web.xml
│   │       └── index.html
│   └── test/
│       ├── java/
│       │   └── com/
│       │       └── example/
│       │           └── MainTest.java
│       └── resources/
│           └── test.properties
├── target/  (generated, git-ignored)
└── .gitignore

Multi-Module Project

parent-project/
├── pom.xml (parent)
├── module-core/
│   ├── pom.xml
│   └── src/
├── module-api/
│   ├── pom.xml
│   └── src/
├── module-web/
│   ├── pom.xml
│   └── src/
└── module-cli/
    ├── pom.xml
    └── src/

    4.0.0

    com.example
    parent-project
    1.0.0-SNAPSHOT
    pom

    
        module-core
        module-api
        module-web
        module-cli
    

    
        17
        17
        UTF-8
    

    
        
            
            
                org.springframework.boot
                spring-boot-dependencies
                3.2.0
                pom
                import
            
        
    

    4.0.0

    
        com.example
        parent-project
        1.0.0-SNAPSHOT
    

    module-core

    
        
        
            org.springframework.boot
            spring-boot-starter
        
    

Dependency Management

Adding Dependencies

# Manually add to pom.xml
# Or search on https://mvnrepository.com

# Dependency format:
# ::

    com.google.guava
    guava
    32.1.3-jre

Dependency Analysis

# Show dependency tree
mvn dependency:tree

# Show dependency tree for specific artifact
mvn dependency:tree -Dincludes=com.google.guava:guava

# Analyze dependencies
mvn dependency:analyze

# List dependencies
mvn dependency:list

# Show updates available
mvn versions:display-dependency-updates

# Show plugin updates
mvn versions:display-plugin-updates

# Purge local repository
mvn dependency:purge-local-repository

Version Management


    5.3.31
    5.10.1

    
        org.springframework
        spring-core
        ${spring.version}
    

    
        
            org.springframework.boot
            spring-boot-dependencies
            3.2.0
            pom
            import
        
    

    
        org.springframework.boot
        spring-boot-starter-web
        
    

Excluding Transitive Dependencies


    com.example
    some-library
    1.0.0
    
        
            commons-logging
            commons-logging
        
    

Plugin Configuration

Common Plugins

Compiler Plugin

    org.apache.maven.plugins
    maven-compiler-plugin
    3.11.0
    
        17
        17
        UTF-8
        
            -parameters
            -Xlint:unchecked
        
    
Surefire Plugin (Unit Tests)

    org.apache.maven.plugins
    maven-surefire-plugin
    3.2.2
    
        
            **/*Test.java
            **/*Tests.java
        
        -Xmx1024m
    
Failsafe Plugin (Integration Tests)

    org.apache.maven.plugins
    maven-failsafe-plugin
    3.2.2
    
        
            
                integration-test
                verify
            
        
    
JAR Plugin

    org.apache.maven.plugins
    maven-jar-plugin
    3.3.0
    
        
            
                true
                com.example.Main
            
        
    
Assembly Plugin (Fat JAR)

    org.apache.maven.plugins
    maven-assembly-plugin
    3.6.0
    
        
            jar-with-dependencies
        
        
            
                com.example.Main
            
        
    
    
        
            make-assembly
            package
            
                single
            
        
    
Shade Plugin (Uber JAR)

    org.apache.maven.plugins
    maven-shade-plugin
    3.5.1
    
        
            package
            
                shade
            
            
                
                    
                        com.example.Main
                    
                
            
        
    
Exec Plugin

    org.codehaus.mojo
    exec-maven-plugin
    3.1.1
    
        com.example.Main
    
# Run with exec plugin
mvn exec:java
mvn exec:java -Dexec.mainClass="com.example.Main"
mvn exec:java -Dexec.args="arg1 arg2"

Build Profiles

Profile Configuration


    
    
        dev
        
            true
        
        
            development
            jdbc:h2:mem:testdb
        
        
            
                com.h2database
                h2
                runtime
            
        
    

    
    
        prod
        
            production
            jdbc:postgresql://prod-db:5432/app
        
        
            
                org.postgresql
                postgresql
                runtime
            
        
        
            
                
                    org.apache.maven.plugins
                    maven-compiler-plugin
                    
                        false
                        true
                    
                
            
        
    

    
    
        test
        
            test
        
    
# Activate profile
mvn clean install -Pprod

# Activate multiple profiles
mvn clean install -Pdev,integration-tests

# List active profiles
mvn help:active-profiles

# Show profile-specific settings
mvn help:effective-pom -Pprod

Common Issues & Solutions

Issue: Dependency Not Found

# Error: Could not find artifact

# Solution 1: Check repository configuration
mvn dependency:tree

# Solution 2: Update Maven metadata
mvn -U clean install  # -U forces update

# Solution 3: Clear local repository
rm -rf ~/.m2/repository/com/example/problematic-artifact
mvn clean install

# Solution 4: Check network/proxy settings
# Add to ~/.m2/settings.xml

    
        
            example-proxy
            true
            http
            proxy.example.com
            8080
        
    

Issue: Version Conflicts

# Show dependency conflicts
mvn dependency:tree -Dverbose

# Analyze dependency conflicts
mvn dependency:analyze-duplicate

# Solution: Use dependencyManagement

    
        
            com.google.guava
            guava
            32.1.3-jre
        
    

Issue: Corrupted Repository

# Clean local repository
mvn dependency:purge-local-repository

# Or manually remove
rm -rf ~/.m2/repository

# Rebuild
mvn clean install

Issue: Out of Memory

# Increase Maven memory
export MAVEN_OPTS="-Xmx2048m -XX:MaxPermSize=512m"

# Or set in .mavenrc
echo "MAVEN_OPTS='-Xmx2048m'" > ~/.mavenrc

# For Windows (setenv.bat)
set MAVEN_OPTS=-Xmx2048m -XX:MaxPermSize=512m

Issue: Slow Builds

# Use parallel builds
mvn -T 4 clean install  # 4 threads
mvn -T 1C clean install # 1 thread per CPU core

# Skip tests
mvn clean install -DskipTests

# Offline mode (use local repository only)
mvn -o clean install

# Use incremental builds
mvn clean install -amd  # Also make dependents

settings.xml Configuration

Local Repository and Mirrors


    
    ${user.home}/.m2/repository

    
    
        
            nexus
            Nexus Repository
            https://nexus.example.com/repository/maven-public/
            *
        
    

    
    
        
            nexus-releases
            deployment
            password123
        
    

    
    
        
            nexus
            
                
                    central
                    https://nexus.example.com/repository/maven-public/
                    true
                    true
                
            
        
    

    
        nexus
    

Testing Configuration

JUnit 5


    
        org.junit.jupiter
        junit-jupiter
        5.10.1
        test
    

    
        org.mockito
        mockito-core
        5.7.0
        test
    

    
        org.assertj
        assertj-core
        3.24.2
        test
    

Code Coverage (JaCoCo)


    org.jacoco
    jacoco-maven-plugin
    0.8.11
    
        
            
                prepare-agent
            
        
        
            report
            test
            
                report
            
        
        
            check
            
                check
            
            
                
                    
                        PACKAGE
                        
                            
                                LINE
                                COVEREDRATIO
                                0.80
                            
                        
                    
                
            
        
    
# Generate coverage report
mvn clean test jacoco:report

# View report at target/site/jacoco/index.html

CI/CD Configuration

GitHub Actions

name: Maven Build

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkou

…

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [CuriousLearner](https://github.com/CuriousLearner)
- **Source:** [CuriousLearner/devkit](https://github.com/CuriousLearner/devkit)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.