def dependencies=(dependencies)
      @resolver.clearDependencies()

      unless dependencies.is_a? Array
        dependencies = [dependencies]
      end

      dependencies.each do |dependent|
        # Hash of notation => scope
        if dependent.is_a? Hash
          key = dependent.keys.first

          # Add pom dependencies with scopes
          if key =~ /\.xml$/i
            scopes = nil
            if dependent[key].is_a? Array
              scopes = dependent[key]
            else
              scopes = [dependent[key]]
            end

            add_pom_dependencies( key, scopes )

            # Add a dependency notation with scopes
          else
            add_notation_dependency( key, dependent[key] )
          end

        elsif dependent.is_a? String

          # Add pom dependencies with default scopes
          if dependent =~ /\.xml$/i
            add_pom_dependencies( dependent )

            # Add a dependency notation with compile scope
          else
            add_notation_dependency( dependent, 'compile' )
          end

          # Add an Aether dependency
        else
          add_dependency( dependent )
        end
      end
    end
def dependencies=(dependencies)
      @resolver.clearDependencies()

      unless dependencies.is_a? Array
        dependencies = [dependencies]
      end

      dependencies.each do |dependent|
        # Hash of notation => scope
        if dependent.is_a? Hash
          key = dependent.keys.first

          # Add pom dependencies with scopes
          if key =~ /\.xml$/i
            scopes = nil
            if dependent[key].is_a? Array
              scopes = dependent[key]
            else
              scopes = [dependent[key]]
            end

            add_pom_dependencies( key, scopes )

            # Add a dependency notation with scopes
          else
            add_notation_dependency( key, dependent[key] )
          end

        elsif dependent.is_a? String

          # Add pom dependencies with default scopes
          if dependent =~ /\.xml$/i
            add_pom_dependencies( dependent )

            # Add a dependency notation with compile scope
          else
            add_notation_dependency( dependent, 'compile' )
          end

          # Add an Aether dependency
        else
          add_dependency( dependent )
        end
      end
    end
Set the dependencies

 The dependencies param takes an [Array] of mixed dependencies:
  * [String] Artifact notation, such as groupId:artifactId:version, e.g. 'junit:junit:4.7'
  * [Hash] of a single artifaction notation => scope - { 'junit:junit:4.7' => 'test' }
  * [String] path to a local pom - 'lib/pom.xml'
  * [Hash] of a single path to a local pom => scope - { 'lib/pom.xml' => ['compile','test'] }

 @param [Array] dependencies
 @see https://github.com/mguymon/naether/wiki/Notations