On 29 April 2010 17:34, Alex Bennee <kernel-hac...@bennee.com> wrote:
> On 27 April 2010 18:35, Alex Bennee <kernel-hac...@bennee.com> wrote:
>
> <snip>
>
> /export/csrc/opennms/opennms.git/opennms-config/src/main/castor/notifications.xsd
>> Could not instantiate parser org.apache.xerces.parsers.SAXParser:
>> java.lang.ClassNotFoundException: org.apache.xerces.parsers.SAXParser
>
> It was an external dependency problem, the reason the SAX parser was
> not instantiated was because maven had downloaded an HTML file in its
> place:
>
> file /home/ajb/.m2/repository/xerces/xerces/1.4.0/xerces-1.4.0.jar
> /home/ajb/.m2/repository/xerces/xerces/1.4.0/xerces-1.4.0.jar: HTML
>
>> Any ideas what going on? I've tried removing my ~/.m2 as well as using
>> http://www.opennms.org/~ranger/maven-proxy-settings.xml for
>> ~/.m2/settings.xml.
>
> I switched back to rangers maven-proxy-settings as I recall this has
> been a problem before. However currently the build hangs on:

Apologies for the noise, but I figure it's best to post what I learnt
over the last few days just in case any other poor soul goes through
what I did and can't find the answer via Google.


It seems all my woes where down to using the system version of maven
(maven2-2.0.9 in my case). The build script honours the MVN
environment variable which in my case was set, this leads to
undesirable behaviour including:


* Not following redirects, resulting in jar files that are actually HTML files
* Hanging while talking to maven proxies

I should have read the building page on the Wiki more closely which
does mention the source tree bundles a copy of maven - 2.2.0 (r788681)
to be precise. This behaves much better and my build has started
working again.


Was this always the case? I seem to remember in the git-svn days I
jumped through hoops to get a sufficiently modern maven packaged for
Ubuntu 8.04 LTS. Anyway fixed now :-)

-- 
Alex, homepage: http://www.bennee.com/~alex/
http://www.half-llama.co.uk

------------------------------------------------------------------------------
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-devel mailing list

To *unsubscribe* or change your subscription options, see the bottom of this 
page:
https://lists.sourceforge.net/lists/listinfo/opennms-devel

Reply via email to