Page 1 of 1

Issue Loading Ant Build Files

Posted: Thu Jan 12, 2012 3:32 am
by rickygarg
Hi, Thank you for developing Broadleaf. Although it has taken a while to get everything set up thanks to my newness with Maven, I have finally managed to do a Maven install as explained in the getting started guide.

Now, when I load the build.xml files on Eclipse, I am unable to find any targets. When I opened these files on eclipse editor, I see the following:

Code: Select all

Could not open the editor: Malformed \uxxxx encoding.


I can open this just fine on notepad. Is there something obvious that I am doing wrong?

The closest pointer to this issue I found is at the following link.
http://www.coderanch.com/t/107014/tools ... ding-error

Re: Issue Loading Ant Build Files

Posted: Thu Jan 12, 2012 3:48 am
by bpolster
Ricky,

Not sure about that. Two things come to mind.
1. One the file could be corrupt (locally for you or in the distribution). You could open up in vi and look for weird characters.

2. Check your own build.properties and make sure the directory paths use "/" instead of "\".

Re: Issue Loading Ant Build Files

Posted: Thu Jan 12, 2012 4:32 am
by rickygarg
2 solves the issue! Thank you bpolster.

However, since I have installed Maven through Eclipse, I am confused about the right path to MAVEN.HOME. I assume MAVEN.HOME to be somewhere in the ECLIPSE folder. Can you guide me to the right path ? There are too many jar's associated with maven.

Thanks!

Re: Issue Loading Ant Build Files

Posted: Thu Jan 12, 2012 6:51 pm
by aazzolini
Hi Ricky,

I would recommend not using the maven that comes built in with Eclipse. Instead, I would suggest downloading Maven (I use version 3.0.3) which you can find here: http://maven.apache.org/download.html

Once you have done that, you should point MAVEN.HOME to wherever you've installed Maven on your machine.

I would also go into Eclipse preferences --> Maven --> Installations and add your external installation.

Let us know if you continue to have problems and we'll get you sorted out!

Re: Issue Loading Ant Build Files

Posted: Sun Apr 15, 2012 7:11 am
by rothwellgr
Hi, I am having a similar issue trying to build and run project in Eclipse but different error message "unable to parse as an ant buildfile." I'm using Windows and have set the maven.home variable as follows C:/Program Files/Apache Software Foundation/apache-maven-3.0.4/

Maybe it should point somewhere in Eclipse?

Re: Issue Loading Ant Build Files

Posted: Sat Jun 29, 2013 12:36 pm
by raymay
The package is not mature enough to install and demo. The install instructions are inaccurate; therefore the ant build fails.

I'l come back in 6 months - a total waste of time trying to setup for a demo.

Re: Issue Loading Ant Build Files

Posted: Sat Jun 29, 2013 3:04 pm
by phillipuniverse
Raymay,

Unfortunate that you have run into problems setting up a demo application. Which install instructions are inaccurate? If we have incorrect instructions on how to get Broadleaf up and running, we definitely want to fix that.

The latest instructions for setting up a Broadleaf site are located at http://docs.broadleafcommerce.org/curre ... arted.html. Which areas of the doc were not working for you?

Again, sorry for the difficulties and we would really like to hear about how we can improve. Thanks!