in src/main/java/org/apache/maven/plugins/ear/ResourceRef.java [72:90]
public ResourceRef( String name, String type, String auth, String lookupName )
{
if ( name == null || name.isEmpty() )
{
throw new IllegalArgumentException( RESOURCE_REF_NAME + " in " + RESOURCE_REF_NAME
+ " element cannot be null." );
}
else if ( ( type == null || type.isEmpty() ) && ( auth == null || auth.isEmpty() ) )
{
throw new IllegalArgumentException( RESOURCE_TYPE + " in " + RESOURCE_REF_NAME
+ " element cannot be null " );
}
this.name = name;
this.type = type;
this.auth = auth;
this.lookupName = lookupName;
}