hystrix
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>io.fabric8.quickstarts</groupId>
<artifactId>hystrix</artifactId>
<version>2.2.149</version>
</dependency><?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (C) 2015 Red Hat, Inc
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<groupId>io.fabric8.quickstarts</groupId>
<artifactId>springboot</artifactId>
<version>2.2.149</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>hystrix</artifactId>
<name>Fabric8 :: Quickstarts :: Spring-Boot :: Hystrix</name>
<properties>
<fabric8.version>2.2.142</fabric8.version>
<docker.maven.plugin.version>0.15.9</docker.maven.plugin.version>
<archaius.version>0.6.6</archaius.version>
<kubeflix.version>1.0.13</kubeflix.version>
<kubernetes-client.version>1.3.72</kubernetes-client.version>
<hystrix.version>1.4.9</hystrix.version>
<ribbon.version>2.1.2</ribbon.version>
<rxjava.version>1.0.10</rxjava.version>
<rxnetty.version>0.4.9</rxnetty.version>
<turbine.version>1.0.0</turbine.version>
<spring-boot.version>1.3.6.RELEASE</spring-boot.version>
<spring-boot-plugin.version>1.3.6.RELEASE</spring-boot-plugin.version>
<spring-cloud-netflix.version>1.0.6.RELEASE</spring-cloud-netflix.version>
<spring-cloud.version>1.0.5.RELEASE</spring-cloud.version>
<docker.from>fabric8/java-jboss-openjdk8-jdk:1.1.5</docker.from>
<fabric8.dockerUser>fabric8/</fabric8.dockerUser>
<fabric8.image>${fabric8.dockerUser}${project.artifactId}:${project.version}</fabric8.image>
<docker.port.container.http>8080</docker.port.container.http>
<fabric8.service.name>${project.artifactId}</fabric8.service.name>
<fabric8.service.port>80</fabric8.service.port>
<fabric8.service.containerPort>8080</fabric8.service.containerPort>
<fabric8.service.type>LoadBalancer</fabric8.service.type>
<fabric8.annotations.service.servicepath>/hello</fabric8.annotations.service.servicepath>
<fabric8.serviceAccount>ribbon</fabric8.serviceAccount>
<fabric8.serviceAccountCreate>true</fabric8.serviceAccountCreate>
<fabric8.label.hystrix.enabled>true</fabric8.label.hystrix.enabled>
<fabric8.label.hystrix.cluster>default</fabric8.label.hystrix.cluster>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<!-- Import dependency management from Spring Boot -->
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<!-- fabric8 bom must be before fabric8 bom -->
<dependency>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-project-bom-with-platform-deps</artifactId>
<version>${fabric8.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>com.netflix.archaius</groupId>
<artifactId>archaius-core</artifactId>
<version>${archaius.version}</version>
</dependency>
<dependency>
<groupId>com.netflix.hystrix</groupId>
<artifactId>hystrix-core</artifactId>
<version>${hystrix.version}</version>
</dependency>
<dependency>
<groupId>com.netflix.hystrix</groupId>
<artifactId>hystrix-javanica</artifactId>
<version>${hystrix.version}</version>
</dependency>
<dependency>
<groupId>com.netflix.hystrix</groupId>
<artifactId>hystrix-metrics-event-stream</artifactId>
<version>${hystrix.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter</artifactId>
<version>${spring-cloud.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>io.reactivex</groupId>
<artifactId>rxjava</artifactId>
<version>${rxjava.version}</version>
</dependency>
<dependency>
<groupId>io.reactivex</groupId>
<artifactId>rxnetty</artifactId>
<version>${rxnetty.version}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-buffer</artifactId>
<version>4.0.34.Final</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>19.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
<inherited>true</inherited>
<configuration>
<excludes>
<exclude>**/*KT.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
<version>${fabric8.version}</version>
<executions>
<execution>
<id>json</id>
<phase>generate-resources</phase>
<goals>
<goal>json</goal>
</goals>
</execution>
<execution>
<id>attach</id>
<phase>package</phase>
<goals>
<goal>attach</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker.maven.plugin.version}</version>
<configuration>
<images>
<image>
<name>${fabric8.image}</name>
<build>
<from>${docker.from}</from>
<assembly>
<basedir>/app</basedir>
<descriptorRef>artifact</descriptorRef>
</assembly>
<env>
<JAVA_APP_JAR>${project.build.finalName}.jar</JAVA_APP_JAR>
</env>
</build>
</image>
</images>
</configuration>
</plugin>
</plugins>
</build>
<!--
Default sample commands:
mvn -Pf8-build ... build Docker images and create OpenShift deployment configs
mvn -Pf8-deploy ... f8-build + push to Docker registry + applying deployment config to OpenShift
mvn -Pf8-local-deploy ... deployment for a single node setup without pushing to a registry
For individual goal usage please consult the fabric8 documentation
-->
<profiles>
<profile>
<id>f8-build</id>
<build>
<defaultGoal>clean install docker:build fabric8:json</defaultGoal>
</build>
</profile>
<profile>
<id>f8-deploy</id>
<properties>
<fabric8.imagePullPolicySnapshot>Always</fabric8.imagePullPolicySnapshot>
<fabric8.recreate>true</fabric8.recreate>
</properties>
<build>
<defaultGoal>clean install docker:build docker:push fabric8:json fabric8:apply</defaultGoal>
</build>
</profile>
<profile>
<id>f8-local-deploy</id>
<properties>
<fabric8.recreate>true</fabric8.recreate>
</properties>
<build>
<defaultGoal>clean install docker:build fabric8:json fabric8:apply</defaultGoal>
</build>
</profile>
</profiles>
</project>