public final class MavenRemoteRepositories extends Object
Modifier and Type | Method and Description |
---|---|
static MavenRemoteRepository |
createRemoteRepository(String id,
String url,
String layout)
Overload of
createRemoteRepository(String, URL, String) that thrown an exception if URL is wrong. |
static MavenRemoteRepository |
createRemoteRepository(String id,
URL url,
String layout)
Creates a new
MavenRemoteRepository with ID and URL. |
public static MavenRemoteRepository createRemoteRepository(String id, URL url, String layout)
MavenRemoteRepository
with ID and URL. Please note that the repository layout should always be set to default.id
- The unique ID of the repository to create (arbitrary name)url
- The base URL of the Maven repositorylayout
- he repository layout. Should always be "default"MavenRemoteRepository
with the given ID and URL.IllegalArgumentException
- for null or empty idRuntimeException
- if an error occurred during MavenRemoteRepository
instance creationpublic static MavenRemoteRepository createRemoteRepository(String id, String url, String layout) throws IllegalArgumentException
createRemoteRepository(String, URL, String)
that thrown an exception if URL is wrong.id
- The unique ID of the repository to create (arbitrary name)url
- The base URL of the Maven repositorylayout
- he repository layout. Should always be "default"MavenRemoteRepository
with the given ID and URL.IllegalArgumentException
- for null or empty id or if the URL is technically wrong or nullCopyright © 2022 JBoss by Red Hat. All rights reserved.