You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-user@ant.apache.org by Brian Matzon <ma...@certus.dk> on 2008/06/26 09:12:07 UTC
Unknown tag
cWhile working on the gen-content stuff, I added some description,
license and repository tags to the ivy-module/info section. Result:
[ivy:settings] :: loading settings :: file = ivysettings.xml
ivy.resolve:
[ivy:resolve] [unknwon tag license in file:/ivy.xml
[ivy:resolve] , unknwon tag repository in file:/ivy.xml
[ivy:resolve] ]
BUILD FAILED
build.xml:24: syntax errors in ivy file: java.text.ParseException:
[unknwon tag license in file:/ivy.xml
, unknwon tag repository in file:/ivy.xml
]
ignoring the spelling error - why is it giving me this error ?
I can see from the schema (http://ant.apache.org/ivy/schemas/ivy.xsd)
that they should be allowed? I am using 2.0.0 beta 2.
This is the ivy file I am using:
<ivy-module version="1.0">
<info organisation="example" module="${ant.project.name}">
<description homepage="http://example.com">lala</description>
<license name="BSD"/>
<repository name="Internal" url="http://example.com/"
pattern="[organisation]/[module]/[revision]/ivy.xml" ivys="true"
artifacts="true"/>
</info>
<configurations>
<conf name="library" description="library build"/>
<conf name="complete" description="complete package"/>
</configurations>
<publications>
<artifact name="${ant.project.name}" type=""
conf="library" ext="jar"/>
<artifact name="${ant.project.name}" type=""
conf="library" ext="pom" />
<artifact name="${ant.project.name}" type="bin"
conf="complete" ext="zip"/>
</publications>
<dependencies>
</dependencies>
</ivy-module>
/matzon
Re: Unknown tag
Posted by pa...@targetgroup.net.
If you put the name space at the top of your xml your ide should pick up
any errors before you get as far as trying to run anything (well does in
Eclipse with WTP anyway)
e.g. for ivy 1.4
<ivy-module version="1.4"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation=
"http://www.jayasoft.org/misc/ivy/ivy.xsd">
Target
www.targetgroup.net
Target is a trading name of Target Group Limited,
registered in England and Wales No. 1208137
Registered office: Target House, Cowbridge Road East, Cardiff CF11 9AU
**********************************************************************
DISCLAIMER.
This message is intended only for the use of the Addressee and may
contain information that is PRIVILEGED and CONFIDENTIAL.
If you are not the intended recipient you must not copy,
distribute or take any action or reliance upon it.
The content of this message may also contain personal
views of an employee of this company and does
not necessarily represent the view of the company.
**********************************************************************
This message has been scanned by Norton Anti-Virus.
It has also been scanned by MAILsweeper to enforce our e-mail
policy. If you have any concerns or comments about the content
of this message, please e-mail support@targetgroup.net.
**********************************************************************
_____________________________________________________________________
This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com
Re: Unknown tag
Posted by Brian Matzon <ma...@certus.dk>.
Xavier Hanin wrote:
> The order is important in a schema constrained xml file. So you should put
> license, repository and then description.
>
aha! - thanks that did the trick.
/matzon
Re: Unknown tag
Posted by Xavier Hanin <xa...@gmail.com>.
On Thu, Jun 26, 2008 at 9:12 AM, Brian Matzon <ma...@certus.dk> wrote:
> cWhile working on the gen-content stuff, I added some description, license
> and repository tags to the ivy-module/info section. Result:
>
> [ivy:settings] :: loading settings :: file = ivysettings.xml
>
> ivy.resolve:
> [ivy:resolve] [unknwon tag license in file:/ivy.xml
> [ivy:resolve] , unknwon tag repository in file:/ivy.xml
> [ivy:resolve] ]
>
> BUILD FAILED
> build.xml:24: syntax errors in ivy file: java.text.ParseException: [unknwon
> tag license in file:/ivy.xml
> , unknwon tag repository in file:/ivy.xml
> ]
>
> ignoring the spelling error - why is it giving me this error ?
> I can see from the schema (http://ant.apache.org/ivy/schemas/ivy.xsd) that
> they should be allowed? I am using 2.0.0 beta 2.
The order is important in a schema constrained xml file. So you should put
license, repository and then description.
Xavier
>
>
> This is the ivy file I am using:
>
> <ivy-module version="1.0">
> <info organisation="example" module="${ant.project.name}">
> <description homepage="http://example.com">lala</description>
> <license name="BSD"/>
> <repository name="Internal" url="http://example.com/"
> pattern="[organisation]/[module]/[revision]/ivy.xml" ivys="true"
> artifacts="true"/>
> </info>
> <configurations>
> <conf name="library" description="library build"/>
> <conf name="complete" description="complete package"/>
> </configurations>
> <publications>
> <artifact name="${ant.project.name}" type="" conf="library"
> ext="jar"/>
> <artifact name="${ant.project.name}" type="" conf="library"
> ext="pom" />
> <artifact name="${ant.project.name}" type="bin" conf="complete"
> ext="zip"/>
> </publications>
>
> <dependencies>
> </dependencies>
> </ivy-module>
>
> /matzon
>
--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://ant.apache.org/ivy/
http://www.xoocode.org/