Page 1 of 2

running "maven install" problem

Posted: Wed Jan 27, 2010 4:16 am
by solo
hi there

I checked out the code from svn and configed accroding the eclipse develpoer's guide.
but when i was running "maven install" I got the flowing error message:
-------------------------------------------------------
T E S T S
-------------------------------------------------------
There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO] [jar:jar]
[INFO] [antrun:run]
[INFO] Executing tasks
[cobertura-instrument] java.lang.NoClassDefFoundError: net/sourceforge/cobertura/instrument/Main
[cobertura-instrument] Exception in thread "main"
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] BroadleafCommerce ..................................... SUCCESS [1.781s]
[INFO] BroadleafCommerceProfile .............................. SUCCESS [7.250s]
[INFO] BroadleafCommerceProfileWeb ........................... SUCCESS [3.312s]
[INFO] BroadleafCommerceFramework ............................ SUCCESS [5.250s]
[INFO] BroadleafCommerceFrameworkWeb ......................... FAILED [2.500s]
[INFO] BroadleafCommerceUSPSSchemas .......................... NOT BUILT
[INFO] BroadleafCommerceUSPS ................................. NOT BUILT
[INFO] BroadleafCommerceCyberSourceAPI ....................... NOT BUILT
[INFO] BroadleafCommerceCyberSource .......................... NOT BUILT
[INFO] BroadleafCommerceIntegrationTests ..................... NOT BUILT
[INFO] BroadleafCommerceDemo ................................. NOT BUILT
[INFO] BroadleafCommerceAdmin ................................ NOT BUILT
[INFO] BroadleafCommerceAdminWeb ............................. NOT BUILT
[INFO] ------------------------------------------------------------------------
[ERROR]

The following mojo encountered an error while executing:
Group-Id: org.apache.maven.plugins
Artifact-Id: maven-antrun-plugin
Version: 1.3
Mojo: run
brought in via: POM

While building project:
Group-Id: org.broadleafcommerce
Artifact-Id: broadleaf-framework-web
Version: 0.0.0
From file: D:\workspace3.4\BroadleafCommerce\BroadleafCommerceFrameworkWeb\pom.xml
Reason: An Ant BuildException has occured: Error instrumenting classes. See messages above.



[INFO] ------------------------------------------------------------------------
[INFO] For more information, run with the -e flag
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILED
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 21 seconds
[INFO] Finished at: Wed Jan 27 17:06:14 PST 2010
[INFO] Final Memory: 5M/26M
[INFO] ------------------------------------------------------------------------


anyone can help me!?

Re: running "maven install" problem

Posted: Mon Feb 01, 2010 3:28 pm
by jefffischer
It looks like a library may not have been downloaded by Maven that the project depends on to execute. When you execute 'mvn install', watch the console output carefully and see if maven was unsuccessful while downloading any libraries, specifically libraries related to Cobertura.

Re: running "maven install" problem

Posted: Tue Mar 02, 2010 5:00 pm
by vector1083q5w2
Is there any way, other than to 'watch the console output carefully' to determine whether or not all libraries/dependencies were installed or not? Can I not grep some log file somewhere?

I've successfully gotten the same error (below) on a bare-metal Ubuntu 9.04 install as well as a bare metal Centos 5.4 install. I've gotten the demo going under WinXP, but fail at getting Admin built. What's the recommended build environment the developers use? After screwing around with simply trying to get a clean functional install for nearly 3 days, I'm about ready to give up on this, and recommend my client use something else.



Code: Select all

Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-framework-web/1.0.1/broadleaf-framework-web-1.0.1.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.broadleafcommerce:broadleaf-usps:jar:1.0.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-usps \
          -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:       mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-usps \
          -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file \
           -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.broadleafcommerce:broadleaf-demo:jar:1.0.1
        2) org.broadleafcommerce:broadleaf-usps:jar:1.0.1

2) org.broadleafcommerce:broadleaf-framework-web:jar:1.0.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-framework-web \
          -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:       mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-framework-web \
          -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file \
           -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.broadleafcommerce:broadleaf-demo:jar:1.0.1
        2) org.broadleafcommerce:broadleaf-framework-web:jar:1.0.1

----------
2 required artifacts are missing.

for artifact:
  org.broadleafcommerce:broadleaf-demo:jar:1.0.1

from the specified remote repositories:
  jboss.com (http://repository.jboss.com/maven2),
  java.net (http://download.java.net/maven/1),
  __jpp_repo__ (file:///usr/share/maven2/repository),
  flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgroup),
  central (http://repo1.maven.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6 seconds
[INFO] Finished at: Tue Mar 02 16:46:36 EST 2010
[INFO] Final Memory: 13M/32M
[INFO] ------------------------------------------------------------------------
[user@localhost BroadleafCommerceDemo]$


Re: running "maven install" problem

Posted: Tue Mar 02, 2010 5:46 pm
by bradford.taylor
Our internal developers have built BLC on Umbutu Linux, Mac OS X, Windows XP and Windows 7. What's more important than the OS are the tools to build with. The required tools to build Demo are:

JDK 1.5 ( http://java.sun.com/javase/downloads/index_jdk5.jsp)
MySQL 5 ( http://dev.mysql.com/downloads/)
Tomcat 6.0.20 ( http://tomcat.apache.org/download-60.cgi)
Maven 2.0.9 ( http://archive.apache.org/dist/maven/binaries/)
Ant 1.7.1 ( http://ant.apache.org/bindownload.cgi)

Before you build you will also want to edit the build.properties file in the root of the project, in the BroadleafCommerceDemo and the BroadleafCommerceAdminWeb project.

In the error you listed, it appears that BroadleafCommerceUSPS project hasn't been built (i.e. the mvn install command hasn't been run or had an error in the BroadleafCommerceUSPS directory) and so that dependency isn't available for the Demo project build.

I would suggest making sure you first run a build in the root directory where you checked out the project (i.e. BroadleafCommerce). It goes through and builds the projects in the order they are needed. If you have done that and are getting this error, then there may have been a problem with the build for USPS package and you should run the mvn install command from the BroadleafCommerceUSPS directory to see if there is an error in that build.

Incidently, I just checked out the Tag release_1_0_1 (the one it appears you are wanting to build) and after editing the build.properties files, the mvn install command from the BroadleafCommerce directory built successfully.

Re: running "maven install" problem

Posted: Wed Mar 03, 2010 1:33 pm
by vector1083q5w2
I'm using the 1.0.1 release found on Sourceforge (http://sourceforge.net/projects/broadleaf/files/Broadleaf%20Commerce/1.0.1%20GA/BroadleafCommerce-1.0.1-with-dependencies.zip/download), which I assume is identical to your Tag release_1_0_1.

Here's my setup:

Code: Select all

user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ java -version
java version "1.6.0_18"                                                   
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)                     
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)         
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ mysql --version
mysql  Ver 14.12 Distrib 5.0.75, for debian-linux-gnu (i486) using readline 5.2
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ /usr/share/tomcat6/bin/version.sh
Using CATALINA_BASE:   /usr/share/tomcat6                                                     
Using CATALINA_HOME:   /usr/share/tomcat6
Using CATALINA_TMPDIR: /usr/share/tomcat6/temp
Using JRE_HOME:       /usr/lib/jvm/jdk1.6.0_18
Server version: Apache Tomcat/6.0.18
Server built:   Feb 11 2010 04:56:56
Server number:  6.0.0.0
OS Name:        Linux
OS Version:     2.6.22.18-co-0.7.4
Architecture:   i386
JVM Version:    1.6.0_18-b07
JVM Vendor:     Sun Microsystems Inc.
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ mvn -version
Maven version: 2.0.9
Java version: 1.6.0_18
OS name: "linux" version: "2.6.22.18-co-0.7.4" arch: "i386" Family: "unix"
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ ant -version
Apache Ant version 1.7.1 compiled on November 10 2008
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ cat build.properties
# Ant properties for building the Broadleaf Commerce Demo app
# /dev/apps/apache-tomcat-6.0.18
# appserver.home=/Developer/Applications/apache-tomcat
appserver.home=/usr/share/tomcat6

# appserver.lib=/dev/apps/apache-tomcat-6.0.18/lib
deploy.path=${appserver.home}/webapps

mysql.db.driver=com.mysql.jdbc.Driver
# Uncomment the line below and comment out the localhost db.url to run load scripts on the QA box.
#mysql.db.url=jdbc:mysql://192.168.11.150:3306/broadleafdemo?autoReconnect=true&useUnicode=true&characterEncoding=UTF8
mysql.db.url=jdbc:mysql://localhost:3306/broadleafcommerce?autoReconnect=true&useUnicode=true&characterEncoding=UTF8
mysql.db.user=root
mysql.db.pw=pass
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$


Here's some more info regarding the setup:

Code: Select all

user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ echo $JAVA_HOME
/usr/lib/jvm/jdk1.6.0_18
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/jvm/jdk1.6.0_18/bin
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$


Here's what happens when I do a clean mvn install:

Code: Select all

user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ rm -fR /home/user/.m2                                               
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ mvn install                                                         
[INFO] Scanning for projects...                                                                                                   
[INFO] ------------------------------------------------------------------------                                                   
[INFO] Building BroadleafCommerceDemo                                                                                             
[INFO]    task-segment: [install]                                                                                                 
[INFO] ------------------------------------------------------------------------                                                   
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom                                                                                                               
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom     
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-plugins/1/maven-plugins-1.pom 
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/1/maven-plugins-1.pom                           
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven-parent/1/maven-parent-1.pom           
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/1/maven-parent-1.pom                                     
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/apache/1/apache-1.pom                             
Downloading: http://repo1.maven.org/maven2/org/apache/apache/1/apache-1.pom                                                       
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.jar                                                                                                               
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.jar     
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom                                                                                                             
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.pom   
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-plugins/8/maven-plugins-8.pom 
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/8/maven-plugins-8.pom                           
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven-parent/5/maven-parent-5.pom           
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/5/maven-parent-5.pom                                     
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/apache/3/apache-3.pom                             
Downloading: http://repo1.maven.org/maven2/org/apache/apache/3/apache-3.pom                                                       
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar                                                                                                             
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0.2/maven-compiler-plugin-2.0.2.jar   
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-surefire-plugin/2.4.2/maven-surefire-plugin-2.4.2.pom                                                                                                             
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2/maven-surefire-plugin-2.4.2.pom   
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/surefire/surefire/2.4.2/surefire-2.4.2.pom   
Downloading: http://repo1.maven.org/maven2/org/apache/maven/surefire/surefire/2.4.2/surefire-2.4.2.pom                             
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven-parent/7/maven-parent-7.pom           
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/7/maven-parent-7.pom                                     
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/apache/4/apache-4.pom                             
Downloading: http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom                                                       
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-surefire-plugin/2.4.2/maven-surefire-plugin-2.4.2.jar                                                                                                             
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.4.2/maven-surefire-plugin-2.4.2.jar   
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-jar-plugin/2.2/maven-jar-plugin-2.2.pom                                                                                                                           
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.2/maven-jar-plugin-2.2.pom                 
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-plugins/10/maven-plugins-10.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/10/maven-plugins-10.pom                         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-jar-plugin/2.2/maven-jar-plugin-2.2.jar                                                                                                                           
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.2/maven-jar-plugin-2.2.jar                 
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.pom                                                                                                                   
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.pom         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.jar                                                                                                                   
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.jar         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/codehaus/mojo/cobertura-maven-plugin/2.3/cobertura-maven-plugin-2.3.pom                                                                                                                     
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.3/cobertura-maven-plugin-2.3.pom             
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/codehaus/mojo/mojo/16/mojo-16.pom                         
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/mojo/16/mojo-16.pom                                                   
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/codehaus/mojo/cobertura-maven-plugin/2.3/cobertura-maven-plugin-2.3.jar                                                                                                                     
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/cobertura-maven-plugin/2.3/cobertura-maven-plugin-2.3.jar             
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-plugin-api/2.0/maven-plugin-api-2.0.pom                         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven/2.0/maven-2.0.pom                     
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven/2.0/maven-2.0.pom                                               
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven-project/2.0/maven-project-2.0.pom     
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-project/2.0/maven-project-2.0.pom                               
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven-profile/2.0/maven-profile-2.0.pom     
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-profile/2.0/maven-profile-2.0.pom                               
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven-model/2.0/maven-model-2.0.pom         
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-model/2.0/maven-model-2.0.pom                                   
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.0.4/plexus-utils-1.0.4.pom                           
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom                                                                                               
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom                                                                                                                         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/junit/junit/3.8.1/junit-3.8.1.pom                             
Downloading: http://repo1.maven.org/maven2/junit/junit/3.8.1/junit-3.8.1.pom                                                       
Downloading: http://repository.sonatype.org/content/groups/flexgroup/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.pom                                                                                                                                 
Downloading: http://repo1.maven.org/maven2/classworlds/classworlds/1.1-alpha-2/classworlds-1.1-alpha-2.pom                         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven-artifact-manager/2.0/maven-artifact-manager-2.0.pom                                                                                                                       
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact-manager/2.0/maven-artifact-manager-2.0.pom             
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven-repository-metadata/2.0/maven-repository-metadata-2.0.pom                                                                                                                 
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-repository-metadata/2.0/maven-repository-metadata-2.0.pom       
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven-artifact/2.0/maven-artifact-2.0.pom   
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-artifact/2.0/maven-artifact-2.0.pom                             
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-5/wagon-provider-api-1.0-alpha-5.pom                                                                                                         
Downloading: http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-5/wagon-provider-api-1.0-alpha-5.pom
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom     
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.pom                               
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom             
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.4/plexus-1.0.4.pom                                       
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar     
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar                               
[INFO] [resources:resources]                                                                                                       
[INFO] Using default encoding to copy filtered resources.                                                                         
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/poms/broadleaf-framework-web-1.0.1.pom                         
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-framework-web/1.0.1/broadleaf-framework-web-1.0.1.pom                                                                                                                                 
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-framework-web/1.0.1/broadleaf-framework-web-1.0.1.pom                                                                                                           
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-framework-web/1.0.1/broadleaf-framework-web-1.0.1.pom   
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/poms/broadleaf-usps-1.0.1.pom                                 
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-usps/1.0.1/broadleaf-usps-1.0.1.pom               
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-usps/1.0.1/broadleaf-usps-1.0.1.pom                                                                                                                             
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-usps/1.0.1/broadleaf-usps-1.0.1.pom                     
Downloading: http://download.java.net/maven/1/mysql/poms/mysql-connector-java-5.1.6.pom                                           
Downloading: http://repository.jboss.com/maven2/mysql/mysql-connector-java/5.1.6/mysql-connector-java-5.1.6.pom                   
1K downloaded                                                                                                                     
Downloading: http://download.java.net/maven/1/commons-dbcp/poms/commons-dbcp-1.2.2.pom                                             
Downloading: http://repository.jboss.com/maven2/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.pom                             
Downloading: http://repository.sonatype.org/content/groups/flexgroup/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.pom       
Downloading: http://repo1.maven.org/maven2/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.pom                                 
Downloading: http://download.java.net/maven/1/commons-pool/poms/commons-pool-1.3.pom                                               
Downloading: http://repository.jboss.com/maven2/commons-pool/commons-pool/1.3/commons-pool-1.3.pom                                 
5K downloaded                                                                                                                     
Downloading: http://download.java.net/maven/1/org.apache.tiles/poms/tiles-api-2.0.5.pom                                           
Downloading: http://repository.jboss.com/maven2/org/apache/tiles/tiles-api/2.0.5/tiles-api-2.0.5.pom                               
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/tiles/tiles-api/2.0.5/tiles-api-2.0.5.pom         
Downloading: http://repo1.maven.org/maven2/org/apache/tiles/tiles-api/2.0.5/tiles-api-2.0.5.pom                                   
Downloading: http://download.java.net/maven/1/org.apache.tiles/poms/tiles-parent-2.0.5.pom                                         
Downloading: http://repository.jboss.com/maven2/org/apache/tiles/tiles-parent/2.0.5/tiles-parent-2.0.5.pom                         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/tiles/tiles-parent/2.0.5/tiles-parent-2.0.5.pom   
Downloading: http://repo1.maven.org/maven2/org/apache/tiles/tiles-parent/2.0.5/tiles-parent-2.0.5.pom                             
Downloading: http://people.apache.org/repo/m2-snapshot-repository/org/apache/tiles/tiles-master/1/tiles-master-1.pom               
Downloading: http://people.apache.org/builds/tiles/${pom.version}/m2-staging-repository//org/apache/tiles/tiles-master/1/tiles-master-1.pom                                                                                                                           
Downloading: http://download.java.net/maven/1/org.apache.tiles/poms/tiles-master-1.pom                                             
Downloading: http://repository.jboss.com/maven2/org/apache/tiles/tiles-master/1/tiles-master-1.pom                                 
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/tiles/tiles-master/1/tiles-master-1.pom           
Downloading: http://repo1.maven.org/maven2/org/apache/tiles/tiles-master/1/tiles-master-1.pom                                     
Downloading: http://download.java.net/maven/1/commons-logging/poms/commons-logging-api-1.1.pom                                     
Downloading: http://repository.jboss.com/maven2/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.pom               
5K downloaded                                                                                                                     
Downloading: http://download.java.net/maven/1/org.apache.tiles/poms/tiles-core-2.0.5.pom                                           
Downloading: http://repository.jboss.com/maven2/org/apache/tiles/tiles-core/2.0.5/tiles-core-2.0.5.pom                             
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/tiles/tiles-core/2.0.5/tiles-core-2.0.5.pom       
Downloading: http://repo1.maven.org/maven2/org/apache/tiles/tiles-core/2.0.5/tiles-core-2.0.5.pom                                 
Downloading: http://download.java.net/maven/1/commons-digester/poms/commons-digester-1.8.pom                                       
Downloading: http://repository.jboss.com/maven2/commons-digester/commons-digester/1.8/commons-digester-1.8.pom                     
6K downloaded                                                                                                                     
Downloading: http://download.java.net/maven/1/commons-beanutils/poms/commons-beanutils-1.7.0.pom                                   
Downloading: http://repository.jboss.com/maven2/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.pom             
357b downloaded                                                                                                                   
Downloading: http://download.java.net/maven/1/org.apache.tiles/poms/tiles-jsp-2.0.5.pom                                           
Downloading: http://repository.jboss.com/maven2/org/apache/tiles/tiles-jsp/2.0.5/tiles-jsp-2.0.5.pom                               
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/tiles/tiles-jsp/2.0.5/tiles-jsp-2.0.5.pom         
Downloading: http://repo1.maven.org/maven2/org/apache/tiles/tiles-jsp/2.0.5/tiles-jsp-2.0.5.pom                                   
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/jars/broadleaf-framework-web-1.0.1.jar                         
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-framework-web/1.0.1/broadleaf-framework-web-1.0.1.jar                                                                                                                                 
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-framework-web/1.0.1/broadleaf-framework-web-1.0.1.jar                                                                                                           
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-framework-web/1.0.1/broadleaf-framework-web-1.0.1.jar   
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/jars/broadleaf-usps-1.0.1.jar                                 
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-usps/1.0.1/broadleaf-usps-1.0.1.jar               
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-usps/1.0.1/broadleaf-usps-1.0.1.jar                                                                                                                             
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-usps/1.0.1/broadleaf-usps-1.0.1.jar                     
[INFO] ------------------------------------------------------------------------                                                   
[ERROR] BUILD ERROR                                                                                                               
[INFO] ------------------------------------------------------------------------                                                   
[INFO] Failed to resolve artifact.                                                                                                 

Missing:
----------
1) org.broadleafcommerce:broadleaf-framework-web:jar:1.0.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-framework-web -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file                                                                                                             

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-framework-web -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]                                                                               

  Path to dependency:
        1) org.broadleafcommerce:broadleaf-demo:jar:1.0.1
        2) org.broadleafcommerce:broadleaf-framework-web:jar:1.0.1

2) org.broadleafcommerce:broadleaf-usps:jar:1.0.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-usps -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-usps -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.broadleafcommerce:broadleaf-demo:jar:1.0.1
        2) org.broadleafcommerce:broadleaf-usps:jar:1.0.1

----------
2 required artifacts are missing.

for artifact:
  org.broadleafcommerce:broadleaf-demo:jar:1.0.1

from the specified remote repositories:
  jboss.com (http://repository.jboss.com/maven2),
  java.net (http://download.java.net/maven/1),
  flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgroup),
  central (http://repo1.maven.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 55 seconds
[INFO] Finished at: Wed Mar 03 12:58:46 EST 2010
[INFO] Final Memory: 5M/13M
[INFO] ------------------------------------------------------------------------
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$


Same result. So I followed your suggestion to try to build the BroadleafCommerceUSPS separately:

Code: Select all

user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ cd ../BroadleafCommerceUSPS
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceUSPS$ mvn install               
[INFO] Scanning for projects...                                                         
[INFO] ------------------------------------------------------------------------         
[INFO] Building BroadleafCommerceUSPS                                                   
[INFO]    task-segment: [install]                                                       
[INFO] ------------------------------------------------------------------------         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom                                                                                                                     
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.pom           
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-plugins/12/maven-plugins-12.pom
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugins/12/maven-plugins-12.pom                         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/maven-parent/9/maven-parent-9.pom           
Downloading: http://repo1.maven.org/maven2/org/apache/maven/maven-parent/9/maven-parent-9.pom                                     
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar                                                                                                                     
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-antrun-plugin/1.3/maven-antrun-plugin-1.3.jar           
[INFO] [resources:resources]                                                                                                       
[INFO] Using default encoding to copy filtered resources.                                                                         
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/poms/broadleaf-usps-schemas-1.0.1.pom                         
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-usps-schemas/1.0.1/broadleaf-usps-schemas-1.0.1.pom
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-usps-schemas/1.0.1/broadleaf-usps-schemas-1.0.1.pom                                                                                                             
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-usps-schemas/1.0.1/broadleaf-usps-schemas-1.0.1.pom     
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/poms/broadleaf-framework-1.0.1.pom                             
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.pom     
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.pom                                                                                                                   
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.pom           
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/jars/broadleaf-usps-schemas-1.0.1.jar                         
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-usps-schemas/1.0.1/broadleaf-usps-schemas-1.0.1.jar
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-usps-schemas/1.0.1/broadleaf-usps-schemas-1.0.1.jar                                                                                                             
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-usps-schemas/1.0.1/broadleaf-usps-schemas-1.0.1.jar     
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/jars/broadleaf-framework-1.0.1.jar                             
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.jar     
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.jar                                                                                                                   
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.jar           
[INFO] ------------------------------------------------------------------------                                                   
[ERROR] BUILD ERROR                                                                                                               
[INFO] ------------------------------------------------------------------------                                                   
[INFO] Failed to resolve artifact.                                                                                                 

Missing:
----------
1) org.broadleafcommerce:broadleaf-usps-schemas:jar:1.0.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-usps-schemas -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file                                                                                                               

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-usps-schemas -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]                                                                                 

  Path to dependency:
        1) org.broadleafcommerce:broadleaf-usps:jar:1.0.1
        2) org.broadleafcommerce:broadleaf-usps-schemas:jar:1.0.1

2) org.broadleafcommerce:broadleaf-framework:jar:1.0.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-framework -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-framework -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.broadleafcommerce:broadleaf-usps:jar:1.0.1
        2) org.broadleafcommerce:broadleaf-framework:jar:1.0.1

----------
2 required artifacts are missing.

for artifact:
  org.broadleafcommerce:broadleaf-usps:jar:1.0.1

from the specified remote repositories:
  jboss.com (http://repository.jboss.com/maven2),
  java.net (http://download.java.net/maven/1),
  flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgroup),
  central (http://repo1.maven.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7 seconds
[INFO] Finished at: Wed Mar 03 13:05:31 EST 2010
[INFO] Final Memory: 5M/12M
[INFO] ------------------------------------------------------------------------
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceUSPS$


And BroadleafCommerceFrameworkWeb, which does throw some checksum warnings but seems to recover from them:

Code: Select all

user@andLinux:~/broadleafcommerce/src/BroadleafCommerceUSPS$ cd ../BroadleafCommerceFrameworkWeb/
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceFrameworkWeb$ mvn install
[INFO] Scanning for projects...                                                 
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceFrameworkWeb                                   
[INFO]    task-segment: [install]                                               
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]                                                   
[INFO] Using default encoding to copy filtered resources.                       
Downloading: http://download.java.net/maven/1/org.springframework/poms/spring-webmvc-2.5.6.pom
Downloading: http://repository.jboss.com/maven2/org/springframework/spring-webmvc/2.5.6/spring-webmvc-2.5.6.pom
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/springframework/spring-webmvc/2.5.6/spring-webmvc-2.5.6.pom                                                                                                                                 
Downloading: http://repo1.maven.org/maven2/org/springframework/spring-webmvc/2.5.6/spring-webmvc-2.5.6.pom                         
Downloading: http://download.java.net/maven/1/commons-logging/poms/commons-logging-1.1.1.pom                                       
Downloading: http://repository.jboss.com/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom                   
17K downloaded                                                                                                                     
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '2491c90667a751a5b7a9ba115385bca54bd29d3d'; remote = '76672afb562b9e903674ad3a544cdf2092f1faa3' - RETRYING                                                                                       
Downloading: http://repository.jboss.com/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.pom                   
17K downloaded                                                                                                                     
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = '2491c90667a751a5b7a9ba115385bca54bd29d3d'; remote = '76672afb562b9e903674ad3a544cdf2092f1faa3' - IGNORING                                                                                       
Downloading: http://download.java.net/maven/1/org.apache.commons/poms/commons-parent-5.pom                                         
Downloading: http://repository.jboss.com/maven2/org/apache/commons/commons-parent/5/commons-parent-5.pom                           
15K downloaded                                                                                                                     
Downloading: http://download.java.net/maven/1/org.springframework/poms/spring-web-2.5.6.pom                                       
Downloading: http://repository.jboss.com/maven2/org/springframework/spring-web/2.5.6/spring-web-2.5.6.pom                         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/springframework/spring-web/2.5.6/spring-web-2.5.6.pom     
Downloading: http://repo1.maven.org/maven2/org/springframework/spring-web/2.5.6/spring-web-2.5.6.pom                               
Downloading: http://download.java.net/maven/1/javax.servlet.jsp/poms/jsp-api-2.1.pom                                               
157b downloaded                                                                                                                   
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/poms/broadleaf-profile-1.0.1.pom                               
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-profile/1.0.1/broadleaf-profile-1.0.1.pom         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-profile/1.0.1/broadleaf-profile-1.0.1.pom                                                                                                                       
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-profile/1.0.1/broadleaf-profile-1.0.1.pom               
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/poms/broadleaf-profile-web-1.0.1.pom                           
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-profile-web/1.0.1/broadleaf-profile-web-1.0.1.pom 
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-profile-web/1.0.1/broadleaf-profile-web-1.0.1.pom                                                                                                               
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-profile-web/1.0.1/broadleaf-profile-web-1.0.1.pom       
Downloading: http://download.java.net/maven/1/javax.servlet/poms/servlet-api-2.5.pom                                               
157b downloaded                                                                                                                   
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'a159fa05cce714c83deff647655dd53db064b21c'; remote = '6f0346740940bd88457154c60a1b79fac3f3115e' - RETRYING                                                                                       
Downloading: http://download.java.net/maven/1/javax.servlet/poms/servlet-api-2.5.pom                                               
157b downloaded                                                                                                                   
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'a159fa05cce714c83deff647655dd53db064b21c'; remote = '6f0346740940bd88457154c60a1b79fac3f3115e' - IGNORING                                                                                       
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/poms/broadleaf-framework-1.0.1.pom                             
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.pom     
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.pom                                                                                                                   
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.pom           
Downloading: http://download.java.net/maven/1/commons-collections/poms/commons-collections-3.2.1.pom                               
Downloading: http://repository.jboss.com/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.pom       
Downloading: http://repository.sonatype.org/content/groups/flexgroup/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.pom                                                                                                                     
Downloading: http://repo1.maven.org/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.pom             
Downloading: http://download.java.net/maven/1/org.apache.commons/poms/commons-parent-9.pom                                         
Downloading: http://repository.jboss.com/maven2/org/apache/commons/commons-parent/9/commons-parent-9.pom                           
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/apache/commons/commons-parent/9/commons-parent-9.pom     
Downloading: http://repo1.maven.org/maven2/org/apache/commons/commons-parent/9/commons-parent-9.pom                               
Downloading: http://download.java.net/maven/1/org.springframework/jars/spring-webmvc-2.5.6.jar                                     
Downloading: http://repository.jboss.com/maven2/org/springframework/spring-webmvc/2.5.6/spring-webmvc-2.5.6.jar                   
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/springframework/spring-webmvc/2.5.6/spring-webmvc-2.5.6.jar                                                                                                                                 
Downloading: http://repo1.maven.org/maven2/org/springframework/spring-webmvc/2.5.6/spring-webmvc-2.5.6.jar                         
Downloading: http://download.java.net/maven/1/commons-logging/jars/commons-logging-1.1.1.jar                                       
Downloading: http://repository.jboss.com/maven2/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar                   
59K downloaded                                                                                                                     
Downloading: http://download.java.net/maven/1/org.springframework/jars/spring-web-2.5.6.jar                                       
Downloading: http://repository.jboss.com/maven2/org/springframework/spring-web/2.5.6/spring-web-2.5.6.jar                         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/springframework/spring-web/2.5.6/spring-web-2.5.6.jar     
Downloading: http://repo1.maven.org/maven2/org/springframework/spring-web/2.5.6/spring-web-2.5.6.jar                               
Downloading: http://download.java.net/maven/1/javax.servlet.jsp/jars/jsp-api-2.1.jar                                               
102K downloaded                                                                                                                   
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/jars/broadleaf-profile-1.0.1.jar                               
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-profile/1.0.1/broadleaf-profile-1.0.1.jar         
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-profile/1.0.1/broadleaf-profile-1.0.1.jar                                                                                                                       
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-profile/1.0.1/broadleaf-profile-1.0.1.jar               
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/jars/broadleaf-profile-web-1.0.1.jar                           
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-profile-web/1.0.1/broadleaf-profile-web-1.0.1.jar 
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-profile-web/1.0.1/broadleaf-profile-web-1.0.1.jar                                                                                                               
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-profile-web/1.0.1/broadleaf-profile-web-1.0.1.jar       
Downloading: http://download.java.net/maven/1/javax.servlet/jars/servlet-api-2.5.jar                                               
102K downloaded                                                                                                                   
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'e69999122202bb1c275a80ad3281c4f69f2ea0b2'; remote = '5959582d97d8b61f4d154ca9e495aafd16726e34' - RETRYING                                                                                       
Downloading: http://download.java.net/maven/1/javax.servlet/jars/servlet-api-2.5.jar                                               
102K downloaded                                                                                                                   
[WARNING] *** CHECKSUM FAILED - Checksum failed on download: local = 'e69999122202bb1c275a80ad3281c4f69f2ea0b2'; remote = '5959582d97d8b61f4d154ca9e495aafd16726e34' - IGNORING                                                                                       
Downloading: http://download.java.net/maven/1/org.broadleafcommerce/jars/broadleaf-framework-1.0.1.jar                             
Downloading: http://repository.jboss.com/maven2/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.jar     
Downloading: http://repository.sonatype.org/content/groups/flexgroup/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.jar                                                                                                                   
Downloading: http://repo1.maven.org/maven2/org/broadleafcommerce/broadleaf-framework/1.0.1/broadleaf-framework-1.0.1.jar           
Downloading: http://download.java.net/maven/1/commons-collections/jars/commons-collections-3.2.1.jar                               
Downloading: http://repository.jboss.com/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar       
Downloading: http://repository.sonatype.org/content/groups/flexgroup/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar                                                                                                                     
Downloading: http://repo1.maven.org/maven2/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar             
[INFO] ------------------------------------------------------------------------                                                   
[ERROR] BUILD ERROR                                                                                                               
[INFO] ------------------------------------------------------------------------                                                   
[INFO] Failed to resolve artifact.                                                                                                 

Missing:
----------
1) org.broadleafcommerce:broadleaf-profile:jar:1.0.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-profile -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file                                                                                                                   

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-profile -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]                                                                                     

  Path to dependency:
        1) org.broadleafcommerce:broadleaf-framework-web:jar:1.0.1
        2) org.broadleafcommerce:broadleaf-profile:jar:1.0.1     

2) org.broadleafcommerce:broadleaf-profile-web:jar:1.0.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-profile-web -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file                                                                                                               

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-profile-web -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]                                                                                 

  Path to dependency:
        1) org.broadleafcommerce:broadleaf-framework-web:jar:1.0.1
        2) org.broadleafcommerce:broadleaf-profile-web:jar:1.0.1 

3) org.broadleafcommerce:broadleaf-framework:jar:1.0.1

  Try downloading the file manually from the project website.

  Then, install it using the command:
      mvn install:install-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-framework -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there:
      mvn deploy:deploy-file -DgroupId=org.broadleafcommerce -DartifactId=broadleaf-framework -Dversion=1.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency:
        1) org.broadleafcommerce:broadleaf-framework-web:jar:1.0.1
        2) org.broadleafcommerce:broadleaf-framework:jar:1.0.1

----------
3 required artifacts are missing.

for artifact:
  org.broadleafcommerce:broadleaf-framework-web:jar:1.0.1

from the specified remote repositories:
  jboss.com (http://repository.jboss.com/maven2),
  java.net (http://download.java.net/maven/1),
  flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgroup),
  central (http://repo1.maven.org/maven2)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19 seconds
[INFO] Finished at: Wed Mar 03 13:13:44 EST 2010
[INFO] Final Memory: 6M/14M
[INFO] ------------------------------------------------------------------------
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceFrameworkWeb$


Any ideas what might be the problem? Is it because I've got JDK 1.6 and not JDK 1.5? Shouldn't 1.6 be backward compatible with 1.5? You and your developers can get it running easily because you know it inside and out (and the various flavors and versions of Java, and the various locations where they must reside), but your target customer is more likely to be a sysadmin or webmaster than a Java developer, as well as a newbie to things like ant and maven, as well as Broadleaf Commerce, and for them, a step-by-step cookbook a la howtoforge.com (as well as a Vmware Player appliance) might help it garner a greater following.

Re: running "maven install" problem

Posted: Wed Mar 03, 2010 2:07 pm
by bradford.taylor
Please try the following commands:

cd ~/broadleafcommerce/src
mvn install

Running the maven install from the root of the source will build the libraries in the order they are needed.

Also, in case you haven't seen it we have a Quickstart Guide.

Re: running "maven install" problem

Posted: Wed Mar 03, 2010 5:00 pm
by vector1083q5w2
I'm well aware of the quickStartGuide. Without it I'd be completely lost. With it, I'm partially lost. :)

I did what you suggested and got mvn to install from the src directory

Code: Select all

...
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] [install:install]
[INFO] Installing /home/user/broadleafcommerce/src/BroadleafCommerceAdmin/target/broadleaf-admin-1.0.1.jar to /home/user/.m2/repository/org/broadleafcommerce/broadleaf-admin/1.0.1/broadleaf-admin-1.0.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceAdminWeb
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] [install:install]
[INFO] Installing /home/user/broadleafcommerce/src/BroadleafCommerceAdminWeb/target/BroadleafCommerceAdminWeb-1.0.1.jar to /home/user/.m2/repository/org/broadleafcommerce/BroadleafCommerceAdminWeb/1.0.1/BroadleafCommerceAdminWeb-1.0.1.jar
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] BroadleafCommerce ..................................... SUCCESS [2:09.002s]
[INFO] BroadleafCommerceProfile .............................. SUCCESS [3:57.484s]
[INFO] BroadleafCommerceProfileWeb ........................... SUCCESS [27.860s]
[INFO] BroadleafCommerceFramework ............................ SUCCESS [7.770s]
[INFO] BroadleafCommerceFrameworkWeb ......................... SUCCESS [1.720s]
[INFO] BroadleafCommerceUSPSSchemas .......................... SUCCESS [8.271s]
[INFO] BroadleafCommerceUSPS ................................. SUCCESS [1.350s]
[INFO] BroadleafCommerceIntegrationTests ..................... SUCCESS [1:19.791s]
[INFO] BroadleafCommerceDemo ................................. SUCCESS [15.390s]
[INFO] BroadleafCommerceAdmin ................................ SUCCESS [47.341s]
[INFO] BroadleafCommerceAdminWeb ............................. SUCCESS [0.240s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 minutes 17 seconds
[INFO] Finished at: Wed Mar 03 15:51:40 EST 2010
[INFO] Final Memory: 23M/61M
[INFO] ------------------------------------------------------------------------


I then went into the BroadleafCommerceDemo directory and did an 'mvn install' and it worked as well (below).

Code: Select all

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceDemo
[INFO]    task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] [install:install]
[INFO] Installing /home/user/broadleafcommerce/src/BroadleafCommerceDemo/target/broadleaf-demo-1.0.1.jar to /home/user/.m2/repository/org/broadleafcommerce/broadleaf-demo/1.0.1/broadleaf-demo-1.0.1.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 seconds
[INFO] Finished at: Wed Mar 03 15:53:30 EST 2010
[INFO] Final Memory: 12M/30M
[INFO] ------------------------------------------------------------------------


Now, when I run 'ant deploy-exploded-war' from within the BroadleafCommerceDemo directory I get the following:

Code: Select all

user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ ant deploy-exploded-war
Buildfile: build.xml

war:

package:

deploy-exploded-war:
     [copy] Copying 78 files to /usr/share/tomcat6/webapps/broadleafdemo

BUILD SUCCESSFUL
Total time: 6 seconds
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$




Code: Select all

user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ ant start-tomcat-debug
Buildfile: build.xml

start-tomcat-debug:
     [java] Listening for transport dt_socket at address: 8000
     [java] Mar 3, 2010 4:47:23 PM org.apache.catalina.startup.Catalina load
     [java] WARNING: Can't load server.xml from /usr/share/tomcat6/conf/server.xml
     [java] Mar 3, 2010 4:47:23 PM org.apache.catalina.startup.Catalina load
     [java] WARNING: Can't load server.xml from /usr/share/tomcat6/conf/server.xml
     [java] Mar 3, 2010 4:47:23 PM org.apache.catalina.startup.Catalina start
     [java] INFO: Server startup in 0 ms
     [java] java.lang.reflect.InvocationTargetException
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
     [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     [java]     at java.lang.reflect.Method.invoke(Method.java:597)
     [java]     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
     [java]     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
     [java] Caused by: java.lang.NullPointerException
     [java]     at org.apache.catalina.startup.Catalina.await(Catalina.java:642)
     [java]     at org.apache.catalina.startup.Catalina.start(Catalina.java:602)
     [java]     ... 6 more

BUILD SUCCESSFUL
Total time: 6 seconds
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$


Then, I attempted to get the database loaded, with no luck (below). Note that the 'ant start-tomcat-debug' command didn't seem to start tomcat, as I grepped the processes and tomcat wasn't running. So, I manually started tomcat (first started apache, followed by tomcat).

Code: Select all

user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ sudo ps -A | grep tomcat
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ sudo /etc/init.d/apache2 start
 * Starting web server apache2apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.11.150 for ServerName
                                                                                                                                                                                                                                      [ OK ]
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ sudo /etc/init.d/tomcat6 start
 * Starting Tomcat servlet engine tomcat6                                                                                                                                                                                             [ OK ]
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ ant load-data
Buildfile: build.xml

load-data:
     [copy] Copying 1 file to /home/user/broadleafcommerce/src/BroadleafCommerceDemo/config/mysql/stage
      [sql] Executing resource: /home/user/broadleafcommerce/src/BroadleafCommerceDemo/config/mysql/stage/load_data.sql
      [sql] Failed to execute:   DELETE FROM broadleafcommerce.BLC_ADMIN_USER

BUILD FAILED
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'broadleafcommerce.BLC_ADMIN_USER' doesn't exist
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.Util.getInstance(Util.java:381)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2536)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2465)
        at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:734)
        at org.apache.tools.ant.taskdefs.SQLExec.execSQL(SQLExec.java:565)
        at org.apache.tools.ant.taskdefs.SQLExec.runStatements(SQLExec.java:535)
        at org.apache.tools.ant.taskdefs.SQLExec$Transaction.runTransaction(SQLExec.java:776)
        at org.apache.tools.ant.taskdefs.SQLExec$Transaction.access$000(SQLExec.java:706)
        at org.apache.tools.ant.taskdefs.SQLExec.execute(SQLExec.java:449)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 5 seconds
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$



So now it appears that the script to load MySQL fails because my version/installation of MySQL coughs up an error when someone attempts to delete a nonexistent table, as opposed to just ignoring it. Any idea how to get past this?

Re: running "maven install" problem

Posted: Wed Mar 03, 2010 5:13 pm
by bradford.taylor
It appears that you the appserver.home property is set to a Tomcat Web server instead of Apache. The line:

Code: Select all

appserver.home=/usr/share/tomcat6


needs to point your Apache servlet container and not a Tomcat web server. Also the configuration:

Code: Select all

mysql.db.url=jdbc:mysql://localhost:3306/broadleafcommerce?autoReconnect=true&useUnicode=true&characterEncoding=UTF8


needs to point to the ip address or DNS and port number of the server and port that your mySQL is on. If it is on the same box as your Apache then you can just use localhost.

Re: running "maven install" problem

Posted: Wed Mar 03, 2010 6:00 pm
by vector1083q5w2
Strange that having the appserver point to Tomcat rather than Apache would impact a script that loads data into MySQL. Its also strange because I've got an install of BroadleafCommerce under WinXP that works fine with appserver.home pointing to Tomcat (On the WinXP box, I'm having trouble getting the Admin Tool working).

Meanwhile, installing Apache's 'Open For Biz' (a competitor to BroadleafCommerce) has been a comparative walk in the park. Anyway, I took your advise, and changed build.properties to the following (below).

Code: Select all

# Ant properties for building the Broadleaf Commerce Demo app
# /dev/apps/apache-tomcat-6.0.18
# appserver.home=/Developer/Applications/apache-tomcat
appserver.home=/usr/share/apache2

# appserver.lib=/dev/apps/apache-tomcat-6.0.18/lib
deploy.path=${appserver.home}/webapps

mysql.db.driver=com.mysql.jdbc.Driver
# Uncomment the line below and comment out the localhost db.url to run load scripts on the QA box.
#mysql.db.url=jdbc:mysql://192.168.11.150:3306/broadleafdemo?autoReconnect=true&useUnicode=true&characterEncoding=UTF8
mysql.db.url=jdbc:mysql://localhost:3306/broadleafcommerce?autoReconnect=true&useUnicode=true&characterEncoding=UTF8
mysql.db.user=root
mysql.db.pw=pass


And when I run ant load-data I get the following (below).

Code: Select all

user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$ ant load-data
Buildfile: build.xml

load-data:
     [copy] Copying 1 file to /home/user/broadleafcommerce/src/BroadleafCommerceDemo/config/mysql/stage
      [sql] Executing resource: /home/user/broadleafcommerce/src/BroadleafCommerceDemo/config/mysql/stage/load_data.sql
      [sql] Failed to execute:   DELETE FROM broadleafcommerce.BLC_ADMIN_USER

BUILD FAILED
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'broadleafcommerce.BLC_ADMIN_USER' doesn't exist
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.Util.getInstance(Util.java:381)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)
        at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3491)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3423)
        at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1936)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2060)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2536)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2465)
        at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:734)
        at org.apache.tools.ant.taskdefs.SQLExec.execSQL(SQLExec.java:565)
        at org.apache.tools.ant.taskdefs.SQLExec.runStatements(SQLExec.java:535)
        at org.apache.tools.ant.taskdefs.SQLExec$Transaction.runTransaction(SQLExec.java:776)
        at org.apache.tools.ant.taskdefs.SQLExec$Transaction.access$000(SQLExec.java:706)
        at org.apache.tools.ant.taskdefs.SQLExec.execute(SQLExec.java:449)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
        at org.apache.tools.ant.Main.runBuild(Main.java:758)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)

Total time: 3 seconds
user@andLinux:~/broadleafcommerce/src/BroadleafCommerceDemo$


Any other ideas as to how to resolve this? Hopefully others might learn from this as well.

Re: running "maven install" problem

Posted: Wed Mar 03, 2010 6:11 pm
by bradford.taylor
Please make sure you start your Apache and let it finish the startup before running the SQL load scripts. The demo is setup in such a way that hibernate creates the tables if they do not exist.