getLog().info("Package wo");  BufferedWriter woapplicationWriter = null; String filename = getArtifactFileName(); try { woapplicationWriter = new BufferedWriter(new FileWriter(new File(filename))); woapplicationWriter.write("\n"); } catch (IOException ioe) { new MojoExecutionException("could not write " + filename, ioe); } finally { if (null != woapplicationWriter) { try { woapplicationWriter.close(); } catch (IOException ioe) {  } } } String artifactFileName = this.getArtifactFileName(); if (artifactFileName != null) { String fileName = this.getProjectFolder() + artifactFileName; getLog().info("Defining artifact filename: " + fileName); this.getProject().getArtifact().setFile(new File(fileName)); }
super.execute();
	public void execute() throws MojoExecutionException, MojoFailureException {		getLog().info("Package wo");		BufferedWriter woapplicationWriter = null;		String filename = getArtifactFileName();		try {			woapplicationWriter = new BufferedWriter(new FileWriter(new File(filename)));			woapplicationWriter.write("\n");		} catch (IOException ioe) {			new MojoExecutionException("could not write " + filename, ioe);		} finally {			if (null != woapplicationWriter) {				try {					woapplicationWriter.close();				} catch (IOException ioe) {					// Ignore exception				}			}		}		String artifactFileName = this.getArtifactFileName();		if (artifactFileName != null) {			String fileName = this.getProjectFolder() + artifactFileName;			getLog().info("Defining artifact filename: " + fileName);			this.getProject().getArtifact().setFile(new File(fileName));		}		Artifact artifact = artifactFactory.createBuildArtifact(project.getGroupId(), project.getArtifactId(), project.getVersion(), "woapplication.tar.gz");		artifact.setFile(new File(this.getWOApplicationFileName()));		getLog().info("Attaching artifact: " + this.getWOWeberverResourcesArtifactFileName());		project.addAttachedArtifact(artifact);		artifact = artifactFactory.createBuildArtifact(project.getGroupId(), project.getArtifactId(), project.getVersion(), "wowebserverresources.tar.gz");		artifact.setFile(new File(this.getWOWeberverResourcesArtifactFileName()));		getLog().info("Attaching artifact: " + this.getWOWeberverResourcesArtifactFileName());		project.addAttachedArtifact(artifact);	}