ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andy Blower <andy.blo...@proquest.co.uk>
Subject Problem with namespaces & commons-lang-2.4
Date Wed, 02 Jul 2008 08:58:16 GMT

I hit a problem with Ivy 2.0.0-beta2 when I tried using a namespace for
Apache modules. It worked fine for everything except commons-lang-2.4 which
gave the error below, although it worked until I upgraded from
commons-lang-2.0. I've given up on namespaces for now, but I suspect the
problem is being caused by all the new information that is in the 2.4 pom
file. I hope this is a useful bug report.

The namespace I was using was:

<namespaces>
    	<namespace name="maven2">
	        <rule>
            	<fromsystem>
                	<src org="org.apache" module=".+"/>

                    <dest org="$m0" module="$m0"/>
                </fromsystem>
                <tosystem>
					<src org="commons-.+" module="commons-.+" />
					<src org="ant" module=".*" />
					<src org="log4j" module="log4j" />
					<src org="lucene" module="lucene" />
					<src org="maven" module="maven" />
					<src org="struts" module="struts" />
					<src org="taglibs" module="taglibs" />
					<src org="tomcat" module="tomcat" />
					<src org="xml-apis" module="xml-apis" />
					<src org="xml-resolver" module="xml-resolver" />
					<src org="xml-security" module="xml-security" />
					<src org="xmlbeans" module="xmlbeans" />
					<src org="xmlrpc" module="xmlrpc" />

					<dest org="org.apache" module="$m0"/>
            	</tosystem>
        	</rule>
        </namespace>
</namespaces>




:: Ivy 2.0.0-beta2 - 20080225093827 :: http://ant.apache.org/ivy/ ::
[ivy:settings] :: loading settings :: file =
C:\Morningstar\Ivy\settings\ivysettings.xml

install-shared:
[ivy:install] :: installing commons-lang#commons-lang;2.4 ::
[ivy:install] :: resolving dependencies ::
[ivy:install] java.lang.NullPointerException
[ivy:install]   at
org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:174)
[ivy:install]   at
org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:891)
[ivy:install]   at
org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:419)
[ivy:install]   at
org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:221)
[ivy:install]   at
org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:291)
[ivy:install]   at
org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseOtherPom(PomModuleDescriptorParser.java:237)
[ivy:install]   at
org.apache.ivy.plugins.parser.m2.PomModuleDescriptorParser.parseDescriptor(PomModuleDescriptorParser.java:172)
[ivy:install]   at
org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:891)
[ivy:install]   at
org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:419)
[ivy:install]   at
org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:221)
[ivy:install]   at
org.apache.ivy.plugins.resolver.IBiblioResolver.getDependency(IBiblioResolver.java:291)
[ivy:install]   at
org.apache.ivy.core.resolve.IvyNode.loadData(IvyNode.java:225)
[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:599)
[ivy:install]   at
org.apache.ivy.core.resolve.ResolveEngine.doFetchDependencies(ResolveEngine.java:682)
[ivy:install]   at
org.apache.ivy.core.resolve.ResolveEngine.fetchDependencies(ResolveEngine.java:607)
[ivy:install]   at
org.apache.ivy.core.resolve.ResolveEngine.getDependencies(ResolveEngine.java:494)
[ivy:install]   at
org.apache.ivy.core.install.InstallEngine.install(InstallEngine.java:132)
[ivy:install]   at org.apache.ivy.Ivy.install(Ivy.java:531)
[ivy:install]   at
org.apache.ivy.ant.IvyInstall.doExecute(IvyInstall.java:90)
[ivy:install]   at org.apache.ivy.ant.IvyTask.execute(IvyTask.java:275)
[ivy:install]   at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[ivy:install]   at org.apache.tools.ant.Task.perform(Task.java:364)
[ivy:install]   at org.apache.tools.ant.Target.execute(Target.java:341)
[ivy:install]   at org.apache.tools.ant.Target.performTasks(Target.java:369)
[ivy:install]   at
org.apache.tools.ant.Project.executeTarget(Project.java:1214)
[ivy:install]   at
org.apache.tools.ant.Project.executeTargets(Project.java:1062)
[ivy:install]   at org.apache.tools.ant.Main.runBuild(Main.java:673)
[ivy:install]   at org.apache.tools.ant.Main.startAnt(Main.java:188)
[ivy:install]   at org.apache.tools.ant.Main.start(Main.java:151)
[ivy:install]   at org.apache.tools.ant.Main.main(Main.java:241)
[ivy:install] :: downloading artifacts to cache ::
[ivy:install] :: installing in shared ::
[ivy:install] :: install resolution report ::
[ivy:install] :: resolution report :: resolve 0ms :: artifacts dl 0ms
-- 
View this message in context: http://www.nabble.com/Problem-with-namespaces---commons-lang-2.4-tp18233073p18233073.html
Sent from the ivy-user mailing list archive at Nabble.com.


Mime
View raw message