Class CreateProjectMojo

java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.quarkus.maven.CreateProjectMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="create", requiresProject=false) public class CreateProjectMojo extends org.apache.maven.plugin.AbstractMojo
This goal helps in setting up Quarkus Maven project with quarkus-maven-plugin, with sensible defaults
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) static final String
     
    (package private) static final Pattern
     
    protected org.apache.maven.project.MavenProject
     
    (package private) boolean
    Whether to refresh the local extension catalog cache before searching for the recommended Quarkus extension versions
    (package private) org.eclipse.aether.impl.RemoteRepositoryManager
     
    (package private) QuarkusWorkspaceProvider
     

    Fields inherited from interface org.apache.maven.plugin.Mojo

    ROLE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    static String
     
    static String
    getPlatformGroupId(org.apache.maven.plugin.AbstractMojo mojo, String groupId)
     
    static String
    getPlatformVersion(org.apache.maven.plugin.AbstractMojo mojo, String version)
     
    (package private) static io.quarkus.registry.catalog.ExtensionCatalog
    resolveExtensionsCatalog(org.apache.maven.plugin.AbstractMojo mojo, String groupId, String artifactId, String version, io.quarkus.registry.ExtensionCatalogResolver catalogResolver, io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver artifactResolver, io.quarkus.devtools.messagewriter.MessageWriter log)
     

    Methods inherited from class org.apache.maven.plugin.AbstractMojo

    getLog, getPluginContext, setLog, setPluginContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BAD_IDENTIFIER

      static final String BAD_IDENTIFIER
      See Also:
    • OK_ID

      static final Pattern OK_ID
    • project

      @Parameter(defaultValue="${project}") protected org.apache.maven.project.MavenProject project
    • remoteRepoManager

      @Component org.eclipse.aether.impl.RemoteRepositoryManager remoteRepoManager
    • refresh

      @Parameter(property="refresh", defaultValue="false") boolean refresh
      Whether to refresh the local extension catalog cache before searching for the recommended Quarkus extension versions
    • workspaceProvider

      @Component QuarkusWorkspaceProvider workspaceProvider
  • Constructor Details

    • CreateProjectMojo

      public CreateProjectMojo()
  • Method Details

    • execute

      public void execute() throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • resolveExtensionsCatalog

      static io.quarkus.registry.catalog.ExtensionCatalog resolveExtensionsCatalog(org.apache.maven.plugin.AbstractMojo mojo, String groupId, String artifactId, String version, io.quarkus.registry.ExtensionCatalogResolver catalogResolver, io.quarkus.bootstrap.resolver.maven.MavenArtifactResolver artifactResolver, io.quarkus.devtools.messagewriter.MessageWriter log) throws org.apache.maven.plugin.MojoExecutionException
      Throws:
      org.apache.maven.plugin.MojoExecutionException
    • getPlatformVersion

      public static String getPlatformVersion(org.apache.maven.plugin.AbstractMojo mojo, String version)
    • getPlatformArtifactId

      public static String getPlatformArtifactId(String artifactId)
    • getPlatformGroupId

      public static String getPlatformGroupId(org.apache.maven.plugin.AbstractMojo mojo, String groupId)