Use MAVEN_HOME when calling mvn to build the samples using Maven

See gh-33
This commit is contained in:
Andy Wilkinson
2015-03-17 10:42:43 +00:00
parent 23a6388177
commit 45fe87995f

View File

@@ -104,13 +104,13 @@ task buildRestNotesSpringDataRestSampleWithGradle(type: GradleBuild) {
task buildRestNotesSpringHateoasSampleWithMaven(type: Exec) {
dependsOn 'spring-restdocs:install'
workingDir 'samples/rest-notes-spring-hateoas'
commandLine 'mvn', 'clean', 'package'
commandLine "${System.env.MAVEN_HOME}/bin/mvn", 'clean', 'package'
}
task buildRestNotesSpringDataRestSampleWithMaven(type: Exec) {
dependsOn 'spring-restdocs:install'
workingDir 'samples/rest-notes-spring-data-rest'
commandLine 'mvn', 'clean', 'package'
commandLine "${System.env.MAVEN_HOME}/bin/mvn", 'clean', 'package'
}
wrapper {