Page 1 of 1

New Project Hanging

Posted: Wed May 23, 2012 3:42 pm
by csilk
I've just updated the Maven index as per the instructions in the getting started guide and I'm now at the point where eclipse is 'Importing maven projects / Creating ecommerce-archetype'. It appears that the process is hanging at this point.

Anyone else run into this problem?

Re: New Project Hanging

Posted: Thu May 24, 2012 3:42 pm
by csilk
Thought I would include a screenshot as my previous explanation wasn't great.

Eclipse hangs at this point (always 10%) and there's nothing in the workspace/.metadata/.log file

screenshot.jpg
screenshot.jpg (71.85 KiB) Viewed 23337 times

Re: New Project Hanging

Posted: Thu May 24, 2012 4:45 pm
by skip
Exactly the problem I was facing at 10%.

You think you could try the instructions given at http://wiki.broadleafcommerce.org/confluence/display/BLC16/Instructions+for+using+the+command+line

and then you could change the maven.home property in myecommerce-app/build.properties point your maven home directory on your system
and then run mvn install for myecommerce-app/pom.xml and then run jetty-demo task for site-war/build.xml
and then try http://localhost:8080/mycompany
and then run jetty-demo for admin-war/build.xml
and then try http://localhost:8081/admin/admin.html
and then when you see everything working alright you could import the project into your eclipse IDE.

NOTE: Make sure you're getting a BUILD SUCCESS at the end of every command you run.

Re: New Project Hanging

Posted: Fri May 25, 2012 10:48 am
by aazzolini
Which version of the archetype are you trying to use?

Also, give skip's instructions a shot and let us know if they work. If not, reply back here and we can investigate.

Re: New Project Hanging

Posted: Fri May 25, 2012 11:08 am
by aazzolini
Also, make sure you're using the Maven Central archetype catalog.

You can ensure you're using it by clicking configure at the archetype selection screen, adding a remote catalog, and pointing it to

Code: Select all

http://repo1.maven.org/maven2/archetype-catalog.xml


Here's a screenshot:

http://cl.ly/361N3t2i3v2g2B19340S

I'm able to successfully import the project in Eclipse (Using the 1.6.0-GA version of the archetype).

Let me know if you continue to run into issues.

Re: New Project Hanging

Posted: Fri May 25, 2012 2:20 pm
by csilk
The link you gave me (repo1.maven.org/maven2/archetype-catalog.xml) doesn't seem to work from my connection so I'm using a mirror and I'm getting the same version archetype that you're using but I still get the same issue.

I've got the manual steps working as described in the previous posters response but I'm having all sorts of trouble with page 404's and new pages not working and a lot of stacktraces appearing in the logs.

I'll retry all of the steps to make sure I'm doing everything in a sane manner and report back my findings.

Re: New Project Hanging

Posted: Fri May 25, 2012 5:00 pm
by csilk
I've got everything working now via the command line method. I think the problem was with the archetype that I was getting from the French mirror. I ended up using the official UK mirror of the central repository and everything seems to work well now.

I'm not sure if this is what caused the Eclipse issues as I used the CLI to do everything. I may give that a go at some point but for now everything appears to be working for me.

Thanks for all the help.

Craig