You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by "Benjamin Francisoud (JIRA)" <ji...@apache.org> on 2009/02/05 17:31:59 UTC

[jira] Created: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

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


[jira] Updated: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Benjamin Francisoud (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Francisoud updated IVY-1029:
-------------------------------------

    Attachment: ivy-xsd-eclipse02.png

> 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
>         Attachments: ivy-xsd-eclipse01.png, ivy-xsd-eclipse02.png
>
>
> 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.


[jira] Commented: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671087#action_12671087 ] 

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

Did you try with the xsi:noNamspaceSchemaLocation like in mine example?
The ivy.xsd doesn't define a target namespace, that's why you cannot put the elements inside a namespace. I think that if we add a target namespace to this ivy.xsd, we will make all existing ivy.xml files who don't define the namespace invalid.

It seems like an Eclipse bug if it gives you the "No grammar constraint"-warning when using this attribute.
In the Eclipse XML Catalog menu, you should choose something different than "Namespace Name" for your key type, since there is no namespace, maybe you can choose something like URL in there?

And if I'm not mistaken, as a workaround you can install the Eclipse IvyDE plugin, it will also give you autocompletion for your ivy.xml files...

> 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
>         Attachments: ivy-xsd-eclipse01.png, ivy-xsd-eclipse02.png
>
>
> 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.


[jira] Commented: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671096#action_12671096 ] 

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

FYI, I've tried the following within IntelliJ IDEA and it works (both validation and auto-completion)

{code:xml}
<ivy-module version="2.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="http://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/ivy.xsd">
...
</ivy-module>
{code:xml}

So my guess is that if the auto-completion doesn't work in Eclipse, it's an Eclipse bug and not a problem with the (new) ivy.xsd

> 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
>         Attachments: ivy-xsd-eclipse01.png, ivy-xsd-eclipse02.png
>
>
> 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.


[jira] Updated: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Benjamin Francisoud (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Francisoud updated IVY-1029:
-------------------------------------

    Description: 
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 ?

  was:
I'm trying to get auto-completion of ivy.xsd 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 ?


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


[jira] Commented: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671089#action_12671089 ] 

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

To solve the problems in Ant, you should also build a new ivy.jar to use the new ivy.xsd
(or just replace the ivy.xsd in your current ivy.jar with the new one)

> 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
>         Attachments: ivy-xsd-eclipse01.png, ivy-xsd-eclipse02.png
>
>
> 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.


[jira] Resolved: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Benjamin Francisoud (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Francisoud resolved IVY-1029.
--------------------------------------

    Resolution: Invalid

That's really strange :(

I created a fresh new workspace (no xml Catalog stuff).
Imported my test project.
Created an empty ivy.xml
{code:xml}
<ivy-module version="2.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
</ivy-module>
{code}

Selected ivy.xml > right click > 'Validate'

Autocompletion works!

Sorry for the trouble, eclipse xsd validation has strange behavior.

The strangest thing is that I don't have ant validation errors anymore (with trunk or offcial xsd, I tried both) ?!

Anyway thanks :)

> 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
>         Attachments: ivy-xsd-eclipse01.png, ivy-xsd-eclipse02.png
>
>
> 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.


[jira] Commented: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Benjamin Francisoud (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671062#action_12671062 ] 

Benjamin Francisoud commented on IVY-1029:
------------------------------------------

Same problem with ivy.xsd in trunk (https://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/ivy.xsd):

*Errors message in eclipse:*

{noformat}cvc-elt.1: Cannot find the declaration of element 'ivy:ivy-module'.{noformat}

and

{noformat}
Referenced file contains errors (http://ant.apache.org/ivy/schemas/ivy.xsd).  For more information, right click on the message and select "Show Details..."	ivy.xml	Ivy-Xsd	line 1	XML Problem

Target Namespace.1: Expecting namespace 'http://ant.apache.org/ivy', but the target namespace of the schema document is 'null'.
{noformat}

> 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
>         Attachments: ivy-xsd-eclipse01.png, ivy-xsd-eclipse02.png
>
>
> 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.


[jira] Commented: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12672034#action_12672034 ] 

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

Thanks for the feedback.
I've reverted the change I've made to ivy.xsd in svn trunk.

> 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
>         Attachments: ivy-xsd-eclipse01.png, ivy-xsd-eclipse02.png
>
>
> 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.


[jira] Updated: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Benjamin Francisoud (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Francisoud updated IVY-1029:
-------------------------------------

    Attachment: ivy-xsd-eclipse01.png

> 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
>         Attachments: ivy-xsd-eclipse01.png
>
>
> 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.


[jira] Commented: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Benjamin Francisoud (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671056#action_12671056 ] 

Benjamin Francisoud commented on IVY-1029:
------------------------------------------

Thanks Maarten for your quick answer, unfortunalty if I use your declaration, I don't think any xsd validation is apply to the xml...

In eclipse I get the following warning message:
"No grammar constraints (DTD or XML schema) detected for the document."

In the xsd w3c standard, you can declare an external location for the xsd file that will override the default one describe at the beginning of your xml file.
http://www.w3.org/TR/xmlschema-1/#schema-loc

In eclipse this is achieve by using the Preferences > XML > XML Catalogs menu.

I'll add screen captures of my eclipse configuration to this jira.
But you need to provide a "key" (aka target namespace) for eclipse to know where to apply the xsd that's why, in my opinion, the xsd is not apply if you remove the "xmlns" attribute.

I will try the trunk version of the xsd.

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


[jira] Commented: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Issue Comment Edited: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671096#action_12671096 ] 

maartenc edited comment on IVY-1029 at 2/6/09 3:27 AM:
------------------------------------------------------------

FYI, I've tried the following within IntelliJ IDEA and it works (both validation and auto-completion)

{code:xml}
<ivy-module version="2.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="http://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/ivy.xsd">
...
</ivy-module>
{code}

So my guess is that if the auto-completion doesn't work in Eclipse, it's an Eclipse bug and not a problem with the (new) ivy.xsd

      was (Author: maartenc):
    FYI, I've tried the following within IntelliJ IDEA and it works (both validation and auto-completion)

{code:xml}
<ivy-module version="2.0"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="http://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/ivy.xsd">
...
</ivy-module>
{code:xml}

So my guess is that if the auto-completion doesn't work in Eclipse, it's an Eclipse bug and not a problem with the (new) ivy.xsd
  
> 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
>         Attachments: ivy-xsd-eclipse01.png, ivy-xsd-eclipse02.png
>
>
> 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.


[jira] Commented: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Benjamin Francisoud (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671084#action_12671084 ] 

Benjamin Francisoud commented on IVY-1029:
------------------------------------------

If I don't specify the 'xmlns' attribute

{code:xml}<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0"
	xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
	xsi:noSchemaLocation="https://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/ivy.xsd">

...
{code}

{noformat}
$ ant ivy:retrieve 
[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:4:128: cvc-complex-type.3.2.2: Attribute 'xsi:noSchemaLocation' is not allowed to appear in element 'ivy-module'.
 in file:/E:/development/eclipse/workspaces/spot/Ivy-Xsd/ivy.xml
[ivy:retrieve] ]
{noformat}

*adding foobar tag*

{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<ivy-module version="2.0"
	xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
	xsi:noSchemaLocation="https://svn.apache.org/repos/asf/ant/ivy/core/trunk/src/java/org/apache/ivy/plugins/parser/xml/ivy.xsd">
	<foobar/>

...
{code}

{noformat}
$ ant ivy:retrieve 
...
[ivy:retrieve] [xml parsing: ivy.xml:4:128: cvc-complex-type.3.2.2: Attribute 'xsi:noSchemaLocation' is not allowed to appear in element 'ivy-module'.
 in file:/E:/development/eclipse/workspaces/spot/Ivy-Xsd/ivy.xml
[ivy:retrieve] , xml parsing: ivy.xml:5:11: cvc-complex-type.2.4.a: Invalid content was found starting with element 'foobar'. One of '{info}' is expec
ted. in file:/E:/development/eclipse/workspaces/spot/Ivy-Xsd/ivy.xml
[ivy:retrieve] , unknown tag foobar in file:/E:/development/eclipse/workspaces/spot/Ivy-Xsd/ivy.xml
[ivy:retrieve] ]
{noformat}

> 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
>         Attachments: ivy-xsd-eclipse01.png, ivy-xsd-eclipse02.png
>
>
> 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.


[jira] Commented: (IVY-1029) Unable to specify xsi:schemaLocation or xsi:noSchemaLocation with ivy.xsd

Posted by "Maarten Coene (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IVY-1029?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12671358#action_12671358 ] 

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

It also works for me in Eclipse, you don't even has to use the trunk version of ivy.xsd or do something special with the XML catalog!

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

With this, I have both validation and auto-completion!
The reason why it didn't work for me yesterday was because I had an error in the xsi namespace-uri and a spelling-error in the noNamespaceSchemaLocation attribute.

Can you confirm it works for you so we can close this issue?

> 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
>         Attachments: ivy-xsd-eclipse01.png, ivy-xsd-eclipse02.png
>
>
> 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.