Added missing target folder
This commit is contained in:
@@ -74,7 +74,7 @@ public class GenerateStubsMojo extends AbstractMojo {
|
||||
|
||||
private File createStubJar(File stubsOutputDir) throws MojoFailureException, MojoExecutionException {
|
||||
if (!stubsOutputDir.exists()) {
|
||||
throw new MojoExecutionException("Stubs could not be found: " + stubsOutputDir.getAbsolutePath() + ".\nPlease make sure that spring-cloud-contract-verifier:convert was invoked");
|
||||
throw new MojoExecutionException("Stubs could not be found: [" + stubsOutputDir.getAbsolutePath() + "] .\nPlease make sure that spring-cloud-contract-verifier:convert was invoked");
|
||||
}
|
||||
String stubArchiveName = project.getBuild().getFinalName() + "-" + classifier + ".jar";
|
||||
File stubsJarFile = new File(projectBuildDirectory, stubArchiveName);
|
||||
|
||||
1
spring-cloud-contract-verifier-maven-plugin/src/test/projects/generatedStubs/.gitignore
vendored
Normal file
1
spring-cloud-contract-verifier-maven-plugin/src/test/projects/generatedStubs/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!target
|
||||
@@ -0,0 +1,18 @@
|
||||
io.codearte.accurest.dsl.GroovyDsl.make {
|
||||
request {
|
||||
method 'POST'
|
||||
url('/users') {
|
||||
|
||||
}
|
||||
headers {
|
||||
header 'Content-Type': 'application/json'
|
||||
}
|
||||
body '''{ "login" : "john", "name": "John The Contract" }'''
|
||||
}
|
||||
response {
|
||||
status 200
|
||||
headers {
|
||||
header 'Location': '/users/john'
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"request" : {
|
||||
"url" : "/users",
|
||||
"method" : "POST",
|
||||
"bodyPatterns" : [ {
|
||||
"matchesJsonPath" : "$[?(@.login == 'john')]"
|
||||
}, {
|
||||
"matchesJsonPath" : "$[?(@.name == 'John The Contract')]"
|
||||
} ],
|
||||
"headers" : {
|
||||
"Content-Type" : {
|
||||
"equalTo" : "application/json"
|
||||
}
|
||||
}
|
||||
},
|
||||
"response" : {
|
||||
"status" : 200,
|
||||
"headers" : {
|
||||
"Location" : "/users/john"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user