// Resolve the project model
model = effectiveModelFilter.filter( model );
// The version should be updated to the filename version if it is a unique snapshot
FilenameParts parts = RepositoryLayoutUtils.splitFilename( artifactFile.getName(), null );
if ( model.getVersion().equals( VersionUtil.getBaseVersion( parts.version ) ) &&
VersionUtil.isUniqueSnapshot( parts.version ) )
{
model.setVersion( parts.version );
}