public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( "Building archetype jar: " + new File( outputDirectory, finalName ) ); File jarFile = manager.archiveArchetype( archetypeDirectory, outputDirectory, finalName ); checkArchetypeFile( jarFile ); project.getArtifact().setFile( jarFile ); } catch ( DependencyResolutionRequiredException ex ) { throw new MojoExecutionException( ex.getMessage(), ex ); } catch ( IOException ex ) { throw new MojoExecutionException( ex.getMessage(), ex ); } }
public void execute() throws MojoExecutionException, MojoFailureException { try { getLog().info( "Building archetype jar: " + new File( outputDirectory, finalName ) ); File jarFile = manager.archiveArchetype( archetypeDirectory, outputDirectory, finalName ); checkArchetypeFile( jarFile ); project.getArtifact().setFile( jarFile ); } catch ( DependencyResolutionRequiredException ex ) { throw new MojoExecutionException( ex.getMessage(), ex ); } catch ( IOException ex ) { throw new MojoExecutionException( ex.getMessage(), ex ); } }