Fabric8 Maven :: Plugin


License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

io.fabric8
ArtifactId

ArtifactId

fabric8-maven-plugin
Last Version

Last Version

4.4.1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Fabric8 Maven :: Plugin
Fabric8 Maven :: Plugin

Download fabric8-maven-plugin

How to add to project

<plugin>
    <groupId>io.fabric8</groupId>
    <artifactId>fabric8-maven-plugin</artifactId>
    <version>4.4.1</version>
</plugin>

Dependencies

compile (29)

Group / Artifact Type Version
io.fabric8 : docker-maven-plugin jar 0.31.0
io.fabric8 : fabric8-maven-plugin-core jar 4.4.1
io.fabric8 : fabric8-maven-plugin-enricher-api jar 4.4.1
io.fabric8 : fabric8-maven-plugin-enricher-standard jar 4.4.1
io.fabric8 : fabric8-maven-plugin-enricher-fabric8 jar 4.4.1
io.fabric8 : fabric8-maven-plugin-generator-api jar 4.4.1
io.fabric8 : fabric8-maven-plugin-generator-java-exec jar 4.4.1
io.fabric8 : fabric8-maven-plugin-generator-spring-boot jar 4.4.1
io.fabric8 : fabric8-maven-plugin-generator-vertx jar 4.4.1
io.fabric8 : fabric8-maven-plugin-generator-karaf jar 4.4.1
io.fabric8 : fabric8-maven-plugin-generator-wildfly-swarm jar 4.4.1
io.fabric8 : fabric8-maven-plugin-generator-quarkus jar 4.4.1
io.fabric8 : fabric8-maven-plugin-generator-thorntail-v2 jar 4.4.1
io.fabric8 : fabric8-maven-plugin-generator-webapp jar 4.4.1
io.fabric8 : fabric8-maven-plugin-generator-openliberty jar 4.4.1
io.fabric8 : fabric8-maven-plugin-watcher-api jar 4.4.1
io.fabric8 : fabric8-maven-plugin-watcher-standard jar 4.4.1
io.fabric8 : kubernetes-client jar 4.9.0
org.apache.maven : maven-plugin-api jar 3.3.1
org.apache.maven : maven-core jar 3.3.1
org.apache.maven : maven-model jar 3.3.1
org.apache.maven : maven-artifact jar 3.3.1
org.apache.maven : maven-compat jar 3.3.1
org.codehaus.plexus : plexus-utils jar 3.1.0
org.codehaus.plexus : plexus-component-annotations jar 1.7.1
org.codehaus.plexus : plexus-interactivity-api jar 1.0-alpha-6
org.apache.commons : commons-lang3 jar 3.5
commons-io : commons-io jar 2.5
com.google.code.gson : gson jar 2.8.5

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (6)

Group / Artifact Type Version
junit : junit jar 4.11
org.assertj : assertj-core jar 3.11.1
org.hamcrest : hamcrest-all jar 1.3
org.jmockit : jmockit jar 1.43
com.jayway.jsonpath : json-path-assert jar 2.2.0
org.apache.maven.plugin-testing : maven-plugin-testing-harness jar 3.3.0

Project Modules

There are no modules declared in this project.

Deprecation Note:

This project has been moved to https://github.com/eclipse/jkube . All new features would be implemented there and support for FMP would be eventually dropped.

fabric8-maven-plugin

Maven Central Circle CI Coverage Technical Debt Dependency Status

fabric8 logo

Watch the full asciicast

Introduction

This Maven plugin is a one-stop-shop for building and deploying Java applications for Docker, Kubernetes and OpenShift. It brings your Java applications on to Kubernetes and OpenShift. It provides a tight integration into maven and benefits from the build configuration already provided. It focuses on three tasks:

  • Building Docker images
  • Creating OpenShift and Kubernetes resources
  • Deploy application on Kubernetes and OpenShift

Usage

To enable fabric8 maven plugin on your project just add this to the plugins sections of your pom.xml:

      <plugin>
        <groupId>io.fabric8</groupId>
        <artifactId>fabric8-maven-plugin</artifactId>
        <version>${fmp.version}</version>
      </plugin>

Want to get started fast? Check out the Blogpost for Getting Started with Fabric8 Maven Plugin.

The full documentation can be found in the User Manual [PDF]. It supports the following goals:

Goal Description
fabric8:resource Create Kubernetes and OpenShift resource descriptors
fabric8:build Build Docker images
fabric8:push Push Docker images to a registry
fabric8:deploy Deploy Kubernetes / OpenShift resource objects to a cluster
fabric8:watch Watch for doing rebuilds and restarts

Features

  • Includes docker-maven-plugin for dealing with Docker images and hence inherits its flexible and powerful configuration.
  • Supports both Kubernetes and OpenShift descriptors
  • OpenShift Docker builds with a binary source (as an alternative to a direct image build against a Docker daemon)
  • Various configuration styles:
    • Zero Configuration for a quick ramp-up where opinionated defaults will be pre-selected.
    • Inline Configuration within the plugin configuration in an XML syntax.
    • External Configuration templates of the real deployment descriptors which are enriched by the plugin.
  • Flexible customization:
    • Generators analyze the Maven build and generated automatic Docker image configurations for certain systems (spring-boot, plain java, karaf ...)
    • Enrichers extend the Kubernetes / OpenShift resource descriptors by extra information like SCM labels and can add default objects like Services.
    • Generators and Enrichers can be individually configured and combined into profiles

OpenShift and Kubernetes Compatibility

✔️ : Supported, all available features can be used

: Not supported at all

🔵 : Supported, but not all features can be used

OpenShift
FMP Openshift 4.2.0 Openshift 4.1.0 OpenShift 3.11.0 OpenShift 3.10.0 OpenShift 3.9.0 OpenShift 3.7.0 OpenShift 3.6.0
FMP 4.4.1 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.4.0 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.3.1 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.3.0 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.2.0 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.1.0 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.0.0 🔵 🔵 ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.0.0-M1 🔵 🔵 🔵 🔵 ✔️ ✔️ ✔️
FMP 4.0.0-M2 🔵 🔵 🔵 🔵 ✔️ ✔️ ✔️
FMP 3.5.42 🔵 ✔️ ✔️
FMP 3.5.41 🔵 ✔️ ✔️
FMP 3.5.40 🔵 ✔️ ✔️
FMP 3.5.39 ✔️ ✔️
FMP 3.5.38 ✔️ ✔️
FMP 3.5.37 ✔️ ✔️
FMP 3.5.35 ✔️ ✔️
FMP 3.5.34 ✔️ ✔️
FMP 3.5.33 ✔️ ✔️
FMP 3.5.32 ✔️ ✔️
Kubernetes
FMP Kubernetes 1.15.3 Kubernetes 1.14.2 Kubernetes 1.12.0 Kubernetes 1.11.0 Kubernetes 1.10.0 Kubernetes 1.9.0 Kubernetes 1.8.0 Kubernetes 1.7.0 Kubernetes 1.6.0 Kubernetes 1.5.1 Kubernetes 1.4.0
FMP 4.4.1 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.4.0 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.3.1 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.3.0 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.2.0 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.1.0 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.0.0 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
FMP 4.0.0-M2 🔵 🔵 🔵 ✔️ ✔️ ✔️ ✔️
FMP 4.0.0-M1 🔵 🔵 🔵 ✔️ ✔️ ✔️ ✔️
FMP 3.5.42 🔵 🔵 🔵 🔵 ✔️ ✔️ ✔️ ✔️ ✔️
FMP 3.5.41 🔵 ✔️ ✔️ ✔️ ✔️ ✔️
FMP 3.5.40 🔵 ✔️ ✔️ ✔️ ✔️ ✔️
FMP 3.5.39 ✔️ ✔️ ✔️ ✔️ ✔️
FMP 3.5.38 ✔️ ✔️ ✔️ ✔️ ✔️
FMP 3.5.37 ✔️ ✔️ ✔️ ✔️ ✔️
FMP 3.5.35 ✔️ ✔️ ✔️ ✔️ ✔️
FMP 3.5.34 ✔️ ✔️ ✔️ ✔️ ✔️
FMP 3.5.33 ✔️ ✔️ ✔️ ✔️ ✔️
FMP 3.5.32 ✔️ ✔️ ✔️ ✔️ ✔️

Documentation and Support

  • User Manual [PDF]
  • Examples are in the samples directory
  • Many fabric8 Quickstarts use this plugin and are good showcases, too.
  • You'll find us in the fabric8 community and on IRC freenode in channel #fabric8 and we are happy to answer any questions.
  • Contributions are highly appreciated and encouraged. Please send us Pull Requests.

fabric8-maven-plugin 3 vs. 2

This is a complete rewrite of the former fabric8-maven plugin. It does not share the same configuration syntax, but migration should be straight forward - please use the fabric8:migrate goal from 2.x of the plugin.

io.fabric8

fabric8

open source development platform for kubernetes

Versions

Version
4.4.1
4.4.0
4.3.1
4.3.0
4.2.0
4.1.0
4.0.0
4.0.0-M2
4.0.0-M1
3.5.42
3.5.41
3.5.40
3.5.39
3.5.38
3.5.37
3.5.35
3.5.34
3.5.33
3.5.32
3.5.31
3.5.30
3.5.29
3.5.28
3.5.26
3.5.25
3.5.22
3.5.21
3.5.20
3.5.19
3.5.17
3.5.16
3.5.15
3.5.14
3.5.13
3.5.12
3.5.10
3.5.9
3.5.5
3.5.4
3.5.2
3.5.1
3.5.0
3.4.2
3.4.1
3.4.0
3.3.5
3.3.4
3.3.3
3.3.2
3.3.1
3.3.0
3.2.31
3.2.30
3.2.28
3.2.27
3.2.26
3.2.20
3.2.19
3.2.18
3.2.17
3.2.16
3.2.15
3.2.14
3.2.13
3.2.12
3.2.11
3.2.10
3.2.9
3.2.8
3.2.7
3.2.5
3.2.4
3.2.1
3.1.92
3.1.90
3.1.89
3.1.88
3.1.87
3.1.86
3.1.84
3.1.83
3.1.81
3.1.80
3.1.79
3.1.76
3.1.75
3.1.74
3.1.73
3.1.72
3.1.71
3.1.70
3.1.69
3.1.68
3.1.67
3.1.66
3.1.65
3.1.64
3.1.63
3.1.62
3.1.61
3.1.59
3.1.58
3.1.57
3.1.56
3.1.55
3.1.53
3.1.52
3.1.50
3.1.49
3.1.48
3.1.46
3.1.45
3.1.44
3.1.43
3.1.42
3.1.39
3.1.38
3.1.37
3.1.36
3.1.35
3.1.34
3.1.33
3.1.32
3.1.31
3.1.30
3.1.29
3.1.28
3.1.27
3.1.24
3.1.23
3.1.22
3.1.21
3.1.20
3.1.19
3.1.18
3.1.17
3.1.15
3.1.14
3.1.13
3.1.12
3.1.11
3.1.10
3.1.9
3.1.8
3.1.7
3.1.4
3.1.3
3.1.2
3.1.1
3.0.35
3.0.34
3.0.33
3.0.32
3.0.31
3.0.28
3.0.26
3.0.25
3.0.24
3.0.23
3.0.22
3.0.21
3.0.20
3.0.19
3.0.18
3.0.17
3.0.16
3.0.15
3.0.14
3.0.11
3.0.10
3.0.9
3.0.8
3.0.7
3.0.6
3.0.0-M3
3.0.0-M2
3.0.0-M1
2.3.7
2.3.6
2.3.5
2.3.4
2.3.3
2.3.2
2.3.1
2.3.0
2.2.217
2.2.216
2.2.215
2.2.213
2.2.212
2.2.211
2.2.210
2.2.209
2.2.208
2.2.207
2.2.206
2.2.205
2.2.204
2.2.203
2.2.202
2.2.201
2.2.200
2.2.199
2.2.198
2.2.197
2.2.196
2.2.195
2.2.194
2.2.193
2.2.192
2.2.191
2.2.190
2.2.189
2.2.188
2.2.187
2.2.185
2.2.184
2.2.183
2.2.182
2.2.181
2.2.180
2.2.179
2.2.178
2.2.176
2.2.175
2.2.174
2.2.173
2.2.170
2.2.169
2.2.168
2.2.167
2.2.165
2.2.164
2.2.163
2.2.161
2.2.160
2.2.159
2.2.158
2.2.157
2.2.156
2.2.155
2.2.154
2.2.153
2.2.152
2.2.151
2.2.150
2.2.148
2.2.147
2.2.146
2.2.145
2.2.144
2.2.143
2.2.142
2.2.141
2.2.140
2.2.139
2.2.138
2.2.136
2.2.135
2.2.134
2.2.132
2.2.131
2.2.130
2.2.128
2.2.127
2.2.126
2.2.125
2.2.124
2.2.123
2.2.122
2.2.120
2.2.115
2.2.114
2.2.110
2.2.109
2.2.107
2.2.105
2.2.104
2.2.103
2.2.102
2.2.101
2.2.100
2.2.99
2.2.98
2.2.97
2.2.96
2.2.95
2.2.94
2.2.93
2.2.92
2.2.91
2.2.90
2.2.89
2.2.88
2.2.87
2.2.86
2.2.85
2.2.84
2.2.83
2.2.82
2.2.81
2.2.80
2.2.79
2.2.78
2.2.77
2.2.76
2.2.75
2.2.74
2.2.73
2.2.72
2.2.71
2.2.70
2.2.69
2.2.68
2.2.67
2.2.66
2.2.65
2.2.64
2.2.63
2.2.62
2.2.61
2.2.60
2.2.59
2.2.58
2.2.57
2.2.56
2.2.55
2.2.54
2.2.53
2.2.52
2.2.51
2.2.50
2.2.49
2.2.48
2.2.47
2.2.46
2.2.45
2.2.43
2.2.42
2.2.41
2.2.40
2.2.39
2.2.38
2.2.37
2.2.36
2.2.35
2.2.34
2.2.33
2.2.32
2.2.31
2.2.30
2.2.29
2.2.28
2.2.27
2.2.26
2.2.24
2.2.23
2.2.22
2.2.21
2.2.20
2.2.19
2.2.18
2.2.17
2.2.16
2.2.15
2.2.14
2.2.12
2.2.11
2.2.10
2.2.9
2.2.8
2.2.7
2.2.6
2.2.5
2.2.4
2.2.3
2.2.2
2.2.1
2.2.0
2.1.11
2.1.10
2.1.9
2.1.8
2.1.7
2.1.6
2.1.5
2.1.4
2.1.3
2.1.2
2.1.1
2.1.0
2.0.48
2.0.47
2.0.46
2.0.45
2.0.44
2.0.43
2.0.42
2.0.41
2.0.40
2.0.39
2.0.38
2.0.37
2.0.36
2.0.35
2.0.34
2.0.33
2.0.32
2.0.31
2.0.30
2.0.29
2.0.28
2.0.27
2.0.26
2.0.25
2.0.24
2.0.23
2.0.22
2.0.21
2.0.20
2.0.19
2.0.18
2.0.17
2.0.16
2.0.15
2.0.14
2.0.13
2.0.12
2.0.11
2.0.10
2.0.9
2.0.8
2.0.7
2.0.6
2.0.5
2.0.4
2.0.3
2.0.2
2.0.1
2.0.0
1.2.0.redhat-133
1.2.0.Beta4
1.2.0.Beta3
1.2.0.Beta2
1.2.0.Beta1
1.1.0.CR5
1.1.0.CR4
1.1.0.CR3
1.1.0.CR2
1.1.0.CR1
1.1.0.Beta6
1.1.0.Beta5
1.1.0.Beta4
1.1.0.Beta3
1.1.0.Beta2
1.1.0.Beta1
1.0.0.redhat-423
1.0.0.redhat-412
1.0.0.redhat-394