def run_on_modifications(paths)
      if paths.include? 'all'
        run_all
      elsif paths.include? 'compile'
        run_maven :compile => true
      else
        run_maven :classes => paths
      end
    end
def run_on_modifications(paths)
      if paths.include? 'all'
        run_all
      elsif paths.include? 'compile'
        run_maven :compile => true
      else
        run_maven :classes => paths
      end
    end
Default behaviour on file(s) changes that the Guard plugin watches.
 @param [Array<String>] paths the changes files or paths
 @raise [:task_has_failed] when run_on_change has failed
 @return [Object] the task result