public void setUrl( String url ) { this.url = url; this.protocol = protocol( url ); this.basedir = basedir( url ); }
/** * Create a remote download repository. * * @param id the unique identifier of the repository * @param url the URL of the repository * @param layout the layout of the repository * @param snapshots the policies to use for snapshots * @param releases the policies to use for releases */ public MavenArtifactRepository( String id, String url, ArtifactRepositoryLayout layout, ArtifactRepositoryPolicy snapshots, ArtifactRepositoryPolicy releases ) { this.id = id; this.url = url; this.layout = layout; this.snapshots = snapshots; this.releases = releases; // // Derive these from the URL // this.protocol = protocol( url ); this.basedir = basedir( url ); }