Skip to main content

Maven

Apache Maven is a software project management and comprehension tool. Based on the concept of a project object model (POM), Maven can manage a project's build, reporting and documentation from a central piece of information.

🚀 Usage​

Add the following command to your CI configuration file:

fluentci run --wasm maven setup

Commands​

NameDescription
setupInstall a specific version of Maven.
validateValidate the project is correct and all necessary information is available.
compileCompile the source code of the project.
testTest the compiled source code using a suitable unit testing framework.
packageTake the compiled code and package it in its distributable format, such as a JAR.
integraton-testProcess and deploy the package if necessary into an environment where integration tests can be run.
verifyRun any checks to verify the package is valid and meets quality criteria.
installInstall the package into the local repository, for use as a dependency in other projects locally.
deployDone in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.
cleanClean up artifacts created by prior builds.
siteGenerate a site documentation for the project.

Code Examples​

Add fluentci-pdk crate to your Cargo.toml:

[dependencies]
fluentci-pdk = "0.2.1"

Use the following code to call a module function:

use fluentci_pdk::dag;

// ...

dag().call("https://pkg.fluentci.io/[email protected]?wasm=1", "setup", vec!["latest"])?;

CI/CD Integration​

The following example shows how to integrate FluentCI with popular CI providers to install Maven:

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
with:
wasm: true
plugin: maven
args: |
setup