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