Page 1 of 1

Failed when execute mvn install

Posted: Mon Aug 08, 2011 4:03 am
by tenardi
Hi all, i'm still newbie here.
It's my first time using some library like maven and ant. :?
I've search from this forum and google, but i can't find the answer of my problem.

Based on http://www.broadleafcommerce.org/confluence/display/core/quickStartGuide I've done this :
* create mysql database named broadleafcommerce
* edit build.properties became :

Code: Select all

jrebel.path=/Applications/ZeroTurnaround/JRebel-3.1.1/jrebel.jar
yourkit.agent.path=/Applications/YourKit_Java_Profiler_9.0.8.app/bin/mac/
appserver.home=C:\Program Files\Apache Software Foundation\Tomcat 6.0
mysql.db.url = localhost:3036\broadleafcommerce
mysql.db.user=root
mysql.db.password=tenardi

* then when I've execute command : mvn install, i've got error like this :
D:\temp flashdisk\film\BroadleafCommerce-1.5.0-M2-with-dependencies\src\integra
tion\target\instrumented\cobertura.ser
[DEBUG] getProperty(ns=null, name=frameworkWeb, user=false)
[DEBUG] getProperty(ns=null, name=profile, user=false)
[DEBUG] getProperty(ns=null, name=profileWeb, user=false)
[DEBUG] getProperty(ns=null, name=usps, user=false)
[DEBUG] getProperty(ns=null, name=cybersource, user=false)

fileset: Setup scanner in dir D:\temp flashdisk\film\BroadleafCommerce-1.5.0-M2-
with-dependencies\src\core\BroadleafCommerceFrameworkWeb\target\instrumented wit
h patternSet{ includes: [cobertura.ser] excludes: [] }
Adding cobertura.ser to list
fileset: Setup scanner in dir D:\temp flashdisk\film\BroadleafCommerce-1.5.0-M2-
with-dependencies\src\core\BroadleafCommerceProfile\target\instrumented with pat
ternSet{ includes: [cobertura.ser] excludes: [] }
Adding cobertura.ser to list
fileset: Setup scanner in dir D:\temp flashdisk\film\BroadleafCommerce-1.5.0-M2-
with-dependencies\src\core\BroadleafCommerceProfileWeb\target\instrumented with
patternSet{ includes: [cobertura.ser] excludes: [] }
Adding cobertura.ser to list
fileset: Setup scanner in dir D:\temp flashdisk\film\BroadleafCommerce-1.5.0-M2-
with-dependencies\src\module\BroadleafCommerceUSPS\target\instrumented with patt
ernSet{ includes: [cobertura.ser] excludes: [] }
Adding cobertura.ser to list
fileset: Setup scanner in dir D:\temp flashdisk\film\BroadleafCommerce-1.5.0-M2-
with-dependencies\src\module\BroadleafCommerceCyberSource\target\instrumented wi
th patternSet{ includes: [cobertura.ser] excludes: [] }
Adding cobertura.ser to list
+Task: java

[DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
dropping D:\C from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\org\apache\maven\plugins\ma
ven-antrun-plugin\1.3\maven-antrun-plugin-1.3.jar from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\ant\ant-junit\1.6.2\ant-jun
it-1.6.2.jar from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\cobertura\cobertura\1.8\cob
ertura-1.8.jar from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\oro\oro\2.0.8\oro-2.0.8.jar
from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\asm\asm\2.2.1\asm-2.2.1.jar
from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\log4j\log4j\1.2.9\log4j-1.2
.9.jar from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\org\apache\ant\ant-jsch\1.7
.1\ant-jsch-1.7.1.jar from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\com\jcraft\jsch\0.1.42\jsch
-0.1.42.jar from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\ant-contrib\ant-contrib\1.0
b3\ant-contrib-1.0b3.jar from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\junit\junit\3.8.1\junit-3.8
.1.jar from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\org\codehaus\plexus\plexus-
utils\1.5.6\plexus-utils-1.5.6.jar from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\org\apache\ant\ant-launcher
\1.7.1\ant-launcher-1.7.1.jar from path as it doesn't exist
dropping D:\Documents and Settings\QQ\.m2\repository\org\apache\ant\ant\1.7.1\an
t-1.7.1.jar from path as it doesn't exist

Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.6.0_20\jre\
bin\java.exe' with arguments:
'net.sourceforge.cobertura.merge.Main'
'--commandsfile'
'C:\DOCUME~1\QQ\LOCALS~1\Temp\cobertura.3473620675124263961.cmdline'

The ' characters around the executable and arguments are
not part of the command.
[cobertura-merge] java.lang.NoClassDefFoundError: net/sourceforge/cobertura/merg
e/Main
[cobertura-merge] Caused by: java.lang.ClassNotFoundException: net.sourceforge.c
obertura.merge.Main
[cobertura-merge] at java.net.URLClassLoader$1.run(URLClassLoader.java:202
)
[cobertura-merge] at java.security.AccessController.doPrivileged(Native Me
thod)
[cobertura-merge] at java.net.URLClassLoader.findClass(URLClassLoader.java
:190)
[cobertura-merge] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

[cobertura-merge] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.j
ava:301)
[cobertura-merge] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

[cobertura-merge] Could not find the main class: net.sourceforge.cobertura.merge
.Main. Program will exit.
[cobertura-merge] Exception in thread "main"
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] BroadleafCommerce ................................. SUCCESS [1.859s]
[INFO] core .............................................. SUCCESS [0.125s]
[INFO] BroadleafCommerceInstrument ....................... SUCCESS [20.141s]
[INFO] core .............................................. SUCCESS [0.078s]
[INFO] BroadleafCommerceOpenAdminPlatform ................ SUCCESS [31.500s]
[INFO] BroadleafCommerceProfile .......................... SUCCESS [1:48.968s]
[INFO] BroadleafCommerceProfileWeb ....................... SUCCESS [17.266s]
[INFO] BroadleafCommerceFramework ........................ SUCCESS [2:06.797s]
[INFO] BroadleafCommerceFrameworkWeb ..................... SUCCESS [29.672s]
[INFO] module ............................................ SUCCESS [0.047s]
[INFO] BroadleafCommerceUSPSSchemas ...................... SUCCESS [36.656s]
[INFO] BroadleafCommerceUSPS ............................. SUCCESS [17.969s]
[INFO] BroadleafCommerceAdminModule ...................... SUCCESS [39.015s]
[INFO] site .............................................. SUCCESS [0.703s]
[INFO] BroadleafCommerceDemo ............................. SUCCESS [17:58.782s]
[INFO] BroadleafCommerceDemoLauncher ..................... SUCCESS [10.156s]
[INFO] BroadleafCommerceCyberSourceAPI ................... SUCCESS [1:09.891s]
[INFO] BroadleafCommerceCyberSource ...................... SUCCESS [30.140s]
[INFO] integration ....................................... FAILURE [1:12.485s]
[INFO] distribute ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28:13.796s
[INFO] Finished at: Mon Aug 08 16:01:07 ICT 2011
[INFO] Final Memory: 51M/130M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.3:
run (testng) on project integration: An Ant BuildException has occured: Error ru
nning reports. See messages above. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-antrun-plugin:1.3:run (testng) on project integrat
ion: An Ant BuildException has occured: Error running reports. See messages abov
e.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:217)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException
has occured: Error running reports. See messages above.
at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
ntMojo.java:131)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:98)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
Caused by: Error running reports. See messages above.
at net.sourceforge.cobertura.ant.MergeTask.execute(MergeTask.java:98)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.jav
a:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractA
ntMojo.java:118)
... 22 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... ExecutionE
xception
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn <goals> -rf :integration


I'm so sorry if my log too long.. :roll:

From the log, all module was successfully installed except for integration.
What must i do ? I've try to download cobertura.jar and put in lib folder, execute again but the result is still same..

I'm really need help, thx before.. :D

Re: Failed when execute mvn install

Posted: Mon Aug 08, 2011 10:04 pm
by tenardi
UPDATE :
If i move to the folder D:\BroadleafCommerce-1.5.0-M2-with-dependencies 1\src\integration, then i execute mvn install. The result still same with result in above..

If i move broadleafcommerce into directory C:\Documents and Settings\QQ\My Documents. Then i move to folder integration and execute mvn install, the result is succees.
But if i move toC:\Documents and Settings\QQ\My Documents\BroadleafCommerce-1.5.0-M2-with-dependencies 1\src, then i execute mvn install, the result is like this :

5.RELEASE\spring-jms-3.0.5.RELEASE.jar
C:\Documents and Settings\QQ\.m2\repository\aopalliance\aopalliance\1.0\aopalli
ance-1.0.jar
C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-aop\3.0.
5.RELEASE\spring-aop-3.0.5.RELEASE.jar
C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-beans\3.
0.5.RELEASE\spring-beans-3.0.5.RELEASE.jar
C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-context\
3.0.5.RELEASE\spring-context-3.0.5.RELEASE.jar
C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-tx\3.0.5
.RELEASE\spring-tx-3.0.5.RELEASE.jar
C:\Documents and Settings\QQ\.m2\repository\cobertura\cobertura\1.8\cobertura-1
.8.jar
C:\Documents and Settings\QQ\.m2\repository\commons-codec\commons-codec\1.4\com
mons-codec-1.4.jar
C:\Documents and Settings\QQ\.m2\repository\cglib\cglib-nodep\2.1_3\cglib-nodep
-2.1_3.jar]
[DEBUG] Output directory: C:\Documents and Settings\QQ\My Documents\NetBeansProj
ects\BroadleafCommerce-1.5.0-M2-with-dependencies\src\core\BroadleafCommerceFram
ework\target\classes
[DEBUG] Classpath:
[DEBUG] C:\Documents and Settings\QQ\My Documents\NetBeansProjects\BroadleafCom
merce-1.5.0-M2-with-dependencies\src\core\BroadleafCommerceFramework\target\clas
ses
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\compass-project\compass
\2.2.0\compass-2.2.0.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\apache\lucene\lucene-co
re\2.4.1\lucene-core-2.4.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\mvel\mvel2\2.0.11\mvel2
-2.0.11.jar
[DEBUG] C:\Documents and Settings\QQ\My Documents\NetBeansProjects\BroadleafCom
merce-1.5.0-M2-with-dependencies\src\core\BroadleafCommerceProfile\target\broadl
eaf-profile-1.5.0-M2.jar
[DEBUG] C:\Documents and Settings\QQ\My Documents\NetBeansProjects\BroadleafCom
merce-1.5.0-M2-with-dependencies\src\admin\BroadleafCommerceOpenAdminPlatform\ta
rget\broadleaf-open-admin-platform-1.5.0-M2.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\com\google\gwt\gwt-servlet\
2.1.1\gwt-servlet-2.1.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\com\google\code\gwt-math\gw
t-math\2.0.3\gwt-math-2.0.3.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\com\smartgwt\smartgwt\2.4\s
martgwt-2.4.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\com\smartgwt\smartgwt-skins
\2.4\smartgwt-skins-2.4.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\com\anasoft\os\daofusion-co
re\1.2.0\daofusion-core-1.2.0.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\com\anasoft\os\daofusion-co
re\1.2.0\daofusion-core-1.2.0-sources.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\gwt\incubator\security\1.0.
1\security-1.0.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\net\zschech\gwt-math\1.0.9\
gwt-math-1.0.9.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\gwtwidgets\gwt-sl\1.1\g
wt-sl-1.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\net\sf\transmorph\transmorp
h\2.2.2\transmorph-2.2.2.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
webmvc\3.0.5.RELEASE\spring-webmvc-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
asm\3.0.5.RELEASE\spring-asm-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
expression\3.0.5.RELEASE\spring-expression-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
web\3.0.5.RELEASE\spring-web-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\javax\annotation\jsr250-api
\1.0\jsr250-api-1.0.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\hibernate\javax\persist
ence\hibernate-jpa-2.0-api\1.0.0.Final\hibernate-jpa-2.0-api-1.0.0.Final.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
core\3.0.5.RELEASE\spring-core-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\aspectj\aspectjweaver\1
.6.5\aspectjweaver-1.6.5.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\hibernate\hibernate-cor
e\3.6.0.Final\hibernate-core-3.6.0.Final.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\antlr\antlr\2.7.6\antlr-2.7
.6.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\hibernate\hibernate-com
mons-annotations\3.2.0.Final\hibernate-commons-annotations-3.2.0.Final.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\javax\transaction\jta\1.1\j
ta-1.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\slf4j\slf4j-api\1.6.1\s
lf4j-api-1.6.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\hibernate\hibernate-too
ls\3.2.4.GA\hibernate-tools-3.2.4.GA.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\beanshell\bsh\2.0b4\bsh
-2.0b4.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\freemarker\freemarker\2.3.8
\freemarker-2.3.8.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\hibernate\jtidy\r8-2006
0801\jtidy-r8-20060801.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\hibernate\hibernate-ent
itymanager\3.6.0.Final\hibernate-entitymanager-3.6.0.Final.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\javassist\javassist\3.8.0.G
A\javassist-3.8.0.GA.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\securit
y\spring-security-core\3.0.5.RELEASE\spring-security-core-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\aspectj\aspectjrt\1.6.8
\aspectjrt-1.6.8.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
context-support\3.0.5.RELEASE\spring-context-support-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
orm\3.0.5.RELEASE\spring-orm-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
jdbc\3.0.5.RELEASE\spring-jdbc-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\hibernate\hibernate-env
ers\3.6.0.Final\hibernate-envers-3.6.0.Final.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\slf4j\jcl-over-slf4j\1.
6.1\jcl-over-slf4j-1.6.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\log4j\log4j\1.2.12\log4j-1.
2.12.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\commons-validator\commons-v
alidator\1.3.1\commons-validator-1.3.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\commons-beanutils\commons-b
eanutils\1.7.0\commons-beanutils-1.7.0.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\commons-digester\commons-di
gester\1.6\commons-digester-1.6.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\apache\velocity\velocit
y-tools\2.0\velocity-tools-2.0.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\commons-chain\commons-chain
\1.1\commons-chain-1.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\commons-collections\commons
-collections\3.2.1\commons-collections-3.2.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\dom4j\dom4j\1.1\dom4j-1.1.j
ar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\sslext\sslext\1.2-0\sslext-
1.2-0.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\apache\struts\struts-co
re\1.3.8\struts-core-1.3.8.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\apache\struts\struts-ta
glib\1.3.8\struts-taglib-1.3.8.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\apache\struts\struts-ti
les\1.3.8\struts-tiles-1.3.8.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\javax\mail\mail\1.4.1\mail-
1.4.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\javax\activation\activation
\1.1\activation-1.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\apache\velocity\velocit
y\1.6.2\velocity-1.6.2.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\commons-lang\commons-lang\2
.4\commons-lang-2.4.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\apache\xmlbeans\xmlbean
s\2.4.0\xmlbeans-2.4.0.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\stax\stax-api\1.0.1\stax-ap
i-1.0.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\apache\geronimo\specs\g
eronimo-jms_1.1_spec\1.1.1\geronimo-jms_1.1_spec-1.1.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\net\sf\ehcache\ehcache-core
\2.4.2\ehcache-core-2.4.2.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\net\sf\ehcache\ehcache-terr
acotta\2.4.2\ehcache-terracotta-2.4.2.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\opensymphony\quartz\qua
rtz\1.6.1\quartz-1.6.1.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\asm\asm-commons\2.2.3\asm-c
ommons-2.2.3.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\asm\asm-tree\2.2.3\asm-tree
-2.2.3.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\asm\asm\2.2.3\asm-2.2.3.jar

[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
jms\3.0.5.RELEASE\spring-jms-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\aopalliance\aopalliance\1.0
\aopalliance-1.0.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
aop\3.0.5.RELEASE\spring-aop-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
beans\3.0.5.RELEASE\spring-beans-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
context\3.0.5.RELEASE\spring-context-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\org\springframework\spring-
tx\3.0.5.RELEASE\spring-tx-3.0.5.RELEASE.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\cobertura\cobertura\1.8\cob
ertura-1.8.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\commons-codec\commons-codec
\1.4\commons-codec-1.4.jar
[DEBUG] C:\Documents and Settings\QQ\.m2\repository\cglib\cglib-nodep\2.1_3\cgl
ib-nodep-2.1_3.jar
[DEBUG] Source roots:
[DEBUG] C:\Documents and Settings\QQ\My Documents\NetBeansProjects\BroadleafCom
merce-1.5.0-M2-with-dependencies\src\core\BroadleafCommerceFramework\src\main\ja
va
[INFO] Compiling 69 source files to C:\Documents and Settings\QQ\My Documents\Ne
tBeansProjects\BroadleafCommerce-1.5.0-M2-with-dependencies\src\core\BroadleafCo
mmerceFramework\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] BroadleafCommerce ................................. SUCCESS [1.469s]
[INFO] core .............................................. SUCCESS [0.078s]
[INFO] BroadleafCommerceInstrument ....................... SUCCESS [10.094s]
[INFO] core .............................................. SUCCESS [0.062s]
[INFO] BroadleafCommerceOpenAdminPlatform ................ SUCCESS [38.485s]
[INFO] BroadleafCommerceProfile .......................... SUCCESS [35.328s]
[INFO] BroadleafCommerceProfileWeb ....................... SUCCESS [11.640s]
[INFO] BroadleafCommerceFramework ........................ FAILURE [46.235s]
[INFO] BroadleafCommerceFrameworkWeb ..................... SKIPPED
[INFO] module ............................................ SKIPPED
[INFO] BroadleafCommerceUSPSSchemas ...................... SKIPPED
[INFO] BroadleafCommerceUSPS ............................. SKIPPED
[INFO] BroadleafCommerceAdminModule ...................... SKIPPED
[INFO] site .............................................. SKIPPED
[INFO] BroadleafCommerceDemo ............................. SKIPPED
[INFO] BroadleafCommerceDemoLauncher ..................... SKIPPED
[INFO] BroadleafCommerceCyberSourceAPI ................... SKIPPED
[INFO] BroadleafCommerceCyberSource ...................... SKIPPED
[INFO] integration ....................................... SKIPPED
[INFO] distribute ........................................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:27.500s
[INFO] Finished at: Tue Aug 09 10:26:49 ICT 2011
[INFO] Final Memory: 17M/42M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
0.2:compile (default-compile) on project broadleaf-framework: Compilation failur
e
[ERROR] C:\Documents and Settings\QQ\My Documents\NetBeansProjects\BroadleafComm
erce-1.5.0-M2-with-dependencies\src\core\BroadleafCommerceFramework\src\main\jav
a\org\broadleafcommerce\core\offer\service\discount\domain\PromotableItemFactory
Impl.java:[46,13] cannot find symbol
[ERROR] symbol : class PromotableCandidateFulfillmentGroupOfferImpl
[ERROR] location: class org.broadleafcommerce.core.offer.service.discount.domain
.PromotableItemFactoryImpl
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on
project broadleaf-framework: Compilation failure
C:\Documents and Settings\QQ\My Documents\NetBeansProjects\BroadleafCommerce-1.5
.0-M2-with-dependencies\src\core\BroadleafCommerceFramework\src\main\java\org\br
oadleafcommerce\core\offer\service\discount\domain\PromotableItemFactoryImpl.jav
a:[46,13] cannot find symbol
symbol : class PromotableCandidateFulfillmentGroupOfferImpl
location: class org.broadleafcommerce.core.offer.service.discount.domain.Promota
bleItemFactoryImpl


at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation fail
ure
C:\Documents and Settings\QQ\My Documents\NetBeansProjects\BroadleafCommerce-1.5
.0-M2-with-dependencies\src\core\BroadleafCommerceFramework\src\main\java\org\br
oadleafcommerce\core\offer\service\discount\domain\PromotableItemFactoryImpl.jav
a:[46,13] cannot find symbol
symbol : class PromotableCandidateFulfillmentGroupOfferImpl
location: class org.broadleafcommerce.core.offer.service.discount.domain.Promota
bleItemFactoryImpl


at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
Mojo.java:516)
at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:114)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
... 19 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/disp ... FailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn <goals> -rf :broadleaf-framework
C:\Documents and Settings\QQ\My Documents\NetBeansProjects\BroadleafCommerce-1.5
.0-M2-with-dependencies\src>


what must i do, anyone please help me...... :cry:

Re: Failed when execute mvn install

Posted: Tue Aug 09, 2011 2:02 am
by tenardi
UPDATE:

I've successfully execute mvn install. I execute mvn install in C:\Program Files\Apache Software Foundation\BroadleafCommerce-1.5.0-M2-with-dependencies\src.
TransactionType.java to list
Adding org\broadleafcommerce\vendor\cybersource\service\tax\CyberSourceTaxServic
e.java to list
Adding org\broadleafcommerce\vendor\cybersource\service\tax\CyberSourceTaxServic
eImpl.java to list
Adding org\broadleafcommerce\vendor\cybersource\service\tax\message\CyberSourceT
axItemRequest.java to list
Adding org\broadleafcommerce\vendor\cybersource\service\tax\message\CyberSourceT
axItemResponse.java to list
Adding org\broadleafcommerce\vendor\cybersource\service\tax\message\CyberSourceT
axRequest.java to list
Adding org\broadleafcommerce\vendor\cybersource\service\tax\message\CyberSourceT
axResponse.java to list
Adding org\broadleafcommerce\vendor\cybersource\service\type\CyberSourceServiceT
ype.java to list
+Task: java
[DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
dropping C:\C from path as it doesn't exist
[DEBUG] getProperty(ns=null, name=build.sysclasspath, user=false)
dropping C:\C from path as it doesn't exist
Execute:Java13CommandLauncher: Executing 'C:\Program Files\Java\jdk1.6.0_20\jre\
bin\java.exe' with arguments:
'-classpath'
'C:\Documents and Settings\QQ\.m2\repository\org\apache\maven\plugins\maven-antr
un-plugin\1.3\maven-antrun-plugin-1.3.jar;C:\Documents and Settings\QQ\.m2\repos
itory\ant\ant-junit\1.6.2\ant-junit-1.6.2.jar;C:\Documents and Settings\QQ\.m2\r
epository\cobertura\cobertura\1.8\cobertura-1.8.jar;C:\Documents and Settings\QQ
\.m2\repository\oro\oro\2.0.8\oro-2.0.8.jar;C:\Documents and Settings\QQ\.m2\rep
ository\asm\asm\2.2.1\asm-2.2.1.jar;C:\Documents and Settings\QQ\.m2\repository\
log4j\log4j\1.2.9\log4j-1.2.9.jar;C:\Documents and Settings\QQ\.m2\repository\or
g\apache\ant\ant-jsch\1.7.1\ant-jsch-1.7.1.jar;C:\Documents and Settings\QQ\.m2\
repository\com\jcraft\jsch\0.1.42\jsch-0.1.42.jar;C:\Documents and Settings\QQ\.
m2\repository\ant-contrib\ant-contrib\1.0b3\ant-contrib-1.0b3.jar;C:\Documents a
nd Settings\QQ\.m2\repository\junit\junit\3.8.1\junit-3.8.1.jar;C:\Documents and
Settings\QQ\.m2\repository\org\codehaus\plexus\plexus-utils\1.5.6\plexus-utils-
1.5.6.jar;C:\Documents and Settings\QQ\.m2\repository\org\apache\ant\ant-launche
r\1.7.1\ant-launcher-1.7.1.jar;C:\Documents and Settings\QQ\.m2\repository\org\a
pache\ant\ant\1.7.1\ant-1.7.1.jar'
'net.sourceforge.cobertura.reporting.Main'
'--commandsfile'
'C:\DOCUME~1\QQ\LOCALS~1\Temp\cobertura.3439410132765924532.cmdline'

The ' characters around the executable and arguments are
not part of the command.
[cobertura-report] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT
file
[cobertura-report] Cobertura: Loaded information on 747 classes.
[cobertura-report] Report time: 6328ms
[INFO] Executed tasks
[INFO]
[INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ integration ---
[DEBUG] org.apache.maven.plugins:maven-jar-plugin:jar:2.2:
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.6:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.7:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.7:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stabl
e-1:compile
[DEBUG] junit:junit:jar:3.8.1:compile
[DEBUG] classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG] org.apache.maven:maven-archiver:jar:2.3:compile
[DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-9:compile
[DEBUG] org.codehaus.plexus:plexus-io:jar:1.0-alpha-1:compile
[DEBUG] commons-lang:commons-lang:jar:2.1:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.9:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-jar-plugin
:2.2
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plug
ins:maven-jar-plugin:2.2
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-jar-plugin:
2.2
[DEBUG] Included: org.apache.maven.plugins:maven-jar-plugin:jar:2.2
[DEBUG] Included: junit:junit:jar:3.8.1
[DEBUG] Included: org.apache.maven:maven-archiver:jar:2.3
[DEBUG] Included: org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-9
[DEBUG] Included: org.codehaus.plexus:plexus-io:jar:1.0-alpha-1
[DEBUG] Included: commons-lang:commons-lang:jar:2.1
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.4.9
[DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.6
[DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.7
[DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.7
[DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.7
[DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.7
[DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.7
[DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.7
[DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.7
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.7
[DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9
-stable-1
[DEBUG] Excluded: classworlds:classworlds:jar:1.1-alpha-2
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-jar-plugin:2.2:jar from
plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-jar-plugin:2.2, pa
rent: sun.misc.Launcher$AppClassLoader@11b86e7]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jar-plugin:2.2:jar' wit
h basic configurator -->
[DEBUG] (f) classesDirectory = C:\Program Files\Apache Software Foundation\Bro
adleafCommerce-1.5.0-M2-with-dependencies\src\integration\target\classes
[DEBUG] (f) defaultManifestFile = C:\Program Files\Apache Software Foundation\
BroadleafCommerce-1.5.0-M2-with-dependencies\src\integration\target\classes\META
-INF\MANIFEST.MF
[DEBUG] (f) finalName = integration-1.5.0-M2
[DEBUG] (f) forceCreation = false
[DEBUG] (f) outputDirectory = C:\Program Files\Apache Software Foundation\Broa
dleafCommerce-1.5.0-M2-with-dependencies\src\integration\target
[DEBUG] (f) project = MavenProject: org.broadleafcommerce:integration:1.5.0-M2
@ C:\Program Files\Apache Software Foundation\BroadleafCommerce-1.5.0-M2-with-d
ependencies\src\integration\pom.xml
[DEBUG] (f) useDefaultManifestFile = false
[DEBUG] -- end configuration --
[DEBUG] isUp2date: true
[DEBUG] Archive C:\Program Files\Apache Software Foundation\BroadleafCommerce-1.
5.0-M2-with-dependencies\src\integration\target\integration-1.5.0-M2.jar is upto
date.
[INFO]
[INFO] --- maven-jar-plugin:2.2:test-jar (default) @ integration ---
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-jar-plugin:2.2:test-jar
from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-jar-plugin:2.
2, parent: sun.misc.Launcher$AppClassLoader@11b86e7]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jar-plugin:2.2:test-jar
' with basic configurator -->
[DEBUG] (f) defaultManifestFile = C:\Program Files\Apache Software Foundation\
BroadleafCommerce-1.5.0-M2-with-dependencies\src\integration\target\classes\META
-INF\MANIFEST.MF
[DEBUG] (f) finalName = integration-1.5.0-M2
[DEBUG] (f) forceCreation = false
[DEBUG] (f) outputDirectory = C:\Program Files\Apache Software Foundation\Broa
dleafCommerce-1.5.0-M2-with-dependencies\src\integration\target
[DEBUG] (f) project = MavenProject: org.broadleafcommerce:integration:1.5.0-M2
@ C:\Program Files\Apache Software Foundation\BroadleafCommerce-1.5.0-M2-with-d
ependencies\src\integration\pom.xml
[DEBUG] (f) testClassesDirectory = C:\Program Files\Apache Software Foundation
\BroadleafCommerce-1.5.0-M2-with-dependencies\src\integration\target\test-classe
s
[DEBUG] (f) useDefaultManifestFile = false
[DEBUG] -- end configuration --
[DEBUG] isUp2date: true
[DEBUG] Archive C:\Program Files\Apache Software Foundation\BroadleafCommerce-1.
5.0-M2-with-dependencies\src\integration\target\integration-1.5.0-M2-tests.jar i
s uptodate.
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ integration --
-
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-install-plugin:2.3.1:ins
tall from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-install-
plugin:2.3.1, parent: sun.misc.Launcher$AppClassLoader@11b86e7]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-install-plugin:2.3.1:in
stall' with basic configurator -->
[DEBUG] (f) artifact = org.broadleafcommerce:integration:jar:1.5.0-M2
[DEBUG] (f) attachedArtifacts = [org.broadleafcommerce:integration:test-jar:te
sts:1.5.0-M2]
[DEBUG] (f) createChecksum = false
[DEBUG] (f) localRepository = id: local
url: file:///C:/Documents%20and%20Settings/QQ/.m2/repository/
layout: none

[DEBUG] (f) packaging = jar
[DEBUG] (f) pomFile = C:\Program Files\Apache Software Foundation\BroadleafCom
merce-1.5.0-M2-with-dependencies\src\integration\pom.xml
[DEBUG] (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] Installing C:\Program Files\Apache Software Foundation\BroadleafCommerce-
1.5.0-M2-with-dependencies\src\integration\target\integration-1.5.0-M2.jar to C:
\Documents and Settings\QQ\.m2\repository\org\broadleafcommerce\integration\1.5.
0-M2\integration-1.5.0-M2.jar
[DEBUG] Skipped re-installing C:\Program Files\Apache Software Foundation\Broadl
eafCommerce-1.5.0-M2-with-dependencies\src\integration\target\integration-1.5.0-
M2.jar to C:\Documents and Settings\QQ\.m2\repository\org\broadleafcommerce\inte
gration\1.5.0-M2\integration-1.5.0-M2.jar, seems unchanged
[INFO] Installing C:\Program Files\Apache Software Foundation\BroadleafCommerce-
1.5.0-M2-with-dependencies\src\integration\pom.xml to C:\Documents and Settings\
QQ\.m2\repository\org\broadleafcommerce\integration\1.5.0-M2\integration-1.5.0-M
2.pom
[DEBUG] Installing org.broadleafcommerce:integration/maven-metadata.xml to C:\Do
cuments and Settings\QQ\.m2\repository\org\broadleafcommerce\integration\maven-m
etadata-local.xml
[INFO] Installing C:\Program Files\Apache Software Foundation\BroadleafCommerce-
1.5.0-M2-with-dependencies\src\integration\target\integration-1.5.0-M2-tests.jar
to C:\Documents and Settings\QQ\.m2\repository\org\broadleafcommerce\integratio
n\1.5.0-M2\integration-1.5.0-M2-tests.jar
[DEBUG] Skipped re-installing C:\Program Files\Apache Software Foundation\Broadl
eafCommerce-1.5.0-M2-with-dependencies\src\integration\target\integration-1.5.0-
M2-tests.jar to C:\Documents and Settings\QQ\.m2\repository\org\broadleafcommerc
e\integration\1.5.0-M2\integration-1.5.0-M2-tests.jar, seems unchanged
[DEBUG] Installing org.broadleafcommerce:integration/maven-metadata.xml to C:\Do
cuments and Settings\QQ\.m2\repository\org\broadleafcommerce\integration\maven-m
etadata-local.xml
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building distribute 1.5.0-M2
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-so
urces, generate-resources, process-resources, compile, process-classes, generate
-test-sources, process-test-sources, generate-test-resources, process-test-resou
rces, test-compile, process-test-classes, test, prepare-package, package, pre-in
tegration-test, integration-test, post-integration-test, verify, install, deploy
]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-so
urces, generate-resources, process-resources, compile, process-classes, generate
-test-sources, process-test-sources, generate-test-resources, process-test-resou
rces, test-compile, process-test-classes, test, prepare-package, package, pre-in
tegration-test, integration-test, post-integration-test, verify, install, deploy
]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: org.broadleafcommerce:distribute:1.5.0-M2
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): []
[DEBUG] Repositories (dependencies): [smartgwt (http://www.smartclient.com/maven
2, releases+snapshots), com.anasoft.os.repository.releases (http://anasoft-os-re
po.googlecode.com/svn/repository/releases, releases+snapshots), third party rele
ases (http://www.broadleafcommerce.org/nexus/ ... dpartypubl
ic/, releases+snapshots), jboss (https://repository.jboss.org/nexus/content/grou
ps/public, releases+snapshots), central (http://repo1.maven.org/maven2, releases
)]
[DEBUG] Repositories (plugins) : [central (http://repo1.maven.org/maven2, re
leases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-install-plugin:2.3.1:insta
ll (default-install)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<artifact default-value="${project.artifact}"/>
<attachedArtifacts default-value="${project.attachedArtifacts}"/>
<createChecksum default-value="false">${createChecksum}</createChecksum>
<localRepository>${localRepository}</localRepository>
<packaging default-value="${project.packaging}"/>
<pomFile default-value="${project.file}"/>
<updateReleaseInfo default-value="false">${updateReleaseInfo}</updateReleaseIn
fo>
</configuration>
[DEBUG] =======================================================================
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ distribute ---

[DEBUG] Configuring mojo org.apache.maven.plugins:maven-install-plugin:2.3.1:ins
tall from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-install-
plugin:2.3.1, parent: sun.misc.Launcher$AppClassLoader@11b86e7]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-install-plugin:2.3.1:in
stall' with basic configurator -->
[DEBUG] (f) artifact = org.broadleafcommerce:distribute:pom:1.5.0-M2
[DEBUG] (f) attachedArtifacts = []
[DEBUG] (f) createChecksum = false
[DEBUG] (f) localRepository = id: local
url: file:///C:/Documents%20and%20Settings/QQ/.m2/repository/
layout: none

[DEBUG] (f) packaging = pom
[DEBUG] (f) pomFile = C:\Program Files\Apache Software Foundation\BroadleafCom
merce-1.5.0-M2-with-dependencies\src\distribute\pom.xml
[DEBUG] (f) updateReleaseInfo = false
[DEBUG] -- end configuration --
[INFO] Installing C:\Program Files\Apache Software Foundation\BroadleafCommerce-
1.5.0-M2-with-dependencies\src\distribute\pom.xml to C:\Documents and Settings\Q
Q\.m2\repository\org\broadleafcommerce\distribute\1.5.0-M2\distribute-1.5.0-M2.p
om
[DEBUG] Installing org.broadleafcommerce:distribute/maven-metadata.xml to C:\Doc
uments and Settings\QQ\.m2\repository\org\broadleafcommerce\distribute\maven-met
adata-local.xml
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] BroadleafCommerce ................................. SUCCESS [1.000s]
[INFO] core .............................................. SUCCESS [0.031s]
[INFO] BroadleafCommerceInstrument ....................... SUCCESS [5.344s]
[INFO] core .............................................. SUCCESS [0.016s]
[INFO] BroadleafCommerceOpenAdminPlatform ................ SUCCESS [6.812s]
[INFO] BroadleafCommerceProfile .......................... SUCCESS [14.907s]
[INFO] BroadleafCommerceProfileWeb ....................... SUCCESS [4.625s]
[INFO] BroadleafCommerceFramework ........................ SUCCESS [13.000s]
[INFO] BroadleafCommerceFrameworkWeb ..................... SUCCESS [4.890s]
[INFO] module ............................................ SUCCESS [0.031s]
[INFO] BroadleafCommerceUSPSSchemas ...................... SUCCESS [23.204s]
[INFO] BroadleafCommerceUSPS ............................. SUCCESS [3.656s]
[INFO] BroadleafCommerceAdminModule ...................... SUCCESS [4.234s]
[INFO] site .............................................. SUCCESS [0.031s]
[INFO] BroadleafCommerceDemo ............................. SUCCESS [1:10.172s]
[INFO] BroadleafCommerceDemoLauncher ..................... SUCCESS [2.313s]
[INFO] BroadleafCommerceCyberSourceAPI ................... SUCCESS [40.328s]
[INFO] BroadleafCommerceCyberSource ...................... SUCCESS [4.422s]
[INFO] integration ....................................... SUCCESS [2:28.140s]
[INFO] distribute ........................................ SUCCESS [0.219s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5:48.828s
[INFO] Finished at: Tue Aug 09 14:18:10 ICT 2011
[INFO] Final Memory: 24M/73M
[INFO] ------------------------------------------------------------------------
C:\Program Files\Apache Software Foundation\BroadleafCommerce-1.5.0-M2-with-depe
ndencies\src>


Now, as guided in http://www.broadleafcommerce.org/confluence/display/core/quickStartGuide, I move to directory C:\Program Files\Apache Software Foundation\BroadleafCommerce-1.5.0-M2-with-dependencies\src\site\BroadleafCommerceDemo. The I execute ant deploy-exploded-war, but the result is : BUILD FAILED
Target "deploy-exploded-war" does not exist in the project "BroadleafCommerceDem
o".


what should i do now ??

Re: Failed when execute mvn install

Posted: Fri Aug 12, 2011 5:20 pm
by jefffischer
What end are your trying to achieve?

1) Are you trying to launch the demo?
2) Are you trying to setup a sample project for yourself that is built on top of the Broadleaf Commerce platform?
3) Are you trying to modify the source code of the platform?

Some of the docs are out-of-date (the link you mentioned is for the previous release). Nonetheless, the steps you're enacting is for #3 above, which I doubt is what you're trying to achieve.

For #1, the quickStartGuide.txt inside the downloaded distribution is accurate. For #2, we have a starter project that we can provide that can get you started.

Re: Failed when execute mvn install

Posted: Mon Aug 15, 2011 1:31 am
by tenardi
hi jefffischer, thx for ur response..

yes my goal is to launch the demo. but i want to launch the demo with database that can be accessed by myself. Using tutorial based on that link will make me able to access my mysql database, isn't it?

I've success Run the Demo and Admin Applications using guide in quickStartGuide, but that demo is using hqsql as a dabatase..
Then, i can't access that database using hqsql manager. I've try to using jdbc:hsqldb:hsql://localhost/broadleaf as url but it failed..

Re: Failed when execute mvn install

Posted: Mon Aug 15, 2011 9:30 am
by jefffischer
Since you have the source, you can achieve your goal in the following way:

1) Adjust the persistence configuration for MySQL. See here for more info: http://www.broadleafcommerce.org/conflu ... figuration
2) Execute "mvn install" at the same level as the topmost pom.xml. This will cause compilation and packaging of all modules in the project.
3) There is a build.xml file in the site/BroadleafCommerceDemo directory. Execute the "jetty-demo" task in this build.xml using ANT.

This "jetty-demo" task will still launch the HSQL database, but it won't matter, since you will have re-configured the demo to point to your MySQL database.