Use another approach for the tools.jar dep - don't use the <optional>true which causes brokenness in maven compiler, instead just disable the profile automatically when the file isn't found.