maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Munteanu (JIRA)" <>
Subject [jira] Created: (MANTTASKS-174) Mirror declaration replaces url from distributionManagement
Date Tue, 02 Feb 2010 22:10:55 GMT
Mirror declaration replaces url from distributionManagement

                 Key: MANTTASKS-174
             Project: Maven 2.x Ant Tasks
          Issue Type: Bug
          Components: deploy task
    Affects Versions: 2.1.0
         Environment: Ant 1.7.1, Maven ant tasks 2.1.0
            Reporter: Robert Munteanu

Given a ~/.m2/settings.xml file containing a mirror element


a pom.xml file with a distributionManagement section

			<name>Sonatype Nexus Snapshots</name>

and a build.xml file with the following deploy task:

	<target name="deploy" depends="-check">
		<artifact:pom id="gin-pom" file="pom.xml" />
		<artifact:deploy file="${gin.jar.file}">
			<pom refid="gin-pom" />
			<attach file="${gin.javadoc.file}" classifier="javadoc" />

When running ant deploy the deployment is done on instead of . Removing
the mirror from the settings file solves the problem.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message