Page 1 of 1

unable to compile and run the demo

Posted: Fri Jan 24, 2014 12:16 pm
by juglarx
Hi everyone, i´m trying to install and run the demo but i can´t even get compile it... i got a error message on maven, here is the output


Code: Select all

Buildfile: C:\Users\jose.plano\Desktop\eclipse\eclipse-workspace\DemoSite\site\build.xml
build-app:
[artifact:mvn] [INFO] Scanning for projects...
[artifact:mvn] [INFO]                                                                         
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO] Building site 1.0
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [WARNING] The POM for com.mycompany:core:jar:1.0 is missing, no dependency information available
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO] BUILD FAILURE
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO] Total time: 8.692s
[artifact:mvn] [INFO] Finished at: Fri Jan 24 13:18:51 ART 2014
[artifact:mvn] [INFO] Final Memory: 9M/62M
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [ERROR] Failed to execute goal on project site: Could not resolve dependencies for project com.mycompany:site:war:1.0: The following artifacts could not be resolved: com.mycompany:core:jar:1.0, jdk.tools:jdk.tools:jar:1.6: Failure to find com.mycompany:core:jar:1.0 in http://nexus.broadleafcommerce.org/nexus/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of public snapshots has elapsed or updates are forced -> [Help 1]
[artifact:mvn] [ERROR]
[artifact:mvn] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[artifact:mvn] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[artifact:mvn] [ERROR]
[artifact:mvn] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[artifact:mvn] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[artifact:mvn] Java Result: 1
BUILD SUCCESSFUL
Total time: 14 seconds



JVM is:1.7.0_45
Eclipse version: kepler (Using m2 plugin)
maven version:3.1.1

any clue on how i can solve it?

thanks in advance...!

Re: unable to compile and run the demo

Posted: Mon Jan 27, 2014 12:21 pm
by phillipuniverse
Do a maven install on the root of the project. The build-app ant task is a little confusing as it will not automatically build the core project which will leave you with that error on the first build.

The docs for running Broadleaf for the first time start at http://docs.broadleafcommerce.org/core/ ... rting-site once you have everything in Eclipse.

Re: unable to compile and run the demo

Posted: Wed Jan 29, 2014 1:16 pm
by juglarx
Hi i´doing the steps for the

http://docs.broadleafcommerce.org/core/ ... rting-site

now i get this error and i can´t figure out what happend i change the JDK to 1.6 (i unistall the jdk7) but i still get this error when i build the core

Code: Select all


[ERROR] 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\Java\jre6/../lib/tools.jar -> [Help 1]
[

Re: unable to compile and run the demo

Posted: Wed Jan 29, 2014 9:53 pm
by DeanWade
is your JAVA_HOME set to jre instead of jdk? as I couldn't find the tool.jar in jre/lib.