Build error with mirror in settings.xml
In our ~/.m2/settings.xml we have defined to use our mirror for all repositories:
<mirrors>
<mirror>
<id>internal-repository</id>
<name>Our Nexus</name>
<url>http://nexus/content/groups/public</url>
<mirrorOf>*</mirrorOf>
</mirror>
</mirrors>
But this causes following error when building with wuff:
Deploying artifacts
[zip] Building zip: /tmp/d50eb68f-8ecb-4089-a2dd-3a3dada95dcd/org.eclipse.core.runtime.compatibility.registry-3.5.300.v20140128-0851.jar
[deploy] Deploying to http://nexus/content/groups/public/
[deploy] Uploading: eclipse-luna-calipse/org.eclipse.core.runtime.compatibility.registry/3.5.300.v20140128-0851/org.eclipse.core.runtime.compatibility.registry-3.5.300.v20140128-0851.jar to repository internal-repository at http://nexus/content/groups/public/
[deploy] Transferring 19K from g3-internal
[deploy] An error has occurred while processing the Maven artifact tasks.
[deploy] Diagnosis:
[deploy]
[deploy] Error deploying artifact 'eclipse-luna-calipse:org.eclipse.core.runtime.compatibility.registry:jar': Error deploying artifact: Failed to transfer file: http://nexus/content/groups/public/eclipse-luna-calipse/org.eclipse.core.runtime.compatibility.registry/3.5.300.v20140128-0851/org.eclipse.core.runtime.compatibility.registry-3.5.300.v20140128-0851.jar. Return code is: 401
Can be solved by using
<mirrorOf>external:*</mirrorOf>
See https://maven.apache.org/guides/mini/guide-mirror-settings.html#Advanced_Mirror_Specification
I don't think this is an error of Wuff.
But the task uploadEclipse does still fail if a mirror is set. Maybe it would be better to use builtin gradle tools to upload, instead of the maven-ant-task.
Transition to builtin gradle tools: some time later, it would require redesign. What you observe is apparently a bug in maven-ant-tasks, which is fixed in version 2.1.4-SNAPSHOT. Please see relevant JIRA. I just tried - things really work with maven-ant-tasks 2.1.4-SNAPSHOT. Mirrors in settings.xml are happily ignored by deployment. I'll try to integrate maven-ant-tasks 2.1.4-SNAPSHOT now...
Fixed in Wuff 0.0.13-SNAPSHOT. Could you, please, test it? You don't have to add any repos whatsoever, fix is automagical.