Package org.apache.maven.api.services
Interface ArtifactCoordinateFactory
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultArtifactCoordinateFactory
Service used to create
ArtifactCoordinate
objects.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(ArtifactCoordinateFactoryRequest request) Creates a coordinate.default ArtifactCoordinate
Creates a coordinate out of string that is formatted like:<groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>
default ArtifactCoordinate
default ArtifactCoordinate
create
(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) default ArtifactCoordinate
-
Method Details
-
create
Creates a coordinate.- Parameters:
request
- the request holding coordinate creation parameters- Returns:
- an
ArtifactCoordinate
, nevernull
- Throws:
IllegalArgumentException
- ifrequest
is null orrequest.session
is null or invalid
-
create
@Nonnull default ArtifactCoordinate create(@Nonnull Session session, @Nonnull String coordinateString) Creates a coordinate out of string that is formatted like:<groupId>:<artifactId>[:<extension>[:<classifier>]]:<version>
- Parameters:
session
- the session.coordinateString
- the string having "standard" coordinate.- Returns:
- an
ArtifactCoordinate
, nevernull
- Throws:
IllegalArgumentException
- ifsession
is null or invalid
-
create
-
create
-
create
-