Class MavenBuildSettings

java.lang.Object
io.spring.initializr.generator.buildsystem.BuildSettings
io.spring.initializr.generator.buildsystem.maven.MavenBuildSettings

public class MavenBuildSettings extends BuildSettings
Author:
Stephane Nicoll, Jafer Khan Shamshad
  • Constructor Details

  • Method Details

    • getParent

      public MavenParent getParent()
      Return the MavenParent to use or null if this project has no parent.
      Returns:
      the parent pom or null
    • getPackaging

      public String getPackaging()
      Return the packaging to use or null to use the default jar packaging.
      Returns:
      the packaging to use
    • getName

      public String getName()
      Return a simple name for the project.
      Returns:
      the name of the project or null
    • getDescription

      public String getDescription()
      Return a human readable description of the project.
      Returns:
      the description of the project or null
    • getLicenses

      public List<MavenLicense> getLicenses()
      Return the licenses associated with the project.
      Returns:
      the licenses of the project
    • getDevelopers

      public List<MavenDeveloper> getDevelopers()
      Return the developers associated with the project.
      Returns:
      the developers of the project
    • getScm

      public MavenScm getScm()
      Return the version control section of the project.
      Returns:
      the version control of the project
    • getDefaultGoal

      public String getDefaultGoal()
      Return the default goal or phase to execute if none is given.
      Returns:
      the default goal or null to use the default
    • getFinalName

      public String getFinalName()
      Return the final name of the artifact.
      Returns:
      the final name or null to use the default
    • getSourceDirectory

      public String getSourceDirectory()
      Return the location of main source code. Can use Maven properties such as ${basedir}.
      Returns:
      the location of main source code or null to use the default
    • getTestSourceDirectory

      public String getTestSourceDirectory()
      Return the location of test source code. Can use Maven properties such as ${basedir}.
      Returns:
      the location of test source code or null to use the default