ant-ivy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Partridge, Michael" <Michael.Partri...@shps.com>
Subject Local repository install problem
Date Fri, 24 Oct 2008 17:50:12 GMT
I'm trying to load xerces#xercesImpl into my local repository using
namespaces to make it apache#xercesImpl, and I think I got the renaming
rule right, but I'm getting a ParseException on an apache pom. Details
follow.

Added this to maven2-namespace-deps in the build.xml from the
build-a-ivy-repository example:

      <ivy:install settingsRef="advanced.settings"
		organisation="apache" module="xercesImpl" revision="2+"
		from="${from.resolver}" to="${to.resolver}"
transitive="true" />

I added a new rule for xercesImpl to ivysettings-advanced.xml from the
same example, but I'm really confused by the namespaces, so I may have
gotten it wrong:

      <rule>
        <!-- xercesImpl -->
        <fromsystem>
          <src org="apache" module=".+" />
          <dest org="xerces" module="$m0" />
        </fromsystem>
        <tosystem>
          <src org="xerces" module=".+" />
          <dest org="apache" module="$m0" />
        </tosystem>
      </rule>

I added this above the imported apache maven1 projects rule since it
tried looking for xercesImpl#xercesImpl. When I run my install with the
above, I get the following:

Buildfile: D:\eclipse-workspace\IvyRepoMaint\build.xml
load-ivy:
init-ivy:
maven2-namespace-deps:
[ivy:install] :: Ivy 2.0.0-rc1 - 20080916082609 ::
http://ant.apache.org/ivy/ ::
:: loading settings :: file =
D:\eclipse-workspace\IvyRepoMaint\settings\ivysettings-advanced.xml
DEPRECATED: 'defaultCache' is deprecated, use 'caches[@defaultCacheDir]'
instead
(file:/D:/eclipse-workspace/IvyRepoMaint/settings/ivysettings-advanced.x
ml)
[ivy:install] :: installing apache#xercesImpl;2+ ::
[ivy:install] :: resolving dependencies ::
[ivy:install] :: downloading artifacts to cache ::
[ivy:install] :: installing in my-repository ::
[ivy:install] :: install resolution report ::
[ivy:install] :: resolution report :: resolve 0ms :: artifacts dl 0ms
	
---------------------------------------------------------------------
	|                  |            modules            ||
artifacts   |
	|       conf       | number| search|dwnlded|evicted||
number|dwnlded|
	
---------------------------------------------------------------------
	|      default     |   1   |   0   |   0   |   0   ||   0   |
0   |
	
---------------------------------------------------------------------
[ivy:install] :: problems summary ::
[ivy:install] :::: WARNINGS
[ivy:install] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:install] 		::          UNRESOLVED DEPENDENCIES         ::
[ivy:install] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:install] 		:: apache#xercesImpl;2+:
java.text.ParseException: inconsistent module descriptor file found in
'http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom': bad
organisation: expected='org.apache' found='apache'; 
[ivy:install] 		::::::::::::::::::::::::::::::::::::::::::::::
[ivy:install] 
[ivy:install] :::: ERRORS
[ivy:install] 		libraries: bad organisation found in
http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom:
expected='org.apache' found='apache'
[ivy:install] 
[ivy:install] :: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS

BUILD FAILED
D:\eclipse-workspace\IvyRepoMaint\build.xml:134: Problem happened while
installing modules - see output for details

Can anyone shed some light on this? Is this just due to bad poms in the
Maven repo? As a workaround I can just download the latest jar and make
my own ivy.xml for it, but it has dependencies for which I'll have to do
the same.

Mike Partridge<HTML><BODY><P><hr size=1></P>
<P><STRONG>
CONFIDENTIALITY NOTICE: This electronic message transmission is intended only for the person
or the entity to which it is addressed and may contain information that is privileged, confidential
or otherwise protected from disclosure. If you have received this transmission, but are not
the intended recipient, you are hereby notified that any disclosure, copying, distribution
or use of the contents of this information is strictly prohibited. If you have received this
e-mail in error, please contact the sender of the e-mail and destroy the original message
and all copies.
</STRONG></P></BODY></HTML>

Mime
View raw message