Polished code
diff --git a/src/main/java/org/eclipse/aether/ant/types/Dependency.java b/src/main/java/org/eclipse/aether/ant/types/Dependency.java
index 202cd09..4343a4a 100644
--- a/src/main/java/org/eclipse/aether/ant/types/Dependency.java
+++ b/src/main/java/org/eclipse/aether/ant/types/Dependency.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2010, 2011 Sonatype, Inc.
+ * Copyright (c) 2010, 2014 Sonatype, Inc.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -235,8 +235,8 @@
         Matcher m = p.matcher( coords );
         if ( !m.matches() )
         {
-            throw new BuildException( "Bad dependency coordinates"
-                + ", expected format is <groupId>:<artifactId>:<version>[[:<type>[:<classifier>]]:<scope>]" );
+            throw new BuildException( "Bad dependency coordinates '" + coords
+                + "', expected format is <groupId>:<artifactId>:<version>[[:<type>[:<classifier>]]:<scope>]" );
         }
         groupId = m.group( 1 );
         artifactId = m.group( 2 );
diff --git a/src/main/java/org/eclipse/aether/ant/types/Exclusion.java b/src/main/java/org/eclipse/aether/ant/types/Exclusion.java
index 9072ebf..5ea12d2 100644
--- a/src/main/java/org/eclipse/aether/ant/types/Exclusion.java
+++ b/src/main/java/org/eclipse/aether/ant/types/Exclusion.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2010, 2011 Sonatype, Inc.
+ * Copyright (c) 2010, 2014 Sonatype, Inc.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -151,8 +151,8 @@
         Matcher m = p.matcher( coords );
         if ( !m.matches() )
         {
-            throw new BuildException( "Bad exclusion coordinates"
-                + ", expected format is <groupId>[:<artifactId>[:<extension>[:<classifier>]]]" );
+            throw new BuildException( "Bad exclusion coordinates '" + coords
+                + "', expected format is <groupId>[:<artifactId>[:<extension>[:<classifier>]]]" );
         }
         groupId = m.group( 1 );
         artifactId = m.group( 3 );
diff --git a/src/main/java/org/eclipse/aether/ant/types/Pom.java b/src/main/java/org/eclipse/aether/ant/types/Pom.java
index ba00255..d53401e 100644
--- a/src/main/java/org/eclipse/aether/ant/types/Pom.java
+++ b/src/main/java/org/eclipse/aether/ant/types/Pom.java
@@ -1,5 +1,5 @@
 /*******************************************************************************
- * Copyright (c) 2010, 2011 Sonatype, Inc.
+ * Copyright (c) 2010, 2014 Sonatype, Inc.
  * All rights reserved. This program and the accompanying materials
  * are made available under the terms of the Eclipse Public License v1.0
  * which accompanies this distribution, and is available at
@@ -188,6 +188,15 @@
         this.version = version;
     }
 
+    public String getCoords()
+    {
+        if ( isReference() )
+        {
+            return getRef().getCoords();
+        }
+        return coords;
+    }
+
     public void setCoords( String coords )
     {
         checkAttributesAllowed();
@@ -331,9 +340,4 @@
         return coords + " (" + super.toString() + ")";
     }
 
-    public String getCoords()
-    {
-        return coords;
-    }
-
 }