Hi Kasun, I just tried your way also, then I ran my project in a different computer and maven build worked. Something wrong with my maven installation ?
Hi Amal, No im not suing any integration tests. I ran without the surefire plug-in at first, but when i got the error when building maven i googled the error and did the change :/ Regards. On Thu, Sep 18, 2014 at 4:40 PM, Kasun Dissanayake <kas...@wso2.com> wrote: > Hi Ramindu > > Try it using -Dmaven.test.skip=true > > On Thu, Sep 18, 2014 at 4:35 PM, Ramindu De Silva <ramin...@wso2.com> > wrote: > >> a problem occurred to me when I was trying to code according to the >> following link. >> >> http://wso2.com/library/tutorials/2014/03/how-to-write-a-wso2-carbon-component/ >> >> After creating all the pom.xml files then when doing the "maven build" >> the following errors occurs. >> >> >> >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on >> project org.wso2.carbon.student.mgt: Execution default-test of goal >> org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: Unable to >> load the mojo 'test' in the plugin >> 'org.apache.maven.plugins:maven-surefire-plugin:2.17'. A required class is >> missing: org/apache/maven/plugin/surefire/SurefireReportParameters >> [ERROR] ----------------------------------------------------- >> [ERROR] realm = >> plugin>org.apache.maven.plugins:maven-surefire-plugin:2.17 >> [ERROR] strategy = >> org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy >> [ERROR] urls[0] = >> file:/home/ramindu/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.17/maven-surefire-plugin-2.17.jar >> [ERROR] urls[1] = >> file:/home/ramindu/.m2/repository/org/apache/maven/surefire/maven-surefire-common/2.17/maven-surefire-common-2.17.jar >> [ERROR] urls[2] = >> file:/home/ramindu/.m2/repository/org/apache/maven/surefire/surefire-api/2.17/surefire-api-2.17.jar >> [ERROR] urls[3] = >> file:/home/ramindu/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-api-2.0.9.jar >> [ERROR] urls[4] = >> file:/home/ramindu/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar >> [ERROR] urls[5] = >> file:/home/ramindu/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.2/maven-plugin-annotations-3.2.jar >> [ERROR] Number of foreign imports: 1 >> [ERROR] import: Entry[import from realm >> ClassRealm[project>org.wso2.carbon:org.wso2.carbon.student.mgt:4.2.0, >> parent: ClassRealm[maven.api, parent: null]]] >> [ERROR] >> [ERROR] -----------------------------------------------------: >> org.apache.maven.plugin.surefire.SurefireReportParameters >> [ERROR] -> [Help 1] >> [ERROR] >> [ERROR] To see the full stack trace of the errors, re-run Maven with the >> -e switch. >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> [ERROR] >> [ERROR] For more information about the errors and possible solutions, >> please read the following articles: >> [ERROR] [Help 1] >> http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException >> >> >> Regards. >> -- >> *Ramindu De Silva* >> Software Engineering Intern >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> email: ramin...@wso2.com <sanj...@wso2.com> >> mob: +94772339350 >> mob: +94782731766 >> >> >> _______________________________________________ >> Dev mailing list >> Dev@wso2.org >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Kasun Dissanayake > Software Engineer > WSO2 Inc. > Lean | Enterprise | Middleware > Tel - +94 77 086 2860 > Skype - kasun.dissanayake4 > LinkedIn - lk.linkedin.com/in/kasundis/ > -- *Ramindu De Silva* Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: ramin...@wso2.com <sanj...@wso2.com> mob: +94772339350 mob: +94782731766
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev