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 Stringprivate StringvoidsetPath(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:ArtifactManagerReturns the path of the file previously associated to this artifact orOptional.empty()if no path has been associated.- Specified by:
getPathin interfaceArtifactManager
-
setPath
Description copied from interface:ArtifactManagerAssociates the given file path to the artifact.- Specified by:
setPathin 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
-