Broadleaf - Ant BuildException - Error instrumenting classes
Posted: Tue Jun 01, 2010 6:39 am
Hi,
I'm facing problem in setting up the project in myeclipse 8.0. Following is the log shown on console. At the end of the log error occurs. Please suggest what shall i do to overcome this problem.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] BroadleafCommerce
[INFO] BroadleafCommerceProfile
[INFO] BroadleafCommerceProfileWeb
[INFO] BroadleafCommerceFramework
[INFO] BroadleafCommerceFrameworkWeb
[INFO] BroadleafCommerceUSPSSchemas
[INFO] BroadleafCommerceUSPS
[INFO] BroadleafCommerceCyberSourceAPI
[INFO] BroadleafCommerceCyberSource
[INFO] BroadleafCommerceIntegrationTests
[INFO] BroadleafCommerceDemo
[INFO] BroadleafCommerceAdmin
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerce
[INFO]
[INFO] Id: org.broadleafcommerce:BroadleafCommerce:pom:1.1.0-M3-SNAPSHOT
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing H:\Work Bank\workspace\BroadleafCommerce\pom.xml to C:\Documents and Settings\PlayBoy\.m2\repository\org\broadleafcommerce\BroadleafCommerce\1.1.0-M3-SNAPSHOT\BroadleafCommerce-1.1.0-M3-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceProfile
[INFO]
[INFO] Id: org.broadleafcommerce:broadleaf-profile:jar:1.1.0-M3-SNAPSHOT
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] While downloading org.opensymphony.quartz:quartz:1.6.1
This artifact has been relocated to org.opensymphony.quartz:quartz:1.6.1.
[WARNING] While downloading org.apache.ant:ant:1.7.0
This artifact has been relocated to org.apache.ant:ant:1.7.0.
[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] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfile\target\surefire-reports
-------------------------------------------------------
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] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
[cobertura-instrument] Cobertura: Loaded information on 213 classes.
[cobertura-instrument] Instrumenting 213 files to H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfile\target\instrumented
[cobertura-instrument] [ WARN] 16:56:32 ClassInstrumenter - No line number information found for class org.broadleafcommerce.util.sql.HibernateToolTask$1. Perhaps you need to compile with debug=true?
[cobertura-instrument] Cobertura: Saved information on 213 classes.
[cobertura-instrument] Instrument time: 5343ms
[INFO] Executed tasks
[INFO] [install:install]
[INFO] Installing H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfile\target\broadleaf-profile-1.1.0-M3-SNAPSHOT.jar to C:\Documents and Settings\PlayBoy\.m2\repository\org\broadleafcommerce\broadleaf-profile\1.1.0-M3-SNAPSHOT\broadleaf-profile-1.1.0-M3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceProfileWeb
[INFO]
[INFO] Id: org.broadleafcommerce:broadleaf-profile-web:jar:1.1.0-M3-SNAPSHOT
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] While downloading javax.servlet:jstl:1.1.2
This artifact has been relocated to javax.servlet:jstl:1.1.2.
[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] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfileWeb\target\surefire-reports
-------------------------------------------------------
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] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
[cobertura-instrument] Cobertura: Loaded information on 26 classes.
[cobertura-instrument] Instrumenting 26 files to H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfileWeb\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 26 classes.
[cobertura-instrument] Instrument time: 469ms
[INFO] Executed tasks
[INFO] [install:install]
[INFO] Installing H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfileWeb\target\broadleaf-profile-web-1.1.0-M3-SNAPSHOT.jar to C:\Documents and Settings\PlayBoy\.m2\repository\org\broadleafcommerce\broadleaf-profile-web\1.1.0-M3-SNAPSHOT\broadleaf-profile-web-1.1.0-M3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceFramework
[INFO]
[INFO] Id: org.broadleafcommerce:broadleaf-framework:jar:1.1.0-M3-SNAPSHOT
[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] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceFramework\target\surefire-reports
-------------------------------------------------------
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] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
[cobertura-instrument] Cobertura: Loaded information on 312 classes.
[cobertura-instrument] Instrumenting 312 files to H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceFramework\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 312 classes.
[cobertura-instrument] Instrument time: 3687ms
[INFO] Executed tasks
[INFO] [install:install]
[INFO] Installing H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceFramework\target\broadleaf-framework-1.1.0-M3-SNAPSHOT.jar to C:\Documents and Settings\PlayBoy\.m2\repository\org\broadleafcommerce\broadleaf-framework\1.1.0-M3-SNAPSHOT\broadleaf-framework-1.1.0-M3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceFrameworkWeb
[INFO]
[INFO] Id: org.broadleafcommerce:broadleaf-framework-web:jar:1.1.0-M3-SNAPSHOT
[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] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceFrameworkWeb\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.broadleafcommerce.web.SpringTemporaryRedirectOverrideFilterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.141 sec
Results :
Tests run: 1, 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 [2.297s]
[INFO] BroadleafCommerceProfile .............................. SUCCESS [15.953s]
[INFO] BroadleafCommerceProfileWeb ........................... SUCCESS [3.125s]
[INFO] BroadleafCommerceFramework ............................ SUCCESS [6.766s]
[INFO] BroadleafCommerceFrameworkWeb ......................... FAILED [1.937s]
[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] ------------------------------------------------------------------------
[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: 1.1.0-M3-SNAPSHOT
From file: H:\Work Bank\workspace\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: 31 seconds
[INFO] Finished at: Tue Jun 01 16:56:44 IST 2010
[INFO] Final Memory: 6M/28M
[INFO] ------------------------------------------------------------------------
Regards,
Devanshu
I'm facing problem in setting up the project in myeclipse 8.0. Following is the log shown on console. At the end of the log error occurs. Please suggest what shall i do to overcome this problem.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] BroadleafCommerce
[INFO] BroadleafCommerceProfile
[INFO] BroadleafCommerceProfileWeb
[INFO] BroadleafCommerceFramework
[INFO] BroadleafCommerceFrameworkWeb
[INFO] BroadleafCommerceUSPSSchemas
[INFO] BroadleafCommerceUSPS
[INFO] BroadleafCommerceCyberSourceAPI
[INFO] BroadleafCommerceCyberSource
[INFO] BroadleafCommerceIntegrationTests
[INFO] BroadleafCommerceDemo
[INFO] BroadleafCommerceAdmin
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerce
[INFO]
[INFO] Id: org.broadleafcommerce:BroadleafCommerce:pom:1.1.0-M3-SNAPSHOT
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing H:\Work Bank\workspace\BroadleafCommerce\pom.xml to C:\Documents and Settings\PlayBoy\.m2\repository\org\broadleafcommerce\BroadleafCommerce\1.1.0-M3-SNAPSHOT\BroadleafCommerce-1.1.0-M3-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceProfile
[INFO]
[INFO] Id: org.broadleafcommerce:broadleaf-profile:jar:1.1.0-M3-SNAPSHOT
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] While downloading org.opensymphony.quartz:quartz:1.6.1
This artifact has been relocated to org.opensymphony.quartz:quartz:1.6.1.
[WARNING] While downloading org.apache.ant:ant:1.7.0
This artifact has been relocated to org.apache.ant:ant:1.7.0.
[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] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfile\target\surefire-reports
-------------------------------------------------------
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] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
[cobertura-instrument] Cobertura: Loaded information on 213 classes.
[cobertura-instrument] Instrumenting 213 files to H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfile\target\instrumented
[cobertura-instrument] [ WARN] 16:56:32 ClassInstrumenter - No line number information found for class org.broadleafcommerce.util.sql.HibernateToolTask$1. Perhaps you need to compile with debug=true?
[cobertura-instrument] Cobertura: Saved information on 213 classes.
[cobertura-instrument] Instrument time: 5343ms
[INFO] Executed tasks
[INFO] [install:install]
[INFO] Installing H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfile\target\broadleaf-profile-1.1.0-M3-SNAPSHOT.jar to C:\Documents and Settings\PlayBoy\.m2\repository\org\broadleafcommerce\broadleaf-profile\1.1.0-M3-SNAPSHOT\broadleaf-profile-1.1.0-M3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceProfileWeb
[INFO]
[INFO] Id: org.broadleafcommerce:broadleaf-profile-web:jar:1.1.0-M3-SNAPSHOT
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] While downloading javax.servlet:jstl:1.1.2
This artifact has been relocated to javax.servlet:jstl:1.1.2.
[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] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfileWeb\target\surefire-reports
-------------------------------------------------------
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] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
[cobertura-instrument] Cobertura: Loaded information on 26 classes.
[cobertura-instrument] Instrumenting 26 files to H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfileWeb\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 26 classes.
[cobertura-instrument] Instrument time: 469ms
[INFO] Executed tasks
[INFO] [install:install]
[INFO] Installing H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceProfileWeb\target\broadleaf-profile-web-1.1.0-M3-SNAPSHOT.jar to C:\Documents and Settings\PlayBoy\.m2\repository\org\broadleafcommerce\broadleaf-profile-web\1.1.0-M3-SNAPSHOT\broadleaf-profile-web-1.1.0-M3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceFramework
[INFO]
[INFO] Id: org.broadleafcommerce:broadleaf-framework:jar:1.1.0-M3-SNAPSHOT
[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] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceFramework\target\surefire-reports
-------------------------------------------------------
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] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file
[cobertura-instrument] Cobertura: Loaded information on 312 classes.
[cobertura-instrument] Instrumenting 312 files to H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceFramework\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 312 classes.
[cobertura-instrument] Instrument time: 3687ms
[INFO] Executed tasks
[INFO] [install:install]
[INFO] Installing H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceFramework\target\broadleaf-framework-1.1.0-M3-SNAPSHOT.jar to C:\Documents and Settings\PlayBoy\.m2\repository\org\broadleafcommerce\broadleaf-framework\1.1.0-M3-SNAPSHOT\broadleaf-framework-1.1.0-M3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceFrameworkWeb
[INFO]
[INFO] Id: org.broadleafcommerce:broadleaf-framework-web:jar:1.1.0-M3-SNAPSHOT
[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] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory: H:\Work Bank\workspace\BroadleafCommerce\BroadleafCommerceFrameworkWeb\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.broadleafcommerce.web.SpringTemporaryRedirectOverrideFilterTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.141 sec
Results :
Tests run: 1, 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 [2.297s]
[INFO] BroadleafCommerceProfile .............................. SUCCESS [15.953s]
[INFO] BroadleafCommerceProfileWeb ........................... SUCCESS [3.125s]
[INFO] BroadleafCommerceFramework ............................ SUCCESS [6.766s]
[INFO] BroadleafCommerceFrameworkWeb ......................... FAILED [1.937s]
[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] ------------------------------------------------------------------------
[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: 1.1.0-M3-SNAPSHOT
From file: H:\Work Bank\workspace\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: 31 seconds
[INFO] Finished at: Tue Jun 01 16:56:44 IST 2010
[INFO] Final Memory: 6M/28M
[INFO] ------------------------------------------------------------------------
Regards,
Devanshu