From 8ab731d93ff85eb999bf72bb2a4748feb3162a1d Mon Sep 17 00:00:00 2001 From: Alexandre Archambault Date: Wed, 30 Dec 2015 21:17:34 +0100 Subject: [PATCH] Fix untested things :-| Bad --- core/shared/src/main/scala/coursier/maven/Pom.scala | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/shared/src/main/scala/coursier/maven/Pom.scala b/core/shared/src/main/scala/coursier/maven/Pom.scala index 8e357e303..7f42eeaab 100644 --- a/core/shared/src/main/scala/coursier/maven/Pom.scala +++ b/core/shared/src/main/scala/coursier/maven/Pom.scala @@ -195,8 +195,8 @@ object Pom { .flatMap(_.children) .filter(_.label == "license") .flatMap { n => - n.attribute("name").toOption.map { name => - (name, n.attribute("url").toOption) + text(n, "name", "License name").toOption.map { name => + (name, text(n, "url", "License URL").toOption) }.toSeq } @@ -207,9 +207,9 @@ object Pom { .filter(_.label == "developer") .map { n => for { - id <- n.attribute("id") - name <- n.attribute("name") - url <- n.attribute("url") + id <- text(n, "id", "Developer ID") + name <- text(n, "name", "Developer name") + url <- text(n, "url", "Developer URL") } yield Info.Developer(id, name, url) } .collect {