Skip to main content

Build and test Java applications

This guide will help you build and test Java applications with FluentCI.

Before you begin

  • Be familiar with creating Java-based applications.
  • Be familiar with Maven
  • Have your Java project ready.

Using the Maven Plugin

You can use FluentCI to build Java applications using maven plugin, no need to install Maven or JDK on your machine, FluentCI will handle everything for you.

The following commands can be used to build and test Java applications:

fluentci run --wasm maven test
fluentci run --wasm maven package -Dmaven.test.skip=true

CI/CD pipeline integrations

The following examples show how to integrate FluentCI with popular CI providers to build and test Java applications:

ci.yml
name: ci
on:
push:
branches:
- main
jobs:
tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Fluent CI
uses: fluentci-io/setup-fluentci@v5
- name: test
run: fluentci run --wasm maven test
- name: package
run: fluentci run --wasm maven package -Dmaven.test.skip=true