Monday, December 26, 2011

Add Maven Central Archetype Catalog to STS

I was going through the "Create your project using the Broadleaf Maven ecommerce Archetype" section of  broadleaf commerce "Getting Started" guide and it was not immediately obvious to me why I was unable to find  org.broadleafcommerce.ecommerce-archetype from STS > New Maven Project. It appeared STS by default does not include archetype from the maven central repository (at least not in latest 2.8.1). 

Add maven central archetype catalog to STS by adding the following URL http://repo1.maven.org/maven2/archetype-catalog.xml to Windows > Preferences > Maven > Archetypes > Add Remote Catalog...


Now you should be able to find the BroadleafCommerce ECommerce Archetype under to newly created remote catalog.