diff --git a/maven-mboot/src/bash/maven.functions b/maven-mboot/src/bash/maven.functions index 0496291869..09e656647f 100755 --- a/maven-mboot/src/bash/maven.functions +++ b/maven-mboot/src/bash/maven.functions @@ -219,7 +219,14 @@ buildMavenProject() if [ ! -z $sourceDirectory ] && [ -d $sourceDirectory ] then - compile "$projectDependencyClassPath" $buildDest $sourceDirectory + generatedSourceDirectory=target/generated-sources + + if [ -d $generatedSourceDirectory ] + then + generatedSources=`find $generatedSourceDirectory -name '*.java'` + fi + + compile "$projectDependencyClassPath" $buildDest $sourceDirectory $generatedSources isCommandSuccessful $? "Failed compiling classes!"