Page 1 of 1

unable to get demo code to my eclipse

Posted: Mon Feb 13, 2012 3:59 pm
by veena
Hi,

appreciate help here.

I am trying to get the demo code into my eclipse, followed all the instructions but I get this error: Missing artifact net.sf.ehcache:ehcache-terracotta:jar:2.4.2:compile

here are the steps I did:

downloaded eclipse Indigo, maven 3.0.3, installed maven plugins and extras.

I tried following steps in "2.Steps to use the Broadleaf ecommerce archetype with Eclipse" from http://www.broadleafcommerce.org/conflu ... or+Eclipse
but was unable to find org.broadleafcommerce in categories.

then I tried with this URL: http://www.broadleafcommerce.org/conflu ... se+-+Maven
Added maven repository and depencies
<dependency>
<groupId>org.broadleafcommerce</groupId>
<artifactId>broadleaf-framework-web</artifactId>
<version>1.1.0-GA</version>
</dependency>

this version of broadleaf-framework-web was giving error saying missing artifact 1.1.0-GA, I replaced with 1.5.1-GA it seemed to be working, when I started the Maven build says
Failure to find net.sf.ehcache:ehcache-terracotta:jar:2.4.2 in http://devapp/nexus-maven/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
[ERROR]

can some one please help or provide steps to get the demo code and run the application locally.

Re: unable to get demo code to my eclipse

Posted: Wed Feb 15, 2012 1:44 am
by bpolster
You need to use the instructions from the first link. Sometimes it takes a while (20 minutes) for eclipse to update the Maven index. You can search stack overflow or other forums for how to add an Archetype manually without waiting for the index to be updated. The latest BLC archetype is definately in Maven Central.

The other instructions are no longer supported or advised.

Thanks,

Re: unable to get demo code to my eclipse

Posted: Mon Dec 31, 2012 3:09 pm
by ruewan
I also got the same problem. Even after the maven indexes updated I still get the error

ArtifactDescriptorException: Failed to read artifact descriptor for net.sf.ehcache:ehcache-terracotta:jar:2.4.2: ArtifactResolutionException: Failure to transfer net.sf.ehcache:ehcache-terracotta:pom:2.4.2 from http://www.terracotta.org/download/reflector/releases was cached in the local repository, resolution will not be reattempted until the update interval of terracotta-releases has elapsed or updates are forced. Original error: Could not transfer artifact net.sf.ehcache:ehcache-terracotta:pom:2.4.2 from/to terracotta-releases (http://www.terracotta.org/download/reflector/releases): connection timed out to http://www.terracotta.org/download/refl ... -2.4.2.pom

I got the same error when I downloaded the 1.5 code from sourceforge, but when I changed the ehcache dependency from 2.4.2 to 2.5.5 the error went away.

Re: unable to get demo code to my eclipse

Posted: Wed Jan 02, 2013 1:23 pm
by phillipuniverse
FYI this post is referencing very out-of-date versions of Broadleaf. You should definitely be using the latest GA release which is currently at 2.1, unless for whatever reason you were already on 1.5 and do not want to upgrade.

Re: unable to get demo code to my eclipse

Posted: Fri Jan 04, 2013 7:10 am
by sattymish
mvn install was failing for me too due to issues in downloading ehcache-terracotta artifact.
I added a new repository which fixed the issue for me

Code: Select all

                <repository>
         <id>terracota alt</id>
         <name>public releases</name>
         <url>http://repository.opencastproject.org/nexus/content/repositories/terracotta/</url>
      </repository>

Re: unable to get demo code to my eclipse

Posted: Fri Jan 04, 2013 12:30 pm
by che5ari
Thanks sattymish, that's exactly what was needed. I was having the same problem. terracota.org seems to be a very flaky site.