I am having trouble getting the DemoSite up and running. I downloaded Broadleaf-ecommerce 2.2 and I am using Eclipse Juno on Ubuntu 12.04 with JDK 1.7.01 and Maven 3.0.4
The first thing I noticed was this warning:
Ant Tools
website <reference pomDeps not found>
I used change-identifier to change the name of the company to Heritage Materials. I this a problem?
Then I ran the jetty-demo ant task and got this output:
It seems to be unable to find com.heritagematerials:site:war:1.0 and core:jar:1.0 Does this have something to do with the name change or do I load the 2 files into the repository manually as suggested?
jetty-demo
Buildfile: /home/calvin/eclipse-workspace/DemoSite/site/build.xml
start-db:
[artifact:dependencies] Downloading: com/heritagematerials/core/1.0/core-1.0.pom from repository public releases at http://www.broadleafcommerce.org/nexus/ ... snapshots/
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'com.heritagematerials:core:pom:1.0' in repository public releases (http://www.broadleafcommerce.org/nexus/ ... snapshots/)
[artifact:dependencies] Downloading: com/heritagematerials/core/1.0/core-1.0.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'com.heritagematerials:core:pom:1.0' in repository central (http://repo1.maven.org/maven2)
[artifact:dependencies] Downloading: com/heritagematerials/core/1.0/core-1.0.jar from repository public releases at http://www.broadleafcommerce.org/nexus/ ... snapshots/
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'com.heritagematerials:core:jar:1.0' in repository public releases (http://www.broadleafcommerce.org/nexus/ ... snapshots/)
[artifact:dependencies] Downloading: com/heritagematerials/core/1.0/core-1.0.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Unable to locate resource in repository
[artifact:dependencies] [INFO] Unable to find resource 'com.heritagematerials:core:jar:1.0' in repository central (http://repo1.maven.org/maven2)
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) com.heritagematerials:core:jar:1.0
[artifact:dependencies]
[artifact:dependencies] Try downloading the file manually from the project website.
[artifact:dependencies]
[artifact:dependencies] Then, install it using the command:
[artifact:dependencies] mvn install:install-file -DgroupId=com.heritagematerials -DartifactId=core -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies]
[artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there:
[artifact:dependencies] mvn deploy:deploy-file -DgroupId=com.heritagematerials -DartifactId=core -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) com.heritagematerials:site:war:1.0
[artifact:dependencies] 2) com.heritagematerials:core:jar:1.0
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies] com.heritagematerials:site:war:1.0
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] central (http://repo1.maven.org/maven2),
[artifact:dependencies] public releases (http://www.broadleafcommerce.org/nexus/ ... snapshots/)
[artifact:dependencies]
[artifact:dependencies]
BUILD FAILED
/home/calvin/eclipse-workspace/DemoSite/site/build.xml:78: Unable to resolve artifact: Missing:
----------
1) com.heritagematerials:core:jar:1.0
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.heritagematerials -DartifactId=core -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.heritagematerials -DartifactId=core -Dversion=1.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.heritagematerials:site:war:1.0
2) com.heritagematerials:core:jar:1.0
----------
1 required artifact is missing.
for artifact:
com.heritagematerials:site:war:1.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
public releases (http://www.broadleafcommerce.org/nexus/ ... snapshots/)
I then ran the jetty-demo-no-db ant task and basically got the same error. Where is the POM located?
jetty-demo-no-db
[artifact:mvn] [WARNING] The POM for com.heritagematerials:core:jar:1.0 is missing, no dependency information available
[artifact:mvn] [INFO] ------------------------------------------------------------------------
[artifact:mvn] [INFO] BUILD FAILURE
[artifact:mvn] [ERROR] Failed to execute goal on project site: Could not resolve dependencies for project com.heritagematerials:site:war:1.0: Failure to find com.heritagematerials:core:jar:1.0 in http://www.broadleafcommerce.org/nexus/ ... snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of public releases has elapsed or updates are forced -> [Help 1]
[artifact:mvn] [ERROR]
Here is my expanded package hierarchy -
/DemoSite
/DemoSite/admin
/DemoSite/combined
/DemoSite/core
/DemoSite/core/src
/DemoSite/core/target
/DemoSite/core/target/classes
/DemoSite/core/target/maven-archiver
/DemoSite/core/target/surefire
/DemoSite/core/target/test-classes
** /DemoSite/core/target/core-1.0.jar
/DemoSite/core/pom.xml
/DemoSite/lib
/DemoSite/site
/DemoSite/site/src
/DemoSite/site/target
/DemoSite/site/target/heritagematerials
/DemoSite/site/target/heritagematerials/css
/DemoSite/site/target/heritagematerials/fonts
/DemoSite/site/target/heritagematerials/img
/DemoSite/site/target/heritagematerials/js
/DemoSite/site/target/heritagematerials/META-INF
/DemoSite/site/target/heritagematerials/WEB-INF
/DemoSite/site/target/maven-archiver
/DemoSite/site/target/mycompany
/DemoSite/site/target/mycompany/WEB-INF
/DemoSite/site/target/surefire
/DemoSite/site/target/test-classes
** /DemoSite/site/target/heritagematerials.war
/DemoSite/site/build.xml
/DemoSite/site/pom.xml
/DemoSite/build.properties
/DemoSite/build.xml
/DemoSite/pom.xml
/DemoSite/README.md
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.