Page 1 of 1

Maven Install failed

Posted: Mon Sep 10, 2012 1:29 pm
by meifullerton
Hi,
I followed the "getting started" with downloading eclipse workspace, and the maven install is failing (errors below). Any ideas?
thanks.


[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] ecommerce
[INFO] core
[INFO] admin
[INFO] site
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ecommerce 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ ecommerce-website ---
[INFO] Installing C:\eclipse-workspace\DemoSite\pom.xml to C:\Documents and Settings\mei-fullerton\.m2\repository\com\mycompany\ecommerce-website\1.0\ecommerce-website-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building core 1.0
[INFO] ------------------------------------------------------------------------
Downloading: http://www.broadleafcommerce.org/nexus/ ... -RC1-1.pom
Downloading: http://www.broadleafcommerce.org/nexus/ ... -RC1-1.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ecommerce ......................................... SUCCESS [0.561s]
[INFO] core .............................................. FAILURE [16.526s]
[INFO] admin ............................................. SKIPPED
[INFO] site .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.274s
[INFO] Finished at: Mon Sep 10 14:17:06 EDT 2012
[INFO] Final Memory: 6M/16M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project core: Could not resolve dependencies for project com.mycompany:core:jar:1.0: Failed to collect dependencies for [org.broadleafcommerce:broadleaf-framework:jar:2.0.0-RC1-1 (compile), org.broadleafcommerce:broadleaf-profile:jar:2.0.0-RC1-1 (compile)]: Failed to read artifact descriptor for org.broadleafcommerce:broadleaf-framework:jar:2.0.0-RC1-1: Could not transfer artifact org.broadleafcommerce:broadleaf-framework:pom:2.0.0-RC1-1 from/to public releases (http://www.broadleafcommerce.org/nexus/ ... /releases/): null to http://www.broadleafcommerce.org/nexus/ ... -RC1-1.pom: UnresolvedAddressException -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... nException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :core

Re: Maven Install failed

Posted: Mon Sep 10, 2012 2:42 pm
by phillipuniverse
Try changing the repository definition in your root-level pom from:

Code: Select all

   <repositories>
      <repository>
         <id>public releases</id>
         <name>public releases</name>
         <url>http://www.broadleafcommerce.org/nexus/content/repositories/snapshots/</url>
      </repository>
   </repositories>


To:

Code: Select all

   <repositories>
      <repository>
         <id>public releases</id>
         <name>public releases</name>
         <url>http://nexus.broadleafcommerce.org/nexus/content/repositories/releases/</url>
      </repository>
   </repositories>

Re: Maven Install failed

Posted: Mon Sep 10, 2012 4:49 pm
by meifullerton
Sorry, that didn't work.

Re: Maven Install failed

Posted: Mon Sep 10, 2012 5:08 pm
by meifullerton
Never mind, it's working after "force update of snapshots/releases" on Maven project update.