Skip to content
maven-build logo

Clean and build all modules

maven-build

Maven build configuration for the crypto-scout multi-module Java 25 project

SKILL.md

Full skill instructions

What I Do

Provide guidance for building, testing, and packaging the crypto-scout multi-module Maven project.

Project Structure

crypto-scout/
├── pom.xml                    # Root aggregator POM
├── crypto-scout-test/
│   └── pom.xml               # Test library
├── crypto-scout-client/
│   └── pom.xml               # Data collection service
├── crypto-scout-collector/
│   └── pom.xml               # Data persistence service
└── crypto-scout-analyst/
    └── pom.xml               # Analysis service

Build Commands

Full Build

# Clean and build all modules
mvn clean install

# Build without tests (faster)
mvn -q -DskipTests install

Module-Specific Builds

# Build specific module
cd crypto-scout-client
mvn clean package

# Build with dependency resolution from root
cd crypto-scout-collector
mvn clean package -DskipTests

Testing

# Run all tests
mvn test

# Run tests for specific module
cd crypto-scout-test && mvn test

# Run single test class
mvn test -Dtest=AmqpPublisherTest

# Run single test method
mvn test -Dtest=AmqpPublisherTest#shouldPublishPayloadToStream

# Run with extended timeout (slow environments)
mvn -q -Dpodman.compose.up.timeout.min=5 test

# Custom database URL for tests
mvn -q -Dtest.db.jdbc.url=jdbc:postgresql://localhost:5432/​crypto_scout test

Clean Build

# Clean all modules
mvn clean

# Clean and rebuild single module
cd crypto-scout-client && mvn clean package -DskipTests

POM Configuration

Root POM (Aggregator)

<project>
    <groupId>com.github.akarazhev.cryptoscout</​groupId>
    <artifactId>crypto-scout</​artifactId>
    <version>0.0.1</​version>
    <packaging>pom</​packaging>
    
    <modules>
        <module>crypto-scout-test</​module>
        <module>crypto-scout-client</​module>
        <module>crypto-scout-collector</​module>
        <module>crypto-scout-analyst</​module>
    </​modules>
</​project>

Module POM Structure

<project>
    <parent>
        <groupId>com.github.akarazhev.cryptoscout</​groupId>
        <artifactId>crypto-scout</​artifactId>
        <version>0.0.1</​version>
    </​parent>
    
    <artifactId>crypto-scout-client</​artifactId>
    <packaging>jar</​packaging>
    
    <properties>
        <java.version>25</​java.version>
        <maven.compiler.release>25</​maven.compiler.release>
        <activej.version>6.0-rc2</​activej.version>
        <stream-client.version>1.4.0</​stream-client.version>
    </​properties>
    
    <build>
        <plugins>
            <!-- Compiler plugin -->
            <plugin>
                <groupId>org.apache.maven.plugins</​groupId>
                <artifactId>maven-compiler-plugin</​artifactId>
                <version>3.14.1</​version>
                <configuration>
                    <release>25</​release>
                </​configuration>
            </​plugin>
            
            <!-- Shade plugin for fat JAR -->
            <plugin>
                <groupId>org.apache.maven.plugins</​groupId>
                <artifactId>maven-shade-plugin</​artifactId>
                <version>3.6.1</​version>
                <executions>
                    <execution>
                        <phase>package</​phase>
                        <goals>
                            <goal>shade</​goal>
                        </​goals>
                        <configuration>
                            <transformers>
                                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                    <mainClass>com.github.akarazhev.cryptoscout.Client</​mainClass>
                                </​transformer>
                            </​transformers>
                        </​configuration>
                    </​execution>
                </​executions>
            </​plugin>
        </​plugins>
    </​build>
</​project>

Key Dependencies by Module

crypto-scout-test

  • jcryptolib - JSON utilities
  • junit-jupiter - JUnit 6 testing
  • stream-client - RabbitMQ Streams
  • amqp-client - RabbitMQ AMQP
  • postgresql - PostgreSQL driver

crypto-scout-client

  • jcryptolib - JSON utilities, clients
  • activej-servicegraph - DI and lifecycle
  • activej-jmx - JMX monitoring
  • stream-client - RabbitMQ Streams

crypto-scout-collector

  • jcryptolib - JSON utilities
  • activej-servicegraph - DI and lifecycle
  • activej-jmx - JMX monitoring
  • activej-datastream - Data streaming
  • stream-client - RabbitMQ Streams
  • amqp-client - RabbitMQ AMQP
  • postgresql - PostgreSQL driver
  • HikariCP - Connection pooling

crypto-scout-analyst

  • Same as crypto-scout-collector

Build Artifacts

Output Locations

ModuleArtifactLocation
crypto-scout-testJAR librarytarget/​crypto-scout-test-0.0.1.jar
crypto-scout-clientFat JARtarget/​crypto-scout-client-0.0.1.jar
crypto-scout-collectorFat JARtarget/​crypto-scout-collector-0.0.1.jar
crypto-scout-analystFat JARtarget/​crypto-scout-analyst-0.0.1.jar

Running Fat JARs

# crypto-scout-client
java -jar crypto-scout-client/​target/​crypto-scout-client-0.0.1.jar

# crypto-scout-collector
java -jar crypto-scout-collector/​target/​crypto-scout-collector-0.0.1.jar

# crypto-scout-analyst
java -jar crypto-scout-analyst/​target/​crypto-scout-analyst-0.0.1.jar

Troubleshooting

Build Failures

# Clear local repo and rebuild
rm -rf ~/​.m2/​repository/​com/​github/​akarazhev
mvn clean install

# Debug dependency tree
mvn dependency:tree

# Check for updates
mvn versions:display-dependency-updates

Test Failures

# Run with verbose output
mvn test -X

# Skip tests temporarily
mvn install -DskipTests

# Run specific test with debug
mvn test -Dtest=ClassName -Dmaven.surefire.debug

When to Use Me

Use this skill when:

  • Building the project for the first time
  • Running tests across modules
  • Creating new module POMs
  • Troubleshooting build failures
  • Configuring Maven plugins
  • Understanding dependency management
  • Packaging services for deployment

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View