in src/main/java/org/apache/maven/artifact/ant/AbstractArtifactTask.java [669:692]
public Pom getPom()
{
Pom thePom = this.pom;
if ( thePom != null && getPomRefId() != null )
{
throw new BuildException( "You cannot specify both a nested \"pom\" element and a \"pomrefid\" attribute" );
}
if ( getPomRefId() != null )
{
Object pomRefObj = getProject().getReference( getPomRefId() );
if ( pomRefObj instanceof Pom )
{
thePom = (Pom) pomRefObj;
}
else
{
throw new BuildException( "Reference '" + pomRefId + "' was not found." );
}
}
return thePom;
}