}
protected File createPackage(final Collection<Resource> resources, final File inputDir) throws MojoExecutionException {
try {
final URI homepage = project.getUrl() == null ? null : URI.create(project.getUrl());
new PackageBuilder(project.getArtifactId(), project.getDescription(), homepage, log, Optional.fromNullable(pgp))
.createPackage(resources, inputDir, outputFile);
return outputFile;
}
catch (PackagingException e) {
throw new MojoExecutionException("Failed to create Debian package", e);