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 Andreas Dejung <an...@velsys.com> on 2008/11/18 00:59:18 UTC
Using maven2 classifier
Hi
I am big confused on how to use the maven2 classifier.
I try to get the following resource:
http://repository.com/com/company/tool-configuration/1.0.0-SNAPSHOT/tool
-configuration-1.0.0-20081117.041424-1-resources.zip
<http://repository.com/com/velsys/tool-configuration/1.0.0-SNAPSHOT/tool
-configuration-1.0.0-20081117.041424-1-resources.zip>
my ivy.xml configuration looks something like
<dependencies>
<dependency org="com.company" name="tool-configuration"
rev="1.0.0-SNAPSHOT" >
<artifact name="tool-configuration" type="zip"
m:classifier="resources" />
</dependency>
</dependencies>
But I get
[ivy:resolve] [xml parsing: ivyConfiguration.xml:4:17:
cvc-complex-type.2.4.a: Invalid content was found starting with element
'namespaces'. One of '{configurations, publications, dependencies,
conflicts}' is expected. in
file:/E:/eclipse3.4/liquidityInjector/vistra/ivyConfiguration.xml
[ivy:resolve] , unknown tag namespaces in
file:/E:/eclipse3.4/liquidityInjector/vistra/ivyConfiguration.xml
[ivy:resolve] , unknown tag namespace in
file:/E:/eclipse3.4/liquidityInjector/vistra/ivyConfiguration.xml
[ivy:resolve] , [Fatal Error] ivyConfiguration.xml:10:85: The prefix "m"
for attribute "m:classifier" associated with an element type "artifact"
is not bound. in
file:/E:/eclipse3.4/liquidityInjector/vistra/ivyConfiguration.xml
[ivy:resolve] ]
I understand that I should define a namespace for the classifier, but I
don't know how L
Thanks for any help
Andy