congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ArchetypeGenerationResult.getCause
Code IndexAdd Tabnine to your IDE (free)

How to use
getCause
method
in
org.apache.maven.archetype.ArchetypeGenerationResult

Best Java code snippets using org.apache.maven.archetype.ArchetypeGenerationResult.getCause (Showing top 6 results out of 315)

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;
}
origin: apache/maven-archetype

if ( generationResult.getCause() != null )
  throw new MojoFailureException( generationResult.getCause(), generationResult.getCause().getMessage(),
                  generationResult.getCause().getMessage() );
origin: opoo/opoopress

if (generationResult.getCause() != null) {
  throw new MojoFailureException(generationResult.getCause(), generationResult.getCause().getMessage(),
      generationResult.getCause().getMessage());
origin: org.apache.maven.plugins/maven-archetype-plugin

if ( generationResult.getCause() != null )
  throw new MojoFailureException( generationResult.getCause(), generationResult.getCause().getMessage(),
                  generationResult.getCause().getMessage() );
origin: org.sonatype.maven.archetype/archetype-commands

if (generationResult.getCause() != null) {
  throw generationResult.getCause();
org.apache.maven.archetypeArchetypeGenerationResultgetCause

Popular methods of ArchetypeGenerationResult

  • <init>
  • setCause

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Top Vim plugins
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