Page 1 of 2

Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Tue Jun 01, 2010 6:39 am
by logicallimit
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

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Tue Jun 01, 2010 11:04 am
by jefffischer
It seems that in your case, there's a problem finding the cobertura jar. I noticed the following in the console output you provided:

[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

We've seen problems before when there are spaces in the fully-qualified paths for either the maven repository or the project location itself. In your case, you've got "H:\Work Bank" and "C:\Documents and Settings". Please try changing the locations of these installations to paths that do not contains spaces and attempt the build again.

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Wed Jun 02, 2010 5:14 am
by logicallimit
Dear jefffischer,

Thanks a lot for replying. I changed the "Work Bank" to "WorkBank". But please tell how can I change the "Documents and Settings" to some other location. The ".m2" directory is automatically created when maven plugin is installed in eclipse.

I'd like to tell you that, I have now changed my IDE to latest Eclipse 3.5.2 (JEE+BIRT) to confirm that it is not some IDE related problem.
Though, the build is still failing to compile. Below Log is of Eclipse3.5.2 IDE.


[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] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\WorkBank\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] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 30 resources
[WARNING] While downloading opensymphony:quartz:1.6.1
This artifact has been relocated to org.opensymphony.quartz:quartz:1.6.1.


[WARNING] While downloading ant:ant:1.7.0
This artifact has been relocated to org.apache.ant:ant:1.7.0.


[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: H:\WorkBank\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 {execution: default-jar}]
[INFO] [antrun:run {execution: cobertura}]
[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:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceProfile\target\instrumented
[cobertura-instrument] [ WARN] 15:37: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: 2296ms
[INFO] Executed tasks
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\WorkBank\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] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[WARNING] While downloading jstl:jstl:1.1.2
This artifact has been relocated to javax.servlet:jstl:1.1.2.


[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: H:\WorkBank\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 {execution: default-jar}]
[INFO] [antrun:run {execution: cobertura}]
[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:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceProfileWeb\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 26 classes.
[cobertura-instrument] Instrument time: 297ms
[INFO] Executed tasks
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\WorkBank\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] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 34 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: H:\WorkBank\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 {execution: default-jar}]
[INFO] [antrun:run {execution: cobertura}]
[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:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceFramework\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 312 classes.
[cobertura-instrument] Instrument time: 2313ms
[INFO] Executed tasks
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\WorkBank\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] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: H:\WorkBank\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.063 sec

Results :

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

[INFO] [jar:jar {execution: default-jar}]
[INFO] [antrun:run {execution: cobertura}]
[INFO] Executing tasks
[cobertura-instrument] java.lang.NoClassDefFoundError: net/sourceforge/cobertura/instrument/Main
[cobertura-instrument] Exception in thread "main"
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Error instrumenting classes. See messages above.

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 22 seconds
[INFO] Finished at: Wed Jun 02 15:37:40 IST 2010
[INFO] Final Memory: 22M/40M
[INFO] ------------------------------------------------------------------------


I also get following printed on console. In case if it is of any help to you

6/2/10 3:37:01 PM IST: Unable to update index for central|http://repo1.maven.org/maven2
6/2/10 3:36:52 PM IST: Updating index central|http://repo1.maven.org/maven2
6/2/10 3:37:01 PM IST: Unable to download Repository[d9d714e11cb097b3ffcec91cccc65d3e|http://repo1.maven.org/maven2/.index]/nexus-maven-repository-index.properties: java.nio.channels.UnresolvedAddressException
6/2/10 3:37:16 PM IST: H:\WorkBank\workspace\BroadleafCommerce
6/2/10 3:37:16 PM IST: mvn -B -s H:\WorkBank\.m2\settings.xml install
6/2/10 3:42:35 PM IST: Updating index central|http://repo1.maven.org/maven2
6/2/10 3:42:40 PM IST: Unable to download Repository[d9d714e11cb097b3ffcec91cccc65d3e|http://repo1.maven.org/maven2/.index]/nexus-maven-repository-index.properties: java.nio.channels.UnresolvedAddressException
6/2/10 3:42:41 PM IST: Unable to update index for central|http://repo1.maven.org/maven2

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Wed Jun 02, 2010 3:05 pm
by jefffischer
We're unable to reproduce the behavior you're seeing. Can we try something to make sure Eclipse is not the problem. Try executing the build from the command line instead of from Eclipse. Execute the steps under the "Building and Running the Broadleaf Commerce Demo Application" at http://www.broadleafcommerce.org/trac/w ... artGuide11. Of course, instead of downloading the distribution, you can execute the steps from your subversion checkout if you happen to be using that approach.

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Thu Jun 03, 2010 5:06 am
by logicallimit
I tried to build both from command prompt. But both build failed with following errors respectively:

1. Log for source downloaded as BroadleafCommerce-1_1.1.0-M2-with-dependencies[color=#BF0000][/color]
Downloading: http://www.eviware.com/repository/maven ... ork/spring
-web/2.5.6/spring-web-2.5.6.jar
[INFO] Unable to find resource 'org.springframework:spring-web:jar:2.5.6' in rep
ository eviware (http://www.eviware.com/repository/maven2)
Downloading: http://repo1.maven.org/maven2/org/sprin ... web/2.5.6/
spring-web-2.5.6.jar

[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 26 source files to E:\IT Related\Opensource\Packages\E-Commerce
\BroadleafCommerce-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceProfileWeb\
target\classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\IT Related\Opensource\Packages\E-C
ommerce\BroadleafCommerce-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceProf
ileWeb\src\test\resources
Downloading: http://download.java.net/maven/1/org.ap ... ucene-anal
yzers-2.4.1.jar
Downloading: http://download.java.net/maven/1/org.sp ... rity/jars/
spring-security-acl-2.0.5.RELEASE.jar
[INFO] Unable to find resource 'org.springframework.security:spring-security-acl
:jar:2.0.5.RELEASE' in repository java.net (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/org/ ... curity/spr
ing-security-acl/2.0.5.RELEASE/spring-security-acl-2.0.5.RELEASE.jar
[INFO] Unable to find resource 'org.apache.lucene:lucene-analyzers:jar:2.4.1' in
repository java.net (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/org/ ... ne-analyze
rs/2.4.1/lucene-analyzers-2.4.1.jar
[INFO] Unable to find resource 'org.springframework.security:spring-security-acl
:jar:2.0.5.RELEASE' in repository jboss.com (http://repository.jboss.com/maven2)

Downloading: http://repository.sonatype.org/content/ ... rg/springf
ramework/security/spring-security-acl/2.0.5.RELEASE/spring-security-acl-2.0.5.RE
LEASE.jar
[INFO] Unable to find resource 'org.springframework.security:spring-security-acl
:jar:2.0.5.RELEASE' in repository flex-mojos-repository (http://repository.sonat
ype.org/content/groups/flexgroup)
Downloading: http://www.eviware.com/repository/maven ... ork/securi
ty/spring-security-acl/2.0.5.RELEASE/spring-security-acl-2.0.5.RELEASE.jar
[INFO] Unable to find resource 'org.springframework.security:spring-security-acl
:jar:2.0.5.RELEASE' in repository eviware (http://www.eviware.com/repository/mav
en2)
Downloading: http://repo1.maven.org/maven2/org/sprin ... y/spring-s
ecurity-acl/2.0.5.RELEASE/spring-security-acl-2.0.5.RELEASE.jar
141K downloaded (lucene-analyzers-2.4.1.jar)
Downloading: http://download.java.net/maven/1/org.ap ... ucene-core
-2.4.1.jar
[INFO] Unable to find resource 'org.apache.lucene:lucene-core:jar:2.4.1' in repo
sitory java.net (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/org/ ... ene-core/2.
4.1/lucene-core-2.4.1.jar

Downloading: http://download.java.net/maven/1/org.sp ... rity/jars/
spring-security-taglibs-2.0.5.RELEASE.jar
[INFO] Unable to find resource 'org.springframework.security:spring-security-tag
libs:jar:2.0.5.RELEASE' in repository java.net (http://download.java.net/maven/1
)
Downloading: http://repository.jboss.com/maven2/org/ ... curity/spr
ing-security-taglibs/2.0.5.RELEASE/spring-security-taglibs-2.0.5.RELEASE.jar
[INFO] Unable to find resource 'org.springframework.security:spring-security-tag
libs:jar:2.0.5.RELEASE' in repository jboss.com (http://repository.jboss.com/mav
en2)
Downloading: http://repository.sonatype.org/content/ ... rg/springf
ramework/security/spring-security-taglibs/2.0.5.RELEASE/spring-security-taglibs-
2.0.5.RELEASE.jar
[INFO] Unable to find resource 'org.springframework.security:spring-security-tag
libs:jar:2.0.5.RELEASE' in repository flex-mojos-repository (http://repository.s
onatype.org/content/groups/flexgroup)
Downloading: http://www.eviware.com/repository/maven ... ork/securi
ty/spring-security-taglibs/2.0.5.RELEASE/spring-security-taglibs-2.0.5.RELEASE.j
ar
[INFO] Unable to find resource 'org.springframework.security:spring-security-tag
libs:jar:2.0.5.RELEASE' in repository eviware (http://www.eviware.com/repository
/maven2)
Downloading: http://repo1.maven.org/maven2/org/sprin ... y/spring-s
ecurity-taglibs/2.0.5.RELEASE/spring-security-taglibs-2.0.5.RELEASE.jar

803K downloaded (lucene-core-2.4.1.jar)
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: E:\IT Related\Opensource\Packages\E-Commerce\BroadleafComme
rce-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceProfileWeb\target\broadlea
f-profile-web-1.1.0-M2.jar
[INFO] [antrun:run {execution: cobertura}]
[INFO] Executing tasks
[cobertura-instrument] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYR
IGHT file
[cobertura-instrument] Instrumenting 26 files to E:\IT Related\Opensource\Packag
es\E-Commerce\BroadleafCommerce-1_1.1.0-M2-with-dependencies\src\BroadleafCommer
ceProfileWeb\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 26 classes.
[cobertura-instrument] Instrument time: 328ms
[INFO] Executed tasks
[INFO] [install:install {execution: default-install}]
[INFO] Installing E:\IT Related\Opensource\Packages\E-Commerce\BroadleafCommerce
-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceProfileWeb\target\broadleaf-p
rofile-web-1.1.0-M2.jar to C:\Documents and Settings\PlayBoy\.m2\repository\org\
broadleafcommerce\broadleaf-profile-web\1.1.0-M2\broadleaf-profile-web-1.1.0-M2.
jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceFramework
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 34 resources
Downloading: http://download.java.net/maven/1/org.co ... /compass-2
.2.0.pom
[INFO] Unable to find resource 'org.compass-project:compass:pom:2.2.0' in reposi
tory java.net (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/org/ ... ompass/2.2.
0/compass-2.2.0.pom
[INFO] Unable to find resource 'org.compass-project:compass:pom:2.2.0' in reposi
tory jboss.com (http://repository.jboss.com/maven2)
Downloading: http://repository.sonatype.org/content/ ... rg/compass
-project/compass/2.2.0/compass-2.2.0.pom
[INFO] Unable to find resource 'org.compass-project:compass:pom:2.2.0' in reposi
tory flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgr
oup)
Downloading: http://www.eviware.com/repository/maven ... ect/compas
s/2.2.0/compass-2.2.0.pom
[INFO] Unable to find resource 'org.compass-project:compass:pom:2.2.0' in reposi
tory eviware (http://www.eviware.com/repository/maven2)
Downloading: http://repo1.maven.org/maven2/org/compa ... /2.2.0/com
pass-2.2.0.pom

Downloading: http://download.java.net/maven/1/org.mv ... 2.0.11.pom
[INFO] Unable to find resource 'org.mvel:mvel2:pom:2.0.11' in repository java.ne
t (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/org/ ... /mvel2-2.0.
11.pom
[INFO] Unable to find resource 'org.mvel:mvel2:pom:2.0.11' in repository jboss.c
om (http://repository.jboss.com/maven2)
Downloading: http://repository.sonatype.org/content/ ... rg/mvel/mv
el2/2.0.11/mvel2-2.0.11.pom
[INFO] Unable to find resource 'org.mvel:mvel2:pom:2.0.11' in repository flex-mo
jos-repository (http://repository.sonatype.org/content/groups/flexgroup)
Downloading: http://www.eviware.com/repository/maven ... .0.11/mvel
2-2.0.11.pom
[INFO] Unable to find resource 'org.mvel:mvel2:pom:2.0.11' in repository eviware
(http://www.eviware.com/repository/maven2)
Downloading: http://repo1.maven.org/maven2/org/mvel/ ... -2.0.11.po
m

Downloading: http://download.java.net/maven/1/org.mv ... 2.0.11.jar
Downloading: http://download.java.net/maven/1/org.co ... /compass-2
.2.0.jar
[INFO] Unable to find resource 'org.mvel:mvel2:jar:2.0.11' in repository java.ne
t (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/org/ ... /mvel2-2.0.
11.jar
[INFO] Unable to find resource 'org.compass-project:compass:jar:2.2.0' in reposi
tory java.net (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/org/ ... ompass/2.2.
0/compass-2.2.0.jar
[INFO] Unable to find resource 'org.mvel:mvel2:jar:2.0.11' in repository jboss.c
om (http://repository.jboss.com/maven2)
Downloading: http://repository.sonatype.org/content/ ... rg/mvel/mv
el2/2.0.11/mvel2-2.0.11.jar
[INFO] Unable to find resource 'org.compass-project:compass:jar:2.2.0' in reposi
tory jboss.com (http://repository.jboss.com/maven2)
Downloading: http://repository.sonatype.org/content/ ... rg/compass
-project/compass/2.2.0/compass-2.2.0.jar
[INFO] Unable to find resource 'org.compass-project:compass:jar:2.2.0' in reposi
tory flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgr
oup)
Downloading: http://www.eviware.com/repository/maven ... ect/compas
s/2.2.0/compass-2.2.0.jar
[INFO] Unable to find resource 'org.compass-project:compass:jar:2.2.0' in reposi
tory eviware (http://www.eviware.com/repository/maven2)
Downloading: http://repo1.maven.org/maven2/org/compa ... /2.2.0/com
pass-2.2.0.jar
[INFO] Unable to find resource 'org.mvel:mvel2:jar:2.0.11' in repository flex-mo
jos-repository (http://repository.sonatype.org/content/groups/flexgroup)
Downloading: http://www.eviware.com/repository/maven ... .0.11/mvel
2-2.0.11.jar
[INFO] Unable to find resource 'org.mvel:mvel2:jar:2.0.11' in repository eviware
(http://www.eviware.com/repository/maven2)
Downloading: http://repo1.maven.org/maven2/org/mvel/ ... -2.0.11.ja
r


[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 306 source files to E:\IT Related\Opensource\Packages\E-Commerc
e\BroadleafCommerce-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceFramework\
target\classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\IT Related\Opensource\Packages\E-C
ommerce\BroadleafCommerce-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceFram
ework\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] No sources to compile
[INFO] [surefire:test {execution: default-test}]
[INFO] No tests to run.
[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: E:\IT Related\Opensource\Packages\E-Commerce\BroadleafComme
rce-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceFramework\target\broadleaf
-framework-1.1.0-M2.jar
[INFO] [antrun:run {execution: cobertura}]
[INFO] Executing tasks
[cobertura-instrument] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYR
IGHT file
[cobertura-instrument] Instrumenting 312 files to E:\IT Related\Opensource\Packa
ges\E-Commerce\BroadleafCommerce-1_1.1.0-M2-with-dependencies\src\BroadleafComme
rceFramework\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 312 classes.
[cobertura-instrument] Instrument time: 1687ms
[INFO] Executed tasks
[INFO] [install:install {execution: default-install}]
[INFO] Installing E:\IT Related\Opensource\Packages\E-Commerce\BroadleafCommerce
-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceFramework\target\broadleaf-fr
amework-1.1.0-M2.jar to C:\Documents and Settings\PlayBoy\.m2\repository\org\bro
adleafcommerce\broadleaf-framework\1.1.0-M2\broadleaf-framework-1.1.0-M2.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceFrameworkWeb
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 54 source files to E:\IT Related\Opensource\Packages\E-Commerce
\BroadleafCommerce-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceFrameworkWe
b\target\classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory E:\IT Related\Opensource\Packages\E-C
ommerce\BroadleafCommerce-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceFram
eworkWeb\src\test\resources
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 1 source file to E:\IT Related\Opensource\Packages\E-Commerce\B
roadleafCommerce-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceFrameworkWeb\
target\test-classes
[INFO] [surefire:test {execution: default-test}]
Downloading: http://repository.sonatype.org/content/ ... rg/apache/
maven/surefire/surefire-junit/2.4.3/surefire-junit-2.4.3.pom
[INFO] Unable to find resource 'org.apache.maven.surefire:surefire-junit:pom:2.4
.3' in repository flex-mojos-repository (http://repository.sonatype.org/content/
groups/flexgroup)
Downloading: http://repo1.maven.org/maven2/org/apach ... urefire-ju
nit/2.4.3/surefire-junit-2.4.3.pom

Downloading: http://repository.sonatype.org/content/ ... rg/apache/
maven/surefire/surefire-providers/2.4.3/surefire-providers-2.4.3.pom
[INFO] Unable to find resource 'org.apache.maven.surefire:surefire-providers:pom
:2.4.3' in repository flex-mojos-repository (http://repository.sonatype.org/cont
ent/groups/flexgroup)
Downloading: http://repo1.maven.org/maven2/org/apach ... urefire-pr
oviders/2.4.3/surefire-providers-2.4.3.pom

Downloading: http://repository.sonatype.org/content/ ... rg/apache/
maven/surefire/surefire-junit/2.4.3/surefire-junit-2.4.3.jar
[INFO] Unable to find resource 'org.apache.maven.surefire:surefire-junit:jar:2.4
.3' in repository flex-mojos-repository (http://repository.sonatype.org/content/
groups/flexgroup)
Downloading: http://repo1.maven.org/maven2/org/apach ... urefire-ju
nit/2.4.3/surefire-junit-2.4.3.jar

[INFO] Surefire report directory: E:\IT Related\Opensource\Packages\E-Commerce\B
roadleafCommerce-1_1.1.0-M2-with-dependencies\src\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.047 sec

Results :

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

[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: E:\IT Related\Opensource\Packages\E-Commerce\BroadleafComme
rce-1_1.1.0-M2-with-dependencies\src\BroadleafCommerceFrameworkWeb\target\broadl
eaf-framework-web-1.1.0-M2.jar
[INFO] [antrun:run {execution: cobertura}]
[INFO] Executing tasks
[cobertura-instrument] java.lang.NoClassDefFoundError: net/sourceforge/cobertura
/instrument/Main
[cobertura-instrument] Exception in thread "main"
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Error instrumenting classes. See messa
ges above.

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 54 minutes 31 seconds
[INFO] Finished at: Thu Jun 03 14:50:52 IST 2010
[INFO] Final Memory: 35M/254M
[INFO] ------------------------------------------------------------------------
E:\IT Related\Opensource\Packages\E-Commerce\BroadleafCommerce-1_1.1.0-M2-with-d
ependencies\src>



2. Log for build checked out from SVN[color=#FF0000][/color]

[INFO] Copying 0 resource
Downloading: http://download.java.net/maven/1/xpp3/j ... 1.1.4c.jar
Downloading: http://download.java.net/maven/1/com.th ... /jars/xstr
eam-1.3.1.jar
Downloading: http://download.java.net/maven/1/org.sp ... /spring-ox
m-3.0.2.RELEASE.jar
[INFO] Unable to find resource 'com.thoughtworks.xstream:xstream:jar:1.3.1' in r
epository java.net (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/com/ ... am/xstream
/1.3.1/xstream-1.3.1.jar
[INFO] Unable to find resource 'xpp3:xpp3_min:jar:1.1.4c' in repository java.net
(http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/xpp3 ... xpp3_min-1.
1.4c.jar
[INFO] Unable to find resource 'org.springframework:spring-oxm:jar:3.0.2.RELEASE
' in repository java.net (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/org/ ... ring-oxm/3
.0.2.RELEASE/spring-oxm-3.0.2.RELEASE.jar
[INFO] Unable to find resource 'org.springframework:spring-oxm:jar:3.0.2.RELEASE
' in repository jboss.com (http://repository.jboss.com/maven2)
Downloading: http://repository.sonatype.org/content/ ... rg/springf
ramework/spring-oxm/3.0.2.RELEASE/spring-oxm-3.0.2.RELEASE.jar
[INFO] Unable to find resource 'xpp3:xpp3_min:jar:1.1.4c' in repository jboss.co
m (http://repository.jboss.com/maven2)
Downloading: http://repository.sonatype.org/content/ ... pp3/xpp3_m
in/1.1.4c/xpp3_min-1.1.4c.jar
[INFO] Unable to find resource 'org.springframework:spring-oxm:jar:3.0.2.RELEASE
' in repository flex-mojos-repository (http://repository.sonatype.org/content/gr
oups/flexgroup)
Downloading: http://www.eviware.com/repository/maven ... ork/spring
-oxm/3.0.2.RELEASE/spring-oxm-3.0.2.RELEASE.jar
[INFO] Unable to find resource 'xpp3:xpp3_min:jar:1.1.4c' in repository flex-moj
os-repository (http://repository.sonatype.org/content/groups/flexgroup)
Downloading: http://www.eviware.com/repository/maven ... 1.4c/xpp3_
min-1.1.4c.jar
[INFO] Unable to find resource 'org.springframework:spring-oxm:jar:3.0.2.RELEASE
' in repository eviware (http://www.eviware.com/repository/maven2)
Downloading: http://repo1.maven.org/maven2/org/sprin ... -oxm/3.0.2.
RELEASE/spring-oxm-3.0.2.RELEASE.jar
[INFO] Unable to find resource 'xpp3:xpp3_min:jar:1.1.4c' in repository eviware
(http://www.eviware.com/repository/maven2)
Downloading: http://repo1.maven.org/maven2/xpp3/xpp3 ... min-1.1.4c.
jar


421K downloaded (xstream-1.3.1.jar)
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: H:\WorkBank\workspace\BroadleafCommerce\Broadl
eafCommerceProfileWeb\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 {execution: default-jar}]
[INFO] Building jar: H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommercePr
ofileWeb\target\broadleaf-profile-web-1.1.0-M3-SNAPSHOT.jar
[INFO] [antrun:run {execution: cobertura}]
[INFO] Executing tasks
[cobertura-instrument] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYR
IGHT file
[cobertura-instrument] Instrumenting 26 files to H:\WorkBank\workspace\Broadleaf
Commerce\BroadleafCommerceProfileWeb\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 26 classes.
[cobertura-instrument] Instrument time: 438ms
[INFO] Executed tasks
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceProfi
leWeb\target\broadleaf-profile-web-1.1.0-M3-SNAPSHOT.jar to C:\Documents and Set
tings\PlayBoy\.m2\repository\org\broadleafcommerce\broadleaf-profile-web\1.1.0-M
3-SNAPSHOT\broadleaf-profile-web-1.1.0-M3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceFramework
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 34 resources
Downloading: http://download.java.net/maven/1/common ... ns-codec-1
.4.pom
[INFO] Unable to find resource 'commons-codec:commons-codec:pom:1.4' in reposito
ry java.net (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/comm ... codec/1.4/
commons-codec-1.4.pom
[INFO] Unable to find resource 'commons-codec:commons-codec:pom:1.4' in reposito
ry jboss.com (http://repository.jboss.com/maven2)
Downloading: http://repository.sonatype.org/content/ ... ommons-cod
ec/commons-codec/1.4/commons-codec-1.4.pom
[INFO] Unable to find resource 'commons-codec:commons-codec:pom:1.4' in reposito
ry flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgrou
p)
Downloading: http://www.eviware.com/repository/maven ... mmons-code
c/1.4/commons-codec-1.4.pom
[INFO] Unable to find resource 'commons-codec:commons-codec:pom:1.4' in reposito
ry eviware (http://www.eviware.com/repository/maven2)
Downloading: http://repo1.maven.org/maven2/commons-c ... /1.4/commo
ns-codec-1.4.pom

Downloading: http://download.java.net/maven/1/org.ap ... commons-pa
rent-11.pom
[INFO] Unable to find resource 'org.apache.commons:commons-parent:pom:11' in rep
ository java.net (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/org/ ... mons-paren
t/11/commons-parent-11.pom
230b downloaded (commons-parent-11.pom)
Downloading: http://download.java.net/maven/1/common ... ns-codec-1
.4.jar
[INFO] Unable to find resource 'commons-codec:commons-codec:jar:1.4' in reposito
ry java.net (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/comm ... codec/1.4/
commons-codec-1.4.jar
[INFO] Unable to find resource 'commons-codec:commons-codec:jar:1.4' in reposito
ry jboss.com (http://repository.jboss.com/maven2)
Downloading: http://repository.sonatype.org/content/ ... ommons-cod
ec/commons-codec/1.4/commons-codec-1.4.jar
[INFO] Unable to find resource 'commons-codec:commons-codec:jar:1.4' in reposito
ry flex-mojos-repository (http://repository.sonatype.org/content/groups/flexgrou
p)
Downloading: http://www.eviware.com/repository/maven ... mmons-code
c/1.4/commons-codec-1.4.jar
[INFO] Unable to find resource 'commons-codec:commons-codec:jar:1.4' in reposito
ry eviware (http://www.eviware.com/repository/maven2)
Downloading: http://repo1.maven.org/maven2/commons-c ... /1.4/commo
ns-codec-1.4.jar

[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 306 source files to H:\WorkBank\workspace\BroadleafCommerce\Bro
adleafCommerceFramework\target\classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: H:\WorkBank\workspace\BroadleafCommerce\Broadl
eafCommerceFramework\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 {execution: default-jar}]
[INFO] Building jar: H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceFr
amework\target\broadleaf-framework-1.1.0-M3-SNAPSHOT.jar
[INFO] [antrun:run {execution: cobertura}]
[INFO] Executing tasks
[cobertura-instrument] Cobertura 1.8 - GNU GPL License (NO WARRANTY) - See COPYR
IGHT file
[cobertura-instrument] Instrumenting 312 files to H:\WorkBank\workspace\Broadlea
fCommerce\BroadleafCommerceFramework\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 312 classes.
[cobertura-instrument] Instrument time: 1344ms
[INFO] Executed tasks
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceFrame
work\target\broadleaf-framework-1.1.0-M3-SNAPSHOT.jar to C:\Documents and Settin
gs\PlayBoy\.m2\repository\org\broadleafcommerce\broadleaf-framework\1.1.0-M3-SNA
PSHOT\broadleaf-framework-1.1.0-M3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceFrameworkWeb
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
Downloading: http://download.java.net/maven/1/org.sp ... /spring-ao
p-3.0.2.RELEASE.jar
[INFO] Unable to find resource 'org.springframework:spring-aop:jar:3.0.2.RELEASE
' in repository java.net (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/org/ ... ring-aop/3
.0.2.RELEASE/spring-aop-3.0.2.RELEASE.jar
[INFO] Unable to find resource 'org.springframework:spring-aop:jar:3.0.2.RELEASE
' in repository jboss.com (http://repository.jboss.com/maven2)
Downloading: http://repository.sonatype.org/content/ ... rg/springf
ramework/spring-aop/3.0.2.RELEASE/spring-aop-3.0.2.RELEASE.jar
[INFO] Unable to find resource 'org.springframework:spring-aop:jar:3.0.2.RELEASE
' in repository flex-mojos-repository (http://repository.sonatype.org/content/gr
oups/flexgroup)
Downloading: http://www.eviware.com/repository/maven ... ork/spring
-aop/3.0.2.RELEASE/spring-aop-3.0.2.RELEASE.jar
[INFO] Unable to find resource 'org.springframework:spring-aop:jar:3.0.2.RELEASE
' in repository eviware (http://www.eviware.com/repository/maven2)
Downloading: http://repo1.maven.org/maven2/org/sprin ... -aop/3.0.2.
RELEASE/spring-aop-3.0.2.RELEASE.jar

[INFO] [compiler:compile {execution: default-compile}]
[INFO] Compiling 56 source files to H:\WorkBank\workspace\BroadleafCommerce\Broa
dleafCommerceFrameworkWeb\target\classes
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Compiling 1 source file to H:\WorkBank\workspace\BroadleafCommerce\Broadl
eafCommerceFrameworkWeb\target\test-classes
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: H:\WorkBank\workspace\BroadleafCommerce\Broadl
eafCommerceFrameworkWeb\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.094 sec

Results :

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

[INFO] [jar:jar {execution: default-jar}]
[INFO] Building jar: H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceFr
ameworkWeb\target\broadleaf-framework-web-1.1.0-M3-SNAPSHOT.jar
[INFO] [antrun:run {execution: cobertura}]
[INFO] Executing tasks
[cobertura-instrument] java.lang.NoClassDefFoundError: net/sourceforge/cobertura
/instrument/Main
[cobertura-instrument] Exception in thread "main"
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Error instrumenting classes. See messa
ges above.

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException ha
s occured: Error instrumenting classes. See messages above.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
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:592)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException
has occured: Error instrumenting classes. 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.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
... 17 more
Caused by: Error instrumenting classes. See messages above.
at net.sourceforge.cobertura.ant.InstrumentTask.execute(InstrumentTask.j
ava:185)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
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:592)
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)
... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14 minutes 17 seconds
[INFO] Finished at: Thu Jun 03 15:26:09 IST 2010
[INFO] Final Memory: 38M/254M
[INFO] ------------------------------------------------------------------------
H:\WorkBank\workspace\BroadleafCommerce>


It seems that there is some problem with "cobertura" jar file. What do i need to do now. Eclipse is now totally out of scene. Pls tell if I am doing wrong something somewhere.

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Thu Jun 03, 2010 6:02 am
by logicallimit
I ran the install command with not to execute test cases and build succeeded. But In between i replaced the cobertura 1.8 jar with the 1.9 version. and ran the install command (with test case execution). it proceeded from the point it ewas failing earlier as shown in my last post. But failed again at some build error. Then I again replaced 1.9 jar with 1.8 and copied complete cobertura 1.8 folder downloaded from the cobertura site into ".m2\repository\cobertura\cobertura\1.8" folder and run the "mvn -Dmaven.test.skip=true install" command. and it succeeded.

Don't know what is exactly happening but this process if installation has to be made really a cakewalk. "Run one command and it's done , no downloading no user prompt". ofBiz was really a cakewalk for me.
Lets see what happens if I run this command from within eclipse now. Because dats wat i really need to achieve.

Keeping my fingers crossed


.
..
...
3101K downloaded (xalan-2.7.1.jar)
Downloading: http://download.java.net/maven/1/xalan/ ... -2.7.1.jar
[INFO] Unable to find resource 'xalan:serializer:jar:2.7.1' in repository java.n
et (http://download.java.net/maven/1)
Downloading: http://repository.jboss.com/maven2/xala ... /serialize
r-2.7.1.jar
271K downloaded (serializer-2.7.1.jar)
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Not compiling test sources
[INFO] [surefire:test {execution: default-test}]
[INFO] Tests are skipped.
[INFO] [war:war {execution: default-war}]
[INFO] Packaging webapp
[INFO] Assembling webapp[broadleaf-admin] in [H:\WorkBank\workspace\BroadleafCom
merce\BroadleafCommerceAdmin\target\broadleafadmin]
[INFO] Processing war project
[INFO] Copying webapp resources[H:\WorkBank\workspace\BroadleafCommerce\Broadlea
fCommerceAdmin\src\main\webapp]
[INFO] Webapp assembled in[6391 msecs]
[INFO] Building war: H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceAd
min\target\broadleafadmin.war
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceAdmin
\target\broadleafadmin.war to C:\Documents and Settings\PlayBoy\.m2\repository\o
rg\broadleafcommerce\broadleaf-admin\1.1.0-M3-SNAPSHOT\broadleaf-admin-1.1.0-M3-
SNAPSHOT.war
[INFO]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] BroadleafCommerce ..................................... SUCCESS [1.469s]
[INFO] BroadleafCommerceProfile .............................. SUCCESS [1.844s]
[INFO] BroadleafCommerceProfileWeb ........................... SUCCESS [0.281s]
[INFO] BroadleafCommerceFramework ............................ SUCCESS [0.391s]
[INFO] BroadleafCommerceFrameworkWeb ......................... SUCCESS [0.203s]
[INFO] BroadleafCommerceUSPSSchemas .......................... SUCCESS [4.719s]
[INFO] BroadleafCommerceUSPS ................................. SUCCESS [0.156s]
[INFO] BroadleafCommerceCyberSourceAPI ....................... SUCCESS [36.141s]

[INFO] BroadleafCommerceCyberSource .......................... SUCCESS [0.171s]
[INFO] BroadleafCommerceIntegrationTests ..................... SUCCESS [0.297s]
[INFO] BroadleafCommerceDemo ................................. SUCCESS [3:15.782
s]
[INFO] BroadleafCommerceAdmin ................................ SUCCESS [6:12.281
s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10 minutes 14 seconds
[INFO] Finished at: Thu Jun 03 16:17:25 IST 2010
[INFO] Final Memory: 42M/254M
[INFO] ------------------------------------------------------------------------
H:\WorkBank\workspace\BroadleafCommerce>

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Thu Jun 03, 2010 12:06 pm
by logicallimit
This thing just doesn't work. It failed in the command "ant launch-demo".


H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceDemo\build.xml:99: The
following error occurred while executing this line:
H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceDemo\build.xml:26: E:\I
T RelatedOpensourceApacheMavenapache-maven-2.2.1\boot not found.

Total time: 3 seconds
H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceDemo>

The boot folder is already present at that location "E:\IT Related\Opensource\Apache\Maven\apache-maven-2.2.1\boot" .
On cmd prompt it prints location as " E:\IT RelatedOpensourceApacheMavenapache-maven-2.2.1\boot " Don't know if it has eaten up "\" while parsing the path or it's only printing so.

I think i gotta leave this product here.

Some suggestions to the owners of this product:

1. Please do validate the installation steps on freshly installed system for windows platform at least with all prerequisite software freshly installed. Expand each installation step to more in depth and validate each step.

2. Please make an installation manual and give it to a fresh collage pass out graduate. Ask him to follow the guide and see if it runs successfully.

3. Provide all the required files with the build so that not even a single byte is required to be downloaded from internet.

4. Very few people have worked with code build technologies like maven /ant. I have worked on lot of J2EE projects but never used it and we always built our releases from simple eclipse. We created jar files war files from eclipse and deployed on production without any problem anytime related to anything.

5. It would be great if these kind of products are available in as simple format as possible. One or two web projects, 2-3 business layer java projects and then DB layer java projects, if required some common utility java projects. Include projects in one another whereever required and start working on ur job in hand. These build technologies are only complicating the otherwise simple processes.(My personal opinion). :(

This looked to me a very promising project to use but unfortunately I have to leave it here. A lot of people are facing installation problem as can be seen from the queries posted in here on the same. Pls do something on it !!!!!!!!!!!!! If you really want the community to grow, you need to really work hard on this setup and installation front. OfBiz setup was a cakewalk for me. on first attempt it sailed through perfectly.

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Mon Jun 07, 2010 10:54 am
by jefffischer
Thanks for your suggestions - we're always interested in making the product easier to get up and running. We'll definitely consider the different items you mention.

In case someone else come across similar issues, I thought I would respond to the most recent problem you were having. The path name you showed for the maven installation was indeed missing the path separator characters. This is a known problem with ANT on Windows machines when the path is represented using backward slashes. Java considers the back slash to indicate a special character (i.e. \n for a new line). Therefore, when ANT reads in this path from build.properties, the back slashes are removed. To fix, you would need to replace the backslash with either double back slashes (\\), or a single forward slash.

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Wed Jun 09, 2010 4:08 pm
by logicallimit
I'm still trying to get this thing run but not succeeded yet. I changed the properties file to carry double slashes.
I'm getting a new error now. I run this time from command prompt. I've also attached
full install log fyr.

My System Env details:
Apache Maven 2.2.1 (r801777; 2009-08-07 00:46:01+0530)
Java version: 1.5.0_22
Java home: C:\Program Files\Java\jdk1.5.0_22\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86"
Family: "windows"

Error stack trace:

H:\WorkBank\workspace\BroadleafCommerce>mvn -e install
+ Error stacktraces are turned on.
[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] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [site:attach-descriptor {execution: default-attach-descriptor}]
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\WorkBank\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] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 30 resources
[WARNING] While downloading opensymphony:quartz:1.6.1
This artifact has been relocated to org.opensymphony.quartz:quartz:1.6.1.


[WARNING] While downloading ant:ant:1.7.0
This artifact has been relocated to org.apache.ant:ant:1.7.0.


[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: H:\WorkBank\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 {execution: default-jar}]
[INFO] [antrun:run {execution: cobertura}]
[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:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceProfile\target\instrumented
[cobertura-instrument] [ WARN] 02:25:24 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: 1813ms
[INFO] Executed tasks
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceProfile\target\broadleaf-profile-1.1.0-M3-SNAPSHOT.jar to C:\Documents and Settings\PlayBoy\.m2\repository\org\broadleafcomme
rce\broadleaf-profile\1.1.0-M3-SNAPSHOT\broadleaf-profile-1.1.0-M3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceProfileWeb
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[WARNING] While downloading jstl:jstl:1.1.2
This artifact has been relocated to javax.servlet:jstl:1.1.2.


[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: H:\WorkBank\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 {execution: default-jar}]
[INFO] [antrun:run {execution: cobertura}]
[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:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceProfileWeb\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 26 classes.
[cobertura-instrument] Instrument time: 422ms
[INFO] Executed tasks
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceProfileWeb\target\broadleaf-profile-web-1.1.0-M3-SNAPSHOT.jar to C:\Documents and Settings\PlayBoy\.m2\repository\org\broadle
afcommerce\broadleaf-profile-web\1.1.0-M3-SNAPSHOT\broadleaf-profile-web-1.1.0-M3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceFramework
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 34 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: H:\WorkBank\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 {execution: default-jar}]
[INFO] [antrun:run {execution: cobertura}]
[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:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceFramework\target\instrumented
[cobertura-instrument] Cobertura: Saved information on 312 classes.
[cobertura-instrument] Instrument time: 2204ms
[INFO] Executed tasks
[INFO] [install:install {execution: default-install}]
[INFO] Installing H:\WorkBank\workspace\BroadleafCommerce\BroadleafCommerceFramework\target\broadleaf-framework-1.1.0-M3-SNAPSHOT.jar to C:\Documents and Settings\PlayBoy\.m2\repository\org\broadleafc
ommerce\broadleaf-framework\1.1.0-M3-SNAPSHOT\broadleaf-framework-1.1.0-M3-SNAPSHOT.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building BroadleafCommerceFrameworkWeb
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO] [compiler:compile {execution: default-compile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 0 resource
[INFO] [compiler:testCompile {execution: default-testCompile}]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: H:\WorkBank\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.172 sec

Results :

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

[INFO] [jar:jar {execution: default-jar}]
[INFO] [antrun:run {execution: cobertura}]
[INFO] Executing tasks
[cobertura-instrument] java.lang.NoClassDefFoundError: net/sourceforge/cobertura/instrument/Main
[cobertura-instrument] Exception in thread "main"
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An Ant BuildException has occured: Error instrumenting classes. See messages above.

[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException has occured: Error instrumenting classes. See messages above.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException has occured: Error instrumenting classes. See messages above.
at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:131)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:98)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: Error instrumenting classes. See messages above.
at net.sourceforge.cobertura.ant.InstrumentTask.execute(InstrumentTask.java:185)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
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.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:118)
... 20 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17 seconds
[INFO] Finished at: Thu Jun 10 02:25:32 IST 2010
[INFO] Final Memory: 25M/254M
[INFO] ------------------------------------------------------------------------
H:\WorkBank\workspace\BroadleafCommerce>



Properties files are having following values:
build.properties - BroadleafCommerceBroadleafCommerceDemo

# Flex SDK Home
#flex.sdk.dir=/Users/jfischer/Downloads/flex_sdk_3
flex.sdk.dir=E\\:IT Related\\IDE\\Adobe\\flex_sdk_4.0.0.14159
appserver.home=C\\:\\Program Files\\Apache Software Foundation\\Tomcat 6.0
deploy.path=C\\:\\Program Files\\Apache Software Foundation\\Tomcat 6.0\\webapps
mysql.db.url=jdbc:mysql:////ggnhmp129:3306//broadleafcommerce
mysql.db.user=root
mysql.db.pw=root_1admin
------------------------------------

build.properties - BroadleafCommerceDemo

#maven.home=/Developer/Java/apache-maven-2.0.9
maven.home=E\\:IT Related\\Opensource\\Apache\\Maven\\apache-maven-2.2.1


Pls tell if i am missing on something here...

Re: Broadleaf - Ant BuildException - Error instrumenting classes

Posted: Sat Jun 12, 2010 8:57 am
by logicallimit
Can we setup this project in eclipse as a web and supporting java project without using ant or maven?
If somebody has done it , please let me know the steps to do that.