Class ArtifactsLibraries
java.lang.Object
org.springframework.boot.maven.ArtifactsLibraries
- All Implemented Interfaces:
org.springframework.boot.loader.tools.Libraries
public class ArtifactsLibraries
extends Object
implements org.springframework.boot.loader.tools.Libraries
Libraries backed by Maven Artifacts.- Since:
- 1.0.0
- Author:
- Phillip Webb, Andy Wilkinson, Stephane Nicoll, Scott Frederick
-
Field Summary
Fields inherited from interface org.springframework.boot.loader.tools.Libraries
NONE -
Constructor Summary
ConstructorsConstructorDescriptionArtifactsLibraries(Set<org.apache.maven.artifact.Artifact> artifacts, Collection<org.apache.maven.project.MavenProject> localProjects, @Nullable Collection<org.apache.maven.model.Dependency> unpacks, org.apache.maven.plugin.logging.Log log) Creates a newArtifactsLibrariesfrom the givenartifacts.ArtifactsLibraries(Set<org.apache.maven.artifact.Artifact> artifacts, Set<org.apache.maven.artifact.Artifact> includedArtifacts, Collection<org.apache.maven.project.MavenProject> localProjects, @Nullable Collection<org.apache.maven.model.Dependency> unpacks, org.apache.maven.plugin.logging.Log log) Creates a newArtifactsLibrariesfrom the givenartifacts. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoWithLibraries(org.springframework.boot.loader.tools.LibraryCallback callback)
-
Constructor Details
-
ArtifactsLibraries
public ArtifactsLibraries(Set<org.apache.maven.artifact.Artifact> artifacts, Collection<org.apache.maven.project.MavenProject> localProjects, @Nullable Collection<org.apache.maven.model.Dependency> unpacks, org.apache.maven.plugin.logging.Log log) Creates a newArtifactsLibrariesfrom the givenartifacts.- Parameters:
artifacts- the artifacts to represent as librarieslocalProjects- projects for whichlocallibraries should be createdunpacks- artifacts that should be unpacked on launchlog- the log- Since:
- 2.4.0
-
ArtifactsLibraries
public ArtifactsLibraries(Set<org.apache.maven.artifact.Artifact> artifacts, Set<org.apache.maven.artifact.Artifact> includedArtifacts, Collection<org.apache.maven.project.MavenProject> localProjects, @Nullable Collection<org.apache.maven.model.Dependency> unpacks, org.apache.maven.plugin.logging.Log log) Creates a newArtifactsLibrariesfrom the givenartifacts.- Parameters:
artifacts- all artifacts that can be represented as librariesincludedArtifacts- the actual artifacts to include in the uber jarlocalProjects- projects for whichlocallibraries should be createdunpacks- artifacts that should be unpacked on launchlog- the log- Since:
- 2.4.8
-
-
Method Details
-
doWithLibraries
public void doWithLibraries(org.springframework.boot.loader.tools.LibraryCallback callback) throws IOException - Specified by:
doWithLibrariesin interfaceorg.springframework.boot.loader.tools.Libraries- Throws:
IOException
-