org.apache.maven.model.DeploymentRepository Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-model Show documentation
Show all versions of maven-model Show documentation
Model for Maven POM (Project Object Model)
// =================== DO NOT EDIT THIS FILE ====================
// Generated by Modello 2.3.0,
// any modifications will be overwritten.
// ==============================================================
package org.apache.maven.model;
/**
* Deployment repository contains the information needed for
* deploying to the remote
* repository, which adds uniqueVersion property to usual
* repositories for download.
*
* @version $Revision$ $Date$
*/
@SuppressWarnings( "all" )
public class DeploymentRepository
extends Repository
implements java.io.Serializable, java.lang.Cloneable
{
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* Whether to assign snapshots a unique version comprised of
* the timestamp and
* build number, or to use the same version each
* time.
*/
private boolean uniqueVersion = true;
//-----------/
//- Methods -/
//-----------/
/**
* Method clone.
*
* @return DeploymentRepository
*/
public DeploymentRepository clone()
{
try
{
DeploymentRepository copy = (DeploymentRepository) super.clone();
return copy;
}
catch ( java.lang.Exception ex )
{
throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
+ " does not support clone()" ).initCause( ex );
}
} //-- DeploymentRepository clone()
/**
* Get whether to assign snapshots a unique version comprised
* of the timestamp and
* build number, or to use the same version each
* time.
*
* @return boolean
*/
public boolean isUniqueVersion()
{
return this.uniqueVersion;
} //-- boolean isUniqueVersion()
/**
* Set whether to assign snapshots a unique version comprised
* of the timestamp and
* build number, or to use the same version each
* time.
*
* @param uniqueVersion a uniqueVersion object.
*/
public void setUniqueVersion( boolean uniqueVersion )
{
this.uniqueVersion = uniqueVersion;
} //-- void setUniqueVersion( boolean )
}