Tabnine Logo
ArchetypeGenerationResult.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.apache.maven.archetype.ArchetypeGenerationResult
constructor

Best Java code snippets using org.apache.maven.archetype.ArchetypeGenerationResult.<init> (Showing top 4 results out of 315)

origin: org.sonatype.maven.archetype/archetype-common

public ArchetypeGenerationResult generateProjectFromArchetype(ArchetypeGenerationRequest request) {
  ArchetypeGenerationResult result = new ArchetypeGenerationResult();
  generator.generateArchetype(request, result);
  return result;
}
origin: apache/maven-archetype

public ArchetypeGenerationResult generateProjectFromArchetype( ArchetypeGenerationRequest request )
{
  ArchetypeGenerationResult result = new ArchetypeGenerationResult();
  generator.generateArchetype( request, result );
  return result;
}
origin: apache/maven-archetype

private ArchetypeGenerationRequest generate( String archetypeGroupId, String archetypeArtifactId, String archetypeVersion, File archetypeFile, Properties properties, String basedir ) throws IntegrationTestFailure
{
  //@formatter:off
  ArchetypeGenerationRequest request =
    new ArchetypeGenerationRequest().setArchetypeGroupId( archetypeGroupId ).setArchetypeArtifactId(
      archetypeArtifactId ).setArchetypeVersion( archetypeVersion ).setGroupId(
      properties.getProperty( Constants.GROUP_ID ) ).setArtifactId(
      properties.getProperty( Constants.ARTIFACT_ID ) ).setVersion(
      properties.getProperty( Constants.VERSION ) ).setPackage(
      properties.getProperty( Constants.PACKAGE ) ).setOutputDirectory( basedir ).setProperties(
      properties );
  //@formatter:on
  ArchetypeGenerationResult result = new ArchetypeGenerationResult();
  archetypeGenerator.generateArchetype( request, archetypeFile, result );
  if ( result.getCause() != null )
  {
    if ( result.getCause() instanceof ArchetypeNotConfigured )
    {
      ArchetypeNotConfigured anc = (ArchetypeNotConfigured) result.getCause();
      throw new IntegrationTestFailure(
        "Missing required properties in archetype.properties: " + StringUtils.join(
          anc.getMissingProperties().iterator(), ", " ), anc );
    }
    throw new IntegrationTestFailure( result.getCause().getMessage(), result.getCause() );
  }
  return request;
}
origin: org.apache.maven.plugins/maven-archetype-plugin

private ArchetypeGenerationRequest generate( String archetypeGroupId, String archetypeArtifactId, String archetypeVersion, File archetypeFile, Properties properties, String basedir ) throws IntegrationTestFailure
{
  //@formatter:off
  ArchetypeGenerationRequest request =
    new ArchetypeGenerationRequest().setArchetypeGroupId( archetypeGroupId ).setArchetypeArtifactId(
      archetypeArtifactId ).setArchetypeVersion( archetypeVersion ).setGroupId(
      properties.getProperty( Constants.GROUP_ID ) ).setArtifactId(
      properties.getProperty( Constants.ARTIFACT_ID ) ).setVersion(
      properties.getProperty( Constants.VERSION ) ).setPackage(
      properties.getProperty( Constants.PACKAGE ) ).setOutputDirectory( basedir ).setProperties(
      properties );
  //@formatter:on
  ArchetypeGenerationResult result = new ArchetypeGenerationResult();
  archetypeGenerator.generateArchetype( request, archetypeFile, result );
  if ( result.getCause() != null )
  {
    if ( result.getCause() instanceof ArchetypeNotConfigured )
    {
      ArchetypeNotConfigured anc = (ArchetypeNotConfigured) result.getCause();
      throw new IntegrationTestFailure(
        "Missing required properties in archetype.properties: " + StringUtils.join(
          anc.getMissingProperties().iterator(), ", " ), anc );
    }
    throw new IntegrationTestFailure( result.getCause().getMessage(), result.getCause() );
  }
  return request;
}
org.apache.maven.archetypeArchetypeGenerationResult<init>

Popular methods of ArchetypeGenerationResult

  • getCause
  • setCause

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • startActivity (Activity)
  • getSharedPreferences (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JCheckBox (javax.swing)
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now