Package org.apache.maven.api.services
Interface ArtifactFactory
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultArtifactFactory
Service used to create
Artifact
objects.- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(ArtifactFactoryRequest request) Creates an artifact.default Artifact
default Artifact
create
(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type) createProduced
(ArtifactFactoryRequest request) Creates an artifact.default ProducedArtifact
createProduced
(Session session, String groupId, String artifactId, String version, String extension) default ProducedArtifact
createProduced
(Session session, String groupId, String artifactId, String version, String classifier, String extension, String type)
-
Method Details
-
create
Creates an artifact.- Parameters:
request
- the request holding artifact creation parameters- Returns:
- an
Artifact
, nevernull
- Throws:
IllegalArgumentException
- ifrequest
is null orrequest.session
is null or invalid
-
create
-
create
-
createProduced
Creates an artifact.- Parameters:
request
- the request holding artifact creation parameters- Returns:
- an
Artifact
, nevernull
- Throws:
IllegalArgumentException
- ifrequest
is null orrequest.session
is null or invalid
-
createProduced
-
createProduced
-