ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Maarten Coene (JIRA)" <j...@apache.org>
Subject [jira] Commented: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd
Date Thu, 05 Feb 2009 23:13:59 GMT

    [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12670945#action_12670945
] 

Maarten Coene commented on IVY-1029:
------------------------------------

The correct declaration should be:

{code}
<ivy-module version="2.0"
	xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamspaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
...
</ivy-module>
{code}

However:
- this will not work with current ivy.xsd, I've committed an update into SVN trunk, could
you give it a try?
- I don't know if it works in Eclipse, I did a quick test and it seems that Eclipse doesn't
support the noNamespaceSchemaLocation attribute (but I could have done something wrong as
well)

> Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd
> -------------------------------------------------------------------------
>
>                 Key: IVY-1029
>                 URL: https://issues.apache.org/jira/browse/IVY-1029
>             Project: Ivy
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Benjamin Francisoud
>
> I'm trying to get auto-completion of ivy.xml in eclipse but I just can make it work :(
> h2. ivy.xml with defaultNamespace
> {code:xml} 
> <?xml version="1.0" encoding="UTF-8"?>
> <ivy-module version="2.0"
> 	xmlns="http://ant.apache.org/ivy"
> 	xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:noSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
> 	
> 	<info organisation="com.blogspot.francisoud.ivy" module="ivyxsd" />
> 	<configurations defaultconfmapping="default">
> 		<conf name="default" />
> 		<conf name="source" />
> 		<conf name="javadoc" />
> 	</configurations>
> 	<publications>
> 		<artifact name="ivyxsd" type="jar" conf="default" ext="jar" />
> 		<artifact name="ivyxsd" type="source" conf="source" ext="zip" />
> 		<artifact name="ivyxsd" type="javadoc" conf="javadoc" ext="zip" />
> 	</publications>
> 	<dependencies defaultconf="default">
> 		<dependency org="commons-logging" name="commons-logging" rev="1.1" transitive="false"
/>
> 		<dependency org="log4j" name="log4j" rev="1.2.15" transitive="false" />
> 		<dependency org="com.sun.jersey" name="jersey-server" rev="1.0-ea-SNAPSHOT" />
> 	</dependencies>
> </ivy-module>
> {code} 
> * Error message
> {noformat}
> [ivy:retrieve] :: Ivy 2.0.0 - 20090108225011 :: http://ant.apache.org/ivy/ ::
> :: loading settings :: file = E:\development\eclipse\workspaces\spot\Ivy-Xsd\ivy\ivysettings.xml
> [ivy:retrieve] [xml parsing: ivy.xml:5:67: cvc-elt.1: Cannot find the declaration of
element 'ivy-module'. in file:/E:/development/eclipse/workspaces/
> spot/Ivy-Xsd/ivy.xml
> [ivy:retrieve] ]
> {noformat}
> h2. ivy.xml with targetNamespace
> {code:xml} 
> <?xml version="1.0" encoding="UTF-8"?>
> <ivy:ivy-module version="2.0"
> 		xmlns:ivy="http://ant.apache.org/ivy"
> 		xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
> 		xsi:schemaLocation="http://ant.apache.org/ivy http://ant.apache.org/ivy/schemas/ivy.xsd">
> 	<ivy:info organisation="com.blogspot.francisoud.ivy" module="ivyxsd" />
> 	<ivy:configurations defaultconfmapping="default">
> 		<ivy:conf name="default" />
> 		<ivy:conf name="source" />
> 		<ivy:conf name="javadoc" />
> 	</ivy:configurations>
> 	<ivy:publications>
> 		<ivy:artifact name="ivyxsd" type="jar" conf="default" ext="jar" />
> 		<ivy:artifact name="ivyxsd" type="source" conf="source" ext="zip" />
> 		<ivy:artifact name="ivyxsd" type="javadoc" conf="javadoc" ext="zip" />
> 	</ivy:publications>
> 	<ivy:dependencies defaultconf="default">
> 		<ivy:dependency org="commons-logging" name="commons-logging" rev="1.1" transitive="false"
/>
> 		<ivy:dependency org="log4j" name="log4j" rev="1.2.15" transitive="false" />
> 		<ivy:dependency org="com.sun.jersey" name="jersey-server" rev="1.0-ea-SNAPSHOT"
/>
> 	</ivy:dependencies>
> </ivy:ivy-module>
> {code} 
> * Error message:
> {noformat}
> [ivy:retrieve] [xml parsing: ivy.xml:5:92: cvc-elt.1: Cannot find the declaration of
element 'ivy:ivy-module'. in file:/E:/development/eclipse/workspa
> ces/spot/Ivy-Xsd/ivy.xml
> [ivy:retrieve] , unknown tag ivy:ivy-module in file:/E:/development/eclipse/workspaces/spot/Ivy-Xsd/ivy.xml
> [ivy:retrieve] ]
> {noformat}
> Same error message in eclipse, what am I missing ?
> Fix? Just add {noformat}targetNamespace="http://ant.apache.org/ivy"{noformat} attribute
on root node in ivy.xsd ?

-- 
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