congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
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

  • Making http post requests using okhttp
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • findViewById (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JButton (javax.swing)
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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