Use MAVEN_HOME when calling mvn to build the samples using Maven
See gh-33
This commit is contained in:
@@ -104,13 +104,13 @@ task buildRestNotesSpringDataRestSampleWithGradle(type: GradleBuild) {
|
|||||||
task buildRestNotesSpringHateoasSampleWithMaven(type: Exec) {
|
task buildRestNotesSpringHateoasSampleWithMaven(type: Exec) {
|
||||||
dependsOn 'spring-restdocs:install'
|
dependsOn 'spring-restdocs:install'
|
||||||
workingDir 'samples/rest-notes-spring-hateoas'
|
workingDir 'samples/rest-notes-spring-hateoas'
|
||||||
commandLine 'mvn', 'clean', 'package'
|
commandLine "${System.env.MAVEN_HOME}/bin/mvn", 'clean', 'package'
|
||||||
}
|
}
|
||||||
|
|
||||||
task buildRestNotesSpringDataRestSampleWithMaven(type: Exec) {
|
task buildRestNotesSpringDataRestSampleWithMaven(type: Exec) {
|
||||||
dependsOn 'spring-restdocs:install'
|
dependsOn 'spring-restdocs:install'
|
||||||
workingDir 'samples/rest-notes-spring-data-rest'
|
workingDir 'samples/rest-notes-spring-data-rest'
|
||||||
commandLine 'mvn', 'clean', 'package'
|
commandLine "${System.env.MAVEN_HOME}/bin/mvn", 'clean', 'package'
|
||||||
}
|
}
|
||||||
|
|
||||||
wrapper {
|
wrapper {
|
||||||
|
|||||||
Reference in New Issue
Block a user