You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephen Colebourne (JIRA)" <ji...@codehaus.org> on 2013/06/12 13:38:03 UTC

[jira] (MANTTASKS-239) Requires ant 1.9.1

Stephen Colebourne created MANTTASKS-239:
--------------------------------------------

             Summary: Requires ant 1.9.1
                 Key: MANTTASKS-239
                 URL: https://jira.codehaus.org/browse/MANTTASKS-239
             Project: Maven 2.x Ant Tasks
          Issue Type: Bug
          Components: documentation
            Reporter: Stephen Colebourne


When using ant v1.8 the ant tasks do not work for me. Upgrading to ant v1.9.1 made them work.

With v1.8, the pom task failed to resolve the pom. The build continued, but expressions such as pom.version did not resolve.

In addition, the dependencies task failed to read maven-metadata-local.xml:

{code}
<echo message="POM ${pom.version}"/>
<property name="version" value="${pom.version}" />
<echo>Finding dependencies of ${pom.artifactId}-${version}</echo>
<artifact:dependencies filesetId="dependency.runtime.fileset" useScope="runtime">
 <pom refid="pom"/>
</artifact:dependencies>


     [echo] POM ${pom.version}
     [echo] Finding dependencies of ${pom.artifactId}-${pom.version}
[artifact:dependencies] An error has occurred while processing the Maven artifac
t tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Unable to get dependency inf
ormation: Unable to read the metadata file for artifact 'com.opengamma.platform:
og-util:jar': Error getting POM for 'com.opengamma.platform:og-util' from the re
pository: Unable to read local copy of metadata: Cannot read metadata from 'E:\m
aven\repository\com\opengamma\platform\og-util\2.0.0-SNAPSHOT\maven-metadata-loc
al.xml': expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<classif
ier>sources</... @13:30)
[artifact:dependencies]   com.opengamma.platform:og-util:pom:2.0.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies]
[artifact:dependencies]   com.opengamma.platform:og-util:jar:2.0.0-SNAPSHOT
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies]   og-public (http://maven.opengamma.com/nexus/content/gr
oups/public),
[artifact:dependencies]   central (http://repo1.maven.org/maven2)
[artifact:dependencies] Path to dependency:
[artifact:dependencies]         1) com.opengamma.platform:og-language:jar:2.0.0-
SNAPSHOT
{code}

Moving to ant v1.9.1 fixed both issues.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira