Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve error handling when a url/homepage is invalid
Since #134, encountering an 'invalid' URI such as `https://github.com/rnorth/${project.artifactId}` from https://github.com/rnorth/duct-tape would throw an error and fail the entire job. As the user of the plugin likely doesn't have direct influence over the `pom.xml` of the dependencies, it would be better to emit a warning. With this change, it becomes: ``` sbt-license-report: dependency [org.rnorth.duct-tape:duct-tape:1.0.8] has malformed homepage url [https://github.com/rnorth/${project.artifactId}] ``` This improves the situation described in #144. I'm not sure it is a full fix, because I'm not sure `https://github.com/rnorth/${project.artifactId}` is actually invalid here: I haven't checked whether maven placeholders are allowed here, and if so, whose responsibility it is to make sure they get resolved.
- Loading branch information