Performs the packaging for the specified task.
The task is responsible to update the packaging context, namely with the files that have been copied.
@param context the packaging context
@throws MojoExecutionException if an error occurred
@throws MojoFailureException if the project configuration is invalid