Hi Ramindu, Are you using any integration tests running on when building the component? If not I think the pom has configured to run the maven sure fire plug-in without configuring the dependency. So either you need to remove the surefire plug-in if it's not necessary to build the component or you need to configure the surefire dependency.
Thank you & Best regards, *Amal Gunatilake* Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware On Thu, Sep 18, 2014 at 4:40 PM, Kasun Dissanayake <[email protected]> wrote: > Hi Ramindu > > Try it using -Dmaven.test.skip=true > > On Thu, Sep 18, 2014 at 4:35 PM, Ramindu De Silva <[email protected]> > 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: [email protected] <[email protected]> >> mob: +94772339350 >> mob: +94782731766 >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> 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/ > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > >
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
