Class MavenProjectBuildFile

java.lang.Object
io.quarkus.devtools.project.buildfile.BuildFile
io.quarkus.devtools.project.buildfile.MavenProjectBuildFile
All Implemented Interfaces:
ExtensionManager

public class MavenProjectBuildFile extends BuildFile
  • Method Details

    • getProject

      public static QuarkusProject getProject(Path projectDir, io.quarkus.devtools.messagewriter.MessageWriter log, Supplier<String> defaultQuarkusVersion) throws io.quarkus.registry.RegistryResolutionException
      Throws:
      io.quarkus.registry.RegistryResolutionException
    • getProject

      public static QuarkusProject getProject(org.eclipse.aether.artifact.Artifact projectPom, org.apache.maven.model.Model projectModel, Path projectDir, Properties projectProps, io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver artifactResolver, io.quarkus.devtools.messagewriter.MessageWriter log, Supplier<String> defaultQuarkusVersion) throws io.quarkus.registry.RegistryResolutionException
      Throws:
      io.quarkus.registry.RegistryResolutionException
    • getProject

      public static QuarkusProject getProject(org.eclipse.aether.artifact.Artifact projectPom, org.apache.maven.model.Model projectModel, Path projectDir, Properties projectProps, io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver artifactResolver, io.quarkus.registry.ExtensionCatalogResolver catalogResolver, io.quarkus.devtools.messagewriter.MessageWriter log, Supplier<String> defaultQuarkusVersion) throws io.quarkus.registry.RegistryResolutionException
      Throws:
      io.quarkus.registry.RegistryResolutionException
    • resolveJavaVersion

      public static JavaVersion resolveJavaVersion(Properties projectProps)
    • getBuildTool

      public BuildTool getBuildTool()
      Returns:
      the BuildTool of this extension manager
    • importBom

      protected boolean importBom(io.quarkus.maven.dependency.ArtifactCoords coords)
      Specified by:
      importBom in class BuildFile
    • addDependency

      protected boolean addDependency(io.quarkus.maven.dependency.ArtifactCoords coords, boolean managed)
      Specified by:
      addDependency in class BuildFile
    • removeDependency

      protected void removeDependency(io.quarkus.maven.dependency.ArtifactKey key) throws IOException
      Specified by:
      removeDependency in class BuildFile
      Throws:
      IOException
    • getDependencies

      protected List<io.quarkus.maven.dependency.ArtifactCoords> getDependencies()
      Specified by:
      getDependencies in class BuildFile
    • getInstalledPlatforms

      public final Collection<io.quarkus.maven.dependency.ArtifactCoords> getInstalledPlatforms() throws IOException
      Description copied from interface: ExtensionManager
      Returns the list of the imported platforms in the current project.
      Returns:
      current list of imported platforms
      Throws:
      IOException - if a problem occurs while reading the project build file(s)
    • getManagedDependencies

      protected List<io.quarkus.maven.dependency.ArtifactCoords> getManagedDependencies()
    • writeToDisk

      protected void writeToDisk() throws IOException
      Specified by:
      writeToDisk in class BuildFile
      Throws:
      IOException
    • getProperty

      protected String getProperty(String propertyName)
      Specified by:
      getProperty in class BuildFile
    • refreshData

      protected void refreshData()
      Specified by:
      refreshData in class BuildFile