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

    Constructors
    Constructor
    Description
    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 new ArtifactsLibraries from the given artifacts.
    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 new ArtifactsLibraries from the given artifacts.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    doWithLibraries(org.springframework.boot.loader.tools.LibraryCallback callback)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 new ArtifactsLibraries from the given artifacts.
      Parameters:
      artifacts - the artifacts to represent as libraries
      localProjects - projects for which local libraries should be created
      unpacks - artifacts that should be unpacked on launch
      log - 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 new ArtifactsLibraries from the given artifacts.
      Parameters:
      artifacts - all artifacts that can be represented as libraries
      includedArtifacts - the actual artifacts to include in the fat jar
      localProjects - projects for which local libraries should be created
      unpacks - artifacts that should be unpacked on launch
      log - 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 interface org.springframework.boot.loader.tools.Libraries
      Throws:
      IOException