An open API service indexing awesome lists of open source software.

https://github.com/ivangfr/kubeless-maven-plugin

Maven plugin that reads a class in `/src/main/java/io/kubeless` directory and the `pom.xml` of the project and converts them into a ready to use inputs in `kubeless function deploy` command.
https://github.com/ivangfr/kubeless-maven-plugin

java kubeless maven maven-plugin

Last synced: 7 months ago
JSON representation

Maven plugin that reads a class in `/src/main/java/io/kubeless` directory and the `pom.xml` of the project and converts them into a ready to use inputs in `kubeless function deploy` command.

Awesome Lists containing this project

README

          

# kubeless-maven-plugin

Maven plugin that reads a class in `/src/main/java/io/kubeless` directory and the `pom.xml` of the project and converts them into a ready to use inputs in `kubeless function deploy` command.

> **Tip:** Use the Maven Archetype [`kubeless-dev-environment-archetype`](https://github.com/ivangfr/kubeless-dev-environment-archetype) to implement your Kubeless Functions.

## Maven Plugin

### Setup

A basic setup is
```xml

org.ivanfranchin
kubeless-maven-plugin
1.0-SNAPSHOT

AppFunction




kubeless-convert



convert


```

### Configuration

- #### inputJavaClassName
Name of the input Java Class that contains `Kubeless` Functions. The input Java Class file must be in `${basedir}/src/main/java/io/kubeless`.

- #### outputDirectory
Folder where the output Java Class and the new `pom.xml` file will be created. The default value is `${project.build.directory}/generated-sources/kubeless`.

### Tests

- #### Run only Unit Tests
Unit tests are written using [`JUnit 5`](https://junit.org/junit5/)
```
mvn clean test
```

- #### Run only Integration Tests

Integration tests uses [`maven-invoker-plugin`](https://maven.apache.org/plugins/maven-invoker-plugin/) and the `runt-its` profile and are in `src/it` folder.
```
mvn clean verify -DskipTests -Prun-its
```

- #### Run all Tests

The command below will run Unit and Integration Tests
```
mvn clean verify -Prun-its
```