Package org.springframework.boot.maven
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 Artifact
s.- 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
ConstructorDescriptionArtifactsLibraries
(Set<org.apache.maven.artifact.Artifact> artifacts, Collection<org.apache.maven.project.MavenProject> localProjects, Collection<org.apache.maven.model.Dependency> unpacks, org.apache.maven.plugin.logging.Log log) Creates a newArtifactsLibraries
from the givenartifacts
.ArtifactsLibraries
(Set<org.apache.maven.artifact.Artifact> artifacts, Set<org.apache.maven.artifact.Artifact> includedArtifacts, Collection<org.apache.maven.project.MavenProject> localProjects, Collection<org.apache.maven.model.Dependency> unpacks, org.apache.maven.plugin.logging.Log log) Creates a newArtifactsLibraries
from the givenartifacts
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
doWithLibraries
(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, Collection<org.apache.maven.model.Dependency> unpacks, org.apache.maven.plugin.logging.Log log) Creates a newArtifactsLibraries
from the givenartifacts
.- Parameters:
artifacts
- the artifacts to represent as librarieslocalProjects
- projects for whichlocal
libraries 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, Collection<org.apache.maven.model.Dependency> unpacks, org.apache.maven.plugin.logging.Log log) Creates a newArtifactsLibraries
from the givenartifacts
.- Parameters:
artifacts
- all artifacts that can be represented as librariesincludedArtifacts
- the actual artifacts to include in the fat jarlocalProjects
- projects for whichlocal
libraries 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:
doWithLibraries
in interfaceorg.springframework.boot.loader.tools.Libraries
- Throws:
IOException
-