Merge pull request #191 from ppkarwasz/fetch-script

Fix retrieval from non-default repositories
diff --git a/fetch.xml b/fetch.xml
index ac231ea..038ee12 100644
--- a/fetch.xml
+++ b/fetch.xml
@@ -119,8 +119,8 @@
             </not>
           </condition>
         </fail>
-        <resolver:remoterepo url="@{repository}" id="@{id}"/>
         <resolver:resolve>
+          <resolver:remoterepo url="@{repository}" id="@{id}"/>
           <dependencies id="@{archive}.path">
             <dependency groupId="@{project}"
                         artifactId="@{archive}"