Package org.apache.maven.internal.impl
Class DefaultArtifactManager
java.lang.Object
org.apache.maven.internal.impl.DefaultArtifactManager
- All Implemented Interfaces:
Service
,ArtifactManager
@Named
@Typed
@SessionScoped
public class DefaultArtifactManager
extends Object
implements ArtifactManager
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the path of the file previously associated to this artifact orOptional.empty()
if no path has been associated.getProjectArtifacts
(MavenProject project) Retrieve a stream of the project's artifacts.private String
private String
void
setPath
(ProducedArtifact artifact, Path path) Associates the given file path to the artifact.
-
Field Details
-
session
-
paths
-
-
Constructor Details
-
DefaultArtifactManager
-
-
Method Details
-
getPath
Description copied from interface:ArtifactManager
Returns the path of the file previously associated to this artifact orOptional.empty()
if no path has been associated.- Specified by:
getPath
in interfaceArtifactManager
-
setPath
Description copied from interface:ArtifactManager
Associates the given file path to the artifact.- Specified by:
setPath
in interfaceArtifactManager
-
getProjectArtifacts
Retrieve a stream of the project's artifacts. Do not include the POM artifact as the file can't be set anyway. -
id
-
id
-