Page 1 of 2

Failed to Build

Posted: Tue Feb 11, 2014 5:59 pm
by Skychan
Hey, I'm new to Broadleaf and Mavin (not new to Java and Eclipse).

I followed the http://docs.broadleafcommerce.org/core/current/getting-started perfectly, got Apache Maven installed properly but when I went to Run As -> Maven Install in Eclipse on Demo Site, I got these errors:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

Failed to execute goal on project core: Could not resolve dependencies for project com.mycompany:core:jar:1.0: Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path C:\Program Files (x86)\Java\jre7/../lib/tools.jar -> [Help 1]

After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :core


Not sure where to start for resolving this. I don't even know how to resume the build; maybe by using cmd prompt, navigating to Demo Site folder and running above command, but I don't know what the <goals> are.

Re: Failed to Build

Posted: Tue Feb 11, 2014 7:43 pm
by phillipuniverse
I think we have a section missing from the getting started in that you must have a JDK installed on your system; that was an assumption. Judging from your path C:\Program Files (x86)\Java\jre7/../lib/tools.jar (the 'jre' portion) it looks like you do not have a JDK installed.

Once you do that then you should be ok. You can download the JDK from http://www.oracle.com/technetwork/java/ ... 80260.html

Re: Failed to Build

Posted: Wed Feb 12, 2014 12:36 am
by Skychan
The JDK requirement is in the instructions and it was the first thing I did. Also in the instructions was to put JAVA_HOME in the environment variables and I did so, pointing it to:

C:\Program Files\Java\jdk1.7.0_51

So I don't know why the build referenced the JRE, I must need to change some path from pointing to the JRE and point it to the JDK. I'll keep hunting, just not sure where to look

Re: Failed to Build

Posted: Wed Feb 12, 2014 1:27 am
by Skychan
I used Notepad++ and searched all of the workspace files as well as the mavin installation for a reference to "tools.jar" and found none.

For the SLF4J error I checked out the url it mentioned here: http://www.slf4j.org/codes.html#StaticLoggerBinder

and so I found the slf4j-simple.jar at this path:
C:\Program Files\Apache\apache-maven-3.1.1\lib

So I put that in the Environment Path but that didn't help at all.

No idea what else I can try.

Re: Failed to Build

Posted: Wed Feb 12, 2014 4:23 pm
by Skychan
Aha! Eclipse was configured to use the JRE, I configured it with JDK and it fully built!

I must have done something dumb like launch Eclipse prior to installing the JDK (new laptop) and Eclipse configured itself that way.

Re: Failed to Build

Posted: Tue Jan 27, 2015 5:32 am
by jnate
I had the same exact issue. I would like to know how (where in the menus) did you change Eclipse to work with the JDK instead of the JRE?
Thanks in advance!

Re: Failed to Build

Posted: Tue Jan 27, 2015 12:48 pm
by phillipuniverse
@jnate - Eclipse -> Preferences -> Java -> Installed JREs: http://cl.ly/image/3p0U3k0K0w0I

Re: Failed to Build

Posted: Mon Mar 09, 2015 7:47 pm
by jnate
phillipuniverse wrote:@jnate - Eclipse -> Preferences -> Java -> Installed JREs: http://cl.ly/image/3p0U3k0K0w0I


Thanks a lot mate. It worked!

Re: Failed to Build

Posted: Thu Mar 19, 2015 8:16 pm
by Swamy K
Still i am facing the below issue.Could please help us which step we are missing.
The below is the logs.

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[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 D:\eclipse-workspace\DemoSite\pom.xml to C:\Users\swamy\.m2\repository\com\spidercoupons\ecommerce-website\1.0\ecommerce-website-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building core 1.0
[INFO] ------------------------------------------------------------------------
Downloading: http://maven.restlet.org/org/restlet/je ... -2.1.1.pom
Downloading: http://maven.restlet.org/org/restlet/je ... -2.1.1.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ecommerce ......................................... SUCCESS [0.751s]
[INFO] core .............................................. FAILURE [5.958s]
[INFO] admin ............................................. SKIPPED
[INFO] site .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.735s
[INFO] Finished at: Fri Mar 20 06:45:46 IST 2015
[INFO] Final Memory: 11M/173M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project core: Could not resolve dependencies for project com.spidercoupons:core:jar:1.0: Failed to collect dependencies for [org.broadleafcommerce:broadleaf-framework:jar:3.1.12-GA (compile), org.broadleafcommerce:broadleaf-profile:jar:3.1.12-GA (compile), javax.servlet:servlet-api:jar:2.5 (provided)]: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-restlet (http://maven.restlet.org): Failed to transfer http://maven.restlet.org/org/restlet/je ... -2.1.1.pom. Error code 307, Temporary Redirect -> [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

DemoSite --> Run As --> Maven Install --FAILED

Posted: Mon Mar 23, 2015 8:27 pm
by Swamy K
Hi Team,

I am exploring this framework and facing starting issue.Please help in resolving the issues.I have followed each and every step which were mentioned in http://www.broadleafcommerce.com/docs/c ... ortunately i am facing maven install issue.

I have posted multiple queries but no reply from the support team.


SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.heatclinic:admin:war:1.0
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file C:\Program Files\Java\jre7\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ com.heatclinic:ecommerce-website:1.0, D:\eclipse-workspace\DemoSite\pom.xml, line 194, column 28
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.heatclinic:core:jar:1.0
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file C:\Program Files\Java\jre7\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ com.heatclinic:ecommerce-website:1.0, D:\eclipse-workspace\DemoSite\pom.xml, line 194, column 28
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.heatclinic:site:war:1.0
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file C:\Program Files\Java\jre7\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ com.heatclinic:ecommerce-website:1.0, D:\eclipse-workspace\DemoSite\pom.xml, line 194, column 28
[WARNING]
[WARNING] Some problems were encountered while building the effective model for com.heatclinic:ecommerce-website:pom:1.0
[WARNING] 'dependencyManagement.dependencies.dependency.systemPath' for com.sun:tools:jar refers to a non-existing file C:\Program Files\Java\jre7\..\lib\tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ line 194, column 28
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[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 D:\eclipse-workspace\DemoSite\pom.xml to C:\Users\swamy\.m2\repository\com\heatclinic\ecommerce-website\1.0\ecommerce-website-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building core 1.0
[INFO] ------------------------------------------------------------------------
Downloading: http://nexus.broadleafcommerce.org/nexu ... -2.1.1.pom
Downloading: http://repo.maven.apache.org/maven2/org ... -2.1.1.pom
Downloading: http://repository.codehaus.org/org/rest ... -2.1.1.pom
Downloading: http://maven.restlet.org/org/restlet/je ... -2.1.1.pom
Downloading: http://nexus.broadleafcommerce.org/nexu ... -2.1.1.pom
Downloading: http://repo.maven.apache.org/maven2/org ... -2.1.1.pom
Downloading: http://repository.codehaus.org/org/rest ... -2.1.1.pom
Downloading: http://maven.restlet.org/org/restlet/je ... -2.1.1.pom
Downloading: http://repository.codehaus.org/org/ecli ... tadata.xml
Downloading: http://repo.maven.apache.org/maven2/org ... tadata.xml
Downloading: http://nexus.broadleafcommerce.org/nexu ... tadata.xml
Downloading: https://oss.sonatype.org/content/reposi ... tadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org ... tadata.xml (376 B at 0.7 KB/sec)
Downloading: http://repository.codehaus.org/org/ecli ... tadata.xml
Downloading: http://nexus.broadleafcommerce.org/nexu ... tadata.xml
Downloading: http://repo.maven.apache.org/maven2/org ... tadata.xml
Downloading: https://oss.sonatype.org/content/reposi ... tadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org ... tadata.xml (383 B at 0.7 KB/sec)
Downloading: http://nexus.broadleafcommerce.org/nexu ... tadata.xml
Downloading: https://oss.sonatype.org/content/reposi ... tadata.xml
Downloading: http://repository.codehaus.org/org/ecli ... tadata.xml
Downloading: http://repo.maven.apache.org/maven2/org ... tadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org ... tadata.xml (462 B at 0.7 KB/sec)
Downloading: https://oss.sonatype.org/content/reposi ... tadata.xml
Downloading: http://repository.codehaus.org/org/ecli ... tadata.xml
Downloading: http://nexus.broadleafcommerce.org/nexu ... tadata.xml
Downloading: http://repo.maven.apache.org/maven2/org ... tadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org ... tadata.xml (420 B at 0.4 KB/sec)
Downloading: http://repo.maven.apache.org/maven2/org ... tadata.xml
Downloading: http://nexus.broadleafcommerce.org/nexu ... tadata.xml
Downloading: https://oss.sonatype.org/content/reposi ... tadata.xml
Downloading: http://repository.codehaus.org/org/ecli ... tadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org ... tadata.xml (433 B at 0.8 KB/sec)
Downloading: http://nexus.broadleafcommerce.org/nexu ... tadata.xml
Downloading: http://repository.codehaus.org/org/ecli ... tadata.xml
Downloading: http://repo.maven.apache.org/maven2/org ... tadata.xml
Downloading: https://oss.sonatype.org/content/reposi ... tadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org ... tadata.xml (436 B at 0.7 KB/sec)
Downloading: https://oss.sonatype.org/content/reposi ... tadata.xml
Downloading: http://repo.maven.apache.org/maven2/org ... tadata.xml
Downloading: http://nexus.broadleafcommerce.org/nexu ... tadata.xml
Downloading: http://repository.codehaus.org/org/ecli ... tadata.xml
Downloaded: http://repo.maven.apache.org/maven2/org ... tadata.xml (433 B at 0.8 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ecommerce ......................................... SUCCESS [0.930s]
[INFO] core .............................................. FAILURE [1:54.629s]
[INFO] admin ............................................. SKIPPED
[INFO] site .............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:56.354s
[INFO] Finished at: Tue Mar 24 06:51:18 IST 2015
[INFO] Final Memory: 11M/103M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project core: Could not resolve dependencies for project com.heatclinic:core:jar:1.0: Failed to collect dependencies for [org.broadleafcommerce:broadleaf-framework:jar:3.1.12-GA (compile), org.broadleafcommerce:broadleaf-profile:jar:3.1.12-GA (compile), javax.servlet:servlet-api:jar:2.5 (provided)]: Failed to read artifact descriptor for org.restlet.jee:org.restlet:jar:2.1.1: Could not transfer artifact org.restlet.jee:org.restlet:pom:2.1.1 from/to maven-restlet (http://maven.restlet.org): Failed to transfer http://maven.restlet.org/org/restlet/je ... -2.1.1.pom. Error code 307, Temporary Redirect -> [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