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..
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..