I took an attempt again yesterday to build the Broadleaf commerce again by using the "mvn install" command. And unfortunately the same error occurred again. But this time I have been watching the console very carefully for two things. First, any error. Secondly, if the processing halts for too long while downloading a dependency. When I was building yesterday, the second thing occured once, i.e., the black dos prompt screen stuck at a point for a very very long time while downloading a dependency jar file. I terminated the screen and ran the install command again. All earlier files that were downloaded were skipped and probably that file where the dos screen halted was also assumed to be downloaded. (This is my guess only). Processing of downloading files started after the point where dos screen was closed by me. But at the end test run failed giving same instrumentation problem. Note that, in this setup I used the default .m2 repository location in my Windows XP SP3 system. This default path unfortunately contains spaces in the folder name "Documents And Settings". I guess this could be another reason for build failure.
Software versions used:
* JDK 1.5 (
http://java.sun.com/javase/downloads/index_jdk5.jsp)
* Maven 2.2.1 (
http://archive.apache.org/dist/maven/binaries/)
* Ant 1.7.1 (
http://ant.apache.org/bindownload.cgi)
* Flex 3.4 SDK (
http://opensource.adobe.com/wiki/displa ... k/Flex+SDK)
I attempted again today but with following changes:
1. I followed the instruction in the url
http://ericlefevre.net/wordpress/2007/02/21/changing-maven-local-repository/ to change the default .m2 repository location. The idea is to set it to a path which does not carries spaces in folder names. One can also refer to url
http://maven.apache.org/guides/mini/guide-configuring-maven.html.
2. I followed the maven installation instruction given at maven site
http://maven.apache.org/download.html#Installation for my environment "Windows 2000/XP". I set up all environment variables like M2_HOME, M2 exactly as mentioned.
3. Set ant variable ANT_HOME by following the instructions at
http://ant.apache.org/manual/index.html.
4. Set JAVA_HOME correctly.
5. Add bin folders of java, maven and ant to the "Path" variable like this; %JAVA_HOME%\bin;%M2_HOME%\bin;%ANT_HOME%\bin
6. Change the "flex.sdk.dir" path in build.properties under "BroadleafCommerceAdmin" module at location "BroadleafCommerce\src\site\BroadleafCommerceAdmin" to the root folder where you unzipped/installed the flex sdk.
7. Change the "maven.home" path in build.properties under "src" directory at location "BroadleafCommerce\src" to the root folder where you unzipped/installed the maven.
8. I again downloaded the "-with-dependencies" distribution of the Broadleaf Commerce framework from site to be doubly sure that I have latest code. Although, I downloaded the build yesterday also and attempted on the same yesterday which actually failed.
9. I again ran "mvn install" command from src directory of build. This time it halted for 2-3 minutes while downloading but it the continued. This could happen due to internet connectivity issue. So be careful for this halting issue. And it built successfully and all the tests were also completed successfully. Following is the summary of screen:
[INFO] ------------------------------------------------------------------------
[INFO] Building distribute
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\Projects\BroadleafCommerce\src\distribute\pom.xml to H:\Projects\DependencyT
sitory\org\broadleafcommerce\distribute\1.1.1-GA\distribute-1.1.1-GA.pom
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] BroadleafCommerce ..................................... SUCCESS [2.531s]
[INFO] core .................................................. SUCCESS [0.032s]
[INFO] BroadleafCommerceProfile .............................. SUCCESS [5.406s]
[INFO] BroadleafCommerceProfileWeb ........................... SUCCESS [1.407s]
[INFO] BroadleafCommerceFramework ............................ SUCCESS [3.297s]
[INFO] BroadleafCommerceFrameworkWeb ......................... SUCCESS [2.406s]
[INFO] module ................................................ SUCCESS [0.016s]
[INFO] BroadleafCommerceUSPSSchemas .......................... SUCCESS [7.968s]
[INFO] BroadleafCommerceUSPS ................................. SUCCESS [1.141s]
[INFO] BroadleafCommerceCyberSourceAPI ....................... SUCCESS [35.781s]
[INFO] BroadleafCommerceCyberSource .......................... SUCCESS [5.797s]
[INFO] integration ........................................... SUCCESS [1:19.016s]
[INFO] site .................................................. SUCCESS [0.015s]
[INFO] BroadleafCommerceAdmin ................................ SUCCESS [2:17.266s]
[INFO] BroadleafCommerceDemo ................................. SUCCESS [21.922s]
[INFO] BroadleafCommerceDemoLauncher ......................... SUCCESS [4:27.265s]
[INFO] distribute ............................................ SUCCESS [0.078s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 minutes 32 seconds
[INFO] Finished at: Sat Jun 11 12:52:18 IST 2011
[INFO] Final Memory: 37M/63M
[INFO] ------------------------------------------------------------------------
H:\Projects\BroadleafCommerce\src>
So, this is all what I followed and how it resulted in successfull build. I hope my contribution will help in the product documentation. If Broadleaf feels considers it to be useful and correct, I'll be happy to see these steps incorporated in the official documentation.
Cheers!