Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
Description
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:
<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
Moving to ant v1.9.1 fixed both issues.