Search in sources :

Example 1 with ArchetypeException

use of org.apache.maven.archetype.exception.ArchetypeException in project maven-archetype by apache.

the class DefaultArchetypeGenerator method generateArchetype.

public void generateArchetype(ArchetypeGenerationRequest request, ArchetypeGenerationResult result) {
    try {
        File archetypeFile = getArchetypeFile(request, request.getLocalRepository());
        generateArchetype(request, archetypeFile, result);
    } catch (IOException ex) {
        result.setCause(ex);
    } catch (ArchetypeException ex) {
        result.setCause(ex);
    } catch (XmlPullParserException ex) {
        result.setCause(ex);
    } catch (DocumentException ex) {
        result.setCause(ex);
    }
}
Also used : DocumentException(org.dom4j.DocumentException) XmlPullParserException(org.codehaus.plexus.util.xml.pull.XmlPullParserException) IOException(java.io.IOException) File(java.io.File) ArchetypeException(org.apache.maven.archetype.exception.ArchetypeException)

Aggregations

File (java.io.File)1 IOException (java.io.IOException)1 ArchetypeException (org.apache.maven.archetype.exception.ArchetypeException)1 XmlPullParserException (org.codehaus.plexus.util.xml.pull.XmlPullParserException)1 DocumentException (org.dom4j.DocumentException)1