private void checkExternalSources()

in src/main/java/org/apache/maven/resolver/internal/ant/types/Dependencies.java [143:153]


    private void checkExternalSources()
    {
        if ( file != null && pom != null )
        {
            throw new BuildException( "You must not specify both a text file and a POM to list dependencies" );
        }
        if ( ( file != null || pom != null ) && nestedDependencies )
        {
            throw new BuildException( "You must not specify both a file/POM and nested dependency collections" );
        }
    }