ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik-Berndt Scheper (JIRA)" <j...@apache.org>
Subject [jira] Created: (IVY-833) <ivy:install> ant task generates invalid ivy files from pom's
Date Tue, 10 Jun 2008 13:00:44 GMT
<ivy:install> ant task generates invalid ivy files from pom's
-------------------------------------------------------------

                 Key: IVY-833
                 URL: https://issues.apache.org/jira/browse/IVY-833
             Project: Ivy
          Issue Type: Bug
            Reporter: Erik-Berndt Scheper
            Priority: Critical


Using the latest build from trunk, <ivy:install> now generates ivy files that do not
conform to ivy.xsd, when installing from maven POM. The reason is that the classifier attribute
is added to the artifact element, which is not in the xsd.

Snippet of tesulting ivy-file for spring-oxm-tiger (from http://repo1.maven.org/maven2/org/springframework/ws/spring-oxm-tiger/1.5.2/spring-oxm-tiger-1.5.2.pom
):

{code:xml}
	<publications>
		<artifact name="spring-xml" type="jar" ext="jar" conf="master"/>
		<artifact name="spring-xml" type="source" ext="jar" conf="sources" classifier="sources"/>
		<artifact name="spring-xml" type="javadoc" ext="jar" conf="javadoc" classifier="javadoc"/>
	</publications>
{code}

Stack trace:
{noformat}
[ivy:install] :: installing org.springframework.ws#spring-oxm-tiger;1.5.2 ::
[ivy:install] :: resolving dependencies ::
[ivy:install] java.text.ParseException: [xml parsing: ivy-spring-oxm-tiger-1.5.2.xml:102:98:
cvc-complex-type.3.2.2: Attribute 'classifier' is not allowed to appear in element 'artifact'.
in D:\ws\eclipse-3.3.1\AAD\build\ivy-repository-copy\..\..\ivy-cache\integration\org.springframework.ws\spring-oxm-tiger\1.5.2\ivy-spring-oxm-tiger-1.5.2.xml
[ivy:install] , xml parsing: ivy-spring-oxm-tiger-1.5.2.xml:103:99: cvc-complex-type.3.2.2:
Attribute 'classifier' is not allowed to appear in element 'artifact'. in D:\ws\eclipse-3.3.1\AAD\build\ivy-repository-copy\..\..\ivy-cache\integration\org.springframework.ws\spring-oxm-tiger\1.5.2\ivy-spring-oxm-tiger-1.5.2.xml
[ivy:install] ]
[ivy:install] 	at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.checkErrors(AbstractModuleDescriptorParser.java:89)
[ivy:install] 	at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.getModuleDescriptor(AbstractModuleDescriptorParser.java:342)
[ivy:install] 	at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:100)
[ivy:install] 	at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:899)
[ivy:install] 	at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:490)
[ivy:install] 	at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:239)
[ivy:install] 	at org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:169)
[ivy:install] 	at org.apache.ivy.core.resolve.VisitNode.loadData(VisitNode.java:257)
[ivy:install] 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:610)
[ivy:install] 	at org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:696)
[ivy:install] 	at org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:618)
[ivy:install] 	at org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:501)
[ivy:install] 	at org.apache.ivy.core.install.InstallEngine.install(InstallEngine.java:119)
{noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message