Class AbstractServerStartMojo

    • Field Detail

      • repoSystem

        @Component
        protected org.eclipse.aether.RepositorySystem repoSystem
      • session

        @Parameter(defaultValue="${repositorySystemSession}",
                   readonly=true,
                   required=true)
        protected org.eclipse.aether.RepositorySystemSession session
      • repositories

        @Parameter(defaultValue="${project.remoteProjectRepositories}",
                   readonly=true,
                   required=true)
        protected List<org.eclipse.aether.repository.RemoteRepository> repositories
      • project

        @Parameter(defaultValue="${project}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.project.MavenProject project
      • mavenSession

        @Parameter(defaultValue="${session}",
                   readonly=true,
                   required=true)
        protected org.apache.maven.execution.MavenSession mavenSession
      • targetDir

        @Parameter(defaultValue="${project.build.directory}",
                   readonly=true,
                   required=true)
        protected File targetDir
        The target directory the application to be deployed is located.
      • jbossHome

        @Parameter(alias="jboss-home",
                   property="jboss-as.home")
        protected String jbossHome
        The WildFly Application Server's home directory. If not used, WildFly will be downloaded.
      • skip

        @Parameter(defaultValue="false",
                   property="wildfly.skip")
        protected boolean skip
        Set to true if you want to skip this goal, otherwise false.
      • mavenRepoManager

        protected org.jboss.galleon.universe.maven.repo.MavenRepoManager mavenRepoManager
    • Constructor Detail

      • AbstractServerStartMojo

        public AbstractServerStartMojo()
    • Method Detail

      • init

        protected void init()
                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • createMavenRepoManager

        protected org.jboss.galleon.universe.maven.repo.MavenRepoManager createMavenRepoManager()
                                                                                         throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • startServer

        protected ServerContext startServer​(ServerType serverType)
                                     throws org.apache.maven.plugin.MojoExecutionException,
                                            org.apache.maven.plugin.MojoFailureException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException
      • createCommandBuilder

        protected abstract org.wildfly.core.launcher.CommandBuilder createCommandBuilder​(Path jbossHome)
                                                                                  throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • setJavaOpts

        public void setJavaOpts​(String value)
        Allows the javaOpts to be set as a string. The string is assumed to be space delimited.
        Parameters:
        value - a spaced delimited value of JVM options
      • setModulesOptions

        public void setModulesOptions​(String value)
        Allows the moduleOptions to be set as a string. The string is assumed to be space delimited.
        Parameters:
        value - a spaced delimited value of JBoss Modules options
      • createStandaloneCommandBuilder

        protected org.wildfly.core.launcher.StandaloneCommandBuilder createStandaloneCommandBuilder​(Path jbossHome,
                                                                                                    String serverConfig)
                                                                                             throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • createDomainCommandBuilder

        protected org.wildfly.core.launcher.DomainCommandBuilder createDomainCommandBuilder​(Path jbossHome,
                                                                                            String domainConfig,
                                                                                            String hostConfig)
                                                                                     throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • provisionIfRequired

        protected Path provisionIfRequired​(Path installDir)
                                    throws org.apache.maven.plugin.MojoFailureException,
                                           org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoFailureException
        org.apache.maven.plugin.MojoExecutionException
      • getDefaultFeaturePackLocation

        protected String getDefaultFeaturePackLocation()
        Returns the default feature pack location if not defined in the configuration.
        Returns:
        the default feature pack location