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.
- Host: GitHub
- URL: https://github.com/ivangfr/kubeless-maven-plugin
- Owner: ivangfr
- License: apache-2.0
- Created: 2019-12-18T18:01:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-23T11:51:53.000Z (almost 6 years ago)
- Last Synced: 2025-02-10T13:13:30.664Z (8 months ago)
- Topics: java, kubeless, maven, maven-plugin
- Language: Java
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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
```xmlorg.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
```