From 801f39ccfcbf5c2a1b876c66323d05b248a51cf7 Mon Sep 17 00:00:00 2001
From: buildmaster Example of a client1, pom.xml inside the server folder.<?xml version="1.0" encoding="UTF-8"?>
<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">
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
@@ -211,7 +211,7 @@ one to one to the contents of the repo.
Example of a mvn clean install -DskipTests to locally install
stubs of the producer project.
The pom.xml in the root folder can look like this:
<?xml version="1.0" encoding="UTF-8"?> <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"> + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.example.standalone</groupId> diff --git a/2.0.x/multi/multi__spring_cloud_contract_stub_runner.html b/2.0.x/multi/multi__spring_cloud_contract_stub_runner.html index 0fd3eb29f7..fcd41bc6c9 100644 --- a/2.0.x/multi/multi__spring_cloud_contract_stub_runner.html +++ b/2.0.x/multi/multi__spring_cloud_contract_stub_runner.html @@ -63,9 +63,9 @@ versions, which are automatically uploaded after every successful build:"http://repo.spring.io/snapshot" } - maven { url "http://repo.spring.io/milestone" } - maven { url "http://repo.spring.io/release" } + maven { url "https://repo.spring.io/snapshot" } + maven { url "https://repo.spring.io/milestone" } + maven { url "https://repo.spring.io/release" } }
The easiest approach would be to centralize the way stubs are kept. For example, you can keep them as jars in a Maven repository.
![]() | Tip | ||
|---|---|---|---|
For both Maven and Gradle, the setup comes ready to work. However, you can customize diff --git a/2.0.x/multi/multi__spring_cloud_contract_verifier_introduction.html b/2.0.x/multi/multi__spring_cloud_contract_verifier_introduction.html index 4c640f4bd8..0b0f29c12c 100644 --- a/2.0.x/multi/multi__spring_cloud_contract_verifier_introduction.html +++ b/2.0.x/multi/multi__spring_cloud_contract_verifier_introduction.html @@ -451,9 +451,9 @@ following section to your build: Maven. repositories {
mavenCentral()
mavenLocal()
- maven { url "http://repo.spring.io/snapshot" }
- maven { url "http://repo.spring.io/milestone" }
- maven { url "http://repo.spring.io/release" }
+ maven { url "https://repo.spring.io/snapshot" }
+ maven { url "https://repo.spring.io/milestone" }
+ maven { url "https://repo.spring.io/release" }
}
As a developer of the Loan Issuance service (a consumer of the Fraud Detection server), you might do the following steps:
Start doing TDD by writing a test for your feature. @Test public void shouldBeRejectedDueToAbnormalLoanAmount() { diff --git a/2.0.x/multi/multi__spring_cloud_contract_verifier_setup.html b/2.0.x/multi/multi__spring_cloud_contract_verifier_setup.html index d5252fc335..f90a8ccdc5 100644 --- a/2.0.x/multi/multi__spring_cloud_contract_verifier_setup.html +++ b/2.0.x/multi/multi__spring_cloud_contract_verifier_setup.html @@ -53,9 +53,9 @@ which are automatically uploaded after every successful build, as shown here:"http://repo.spring.io/snapshot" } - maven { url "http://repo.spring.io/milestone" } - maven { url "http://repo.spring.io/release" } + maven { url "https://repo.spring.io/snapshot" } + maven { url "https://repo.spring.io/milestone" } + maven { url "https://repo.spring.io/release" } } } By default, Spring Cloud Contract Verifier is looking for stubs in the
The directory containing stub definitions is treated as a class name, and each stub diff --git a/2.0.x/single/spring-cloud-contract.html b/2.0.x/single/spring-cloud-contract.html index f16ab1831c..c6d48fe9eb 100644 --- a/2.0.x/single/spring-cloud-contract.html +++ b/2.0.x/single/spring-cloud-contract.html @@ -456,9 +456,9 @@ following section to your build: Maven. repositories {
mavenCentral()
mavenLocal()
- maven { url "http://repo.spring.io/snapshot" }
- maven { url "http://repo.spring.io/milestone" }
- maven { url "http://repo.spring.io/release" }
+ maven { url "https://repo.spring.io/snapshot" }
+ maven { url "https://repo.spring.io/milestone" }
+ maven { url "https://repo.spring.io/release" }
}
As a developer of the Loan Issuance service (a consumer of the Fraud Detection server), you might do the following steps:
Start doing TDD by writing a test for your feature. @Test public void shouldBeRejectedDueToAbnormalLoanAmount() { @@ -878,7 +878,7 @@ expectations of the 3 consumers ( By default, Spring Cloud Contract Verifier is looking for stubs in the
The directory containing stub definitions is treated as a class name, and each stub @@ -2434,9 +2434,9 @@ versions, which are automatically uploaded after every successful build: "http://repo.spring.io/snapshot" } - maven { url "http://repo.spring.io/milestone" } - maven { url "http://repo.spring.io/release" } + maven { url "https://repo.spring.io/snapshot" } + maven { url "https://repo.spring.io/milestone" } + maven { url "https://repo.spring.io/release" } }
The easiest approach would be to centralize the way stubs are kept. For example, you can keep them as jars in a Maven repository.
|