Class MavenRepository

java.lang.Object
io.spring.initializr.generator.buildsystem.MavenRepository

public class MavenRepository extends Object
A Maven repository.
Author:
Andy Wilkinson, Stephane Nicoll
  • Field Details

    • MAVEN_CENTRAL

      public static final MavenRepository MAVEN_CENTRAL
      Maven Central.
  • Constructor Details

  • Method Details

    • withIdAndUrl

      public static MavenRepository.Builder withIdAndUrl(String id, String url)
      Initialize a new repository MavenRepository.Builder with the specified id and url. The name of the repository is initialized with the id.
      Parameters:
      id - the identifier of the repository
      url - the url of the repository
      Returns:
      a new builder
    • getId

      public String getId()
      Return the identifier of the repository.
      Returns:
      the repository ID
    • getName

      public String getName()
      Return the name of the repository.
      Returns:
      the repository name
    • getUrl

      public String getUrl()
      Return the url of the repository.
      Returns:
      the repository url
    • isReleasesEnabled

      public boolean isReleasesEnabled()
      Return whether releases are enabled on the repository.
      Returns:
      true to enable releases, false otherwise
    • isSnapshotsEnabled

      public boolean isSnapshotsEnabled()
      Return whether snapshots are enabled on the repository.
      Returns:
      true to enable snapshots, false otherwise
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object