public void validate()

in src/main/java/org/apache/maven/resolver/internal/ant/types/Pom.java [60:76]


    public void validate() {
        if (isReference()) {
            getRef().validate();
        } else {
            if (file == null) {
                if (groupId == null) {
                    throw new BuildException("You must specify the 'groupId' for the POM");
                }
                if (artifactId == null) {
                    throw new BuildException("You must specify the 'artifactId' for the POM");
                }
                if (version == null) {
                    throw new BuildException("You must specify the 'version' for the POM");
                }
            }
        }
    }