Hi Roshan/Ramindu, My issue is also similar to eclipse maven plugins... so I'm using this thread to post my issue. Eclipse is showing an error message when I tried to import one of the modules of AM. Error is as given below: Multiple annotations found at this line: - Plugin execution not covered by lifecycle configuration: org.apache.felix:maven-scr-plugin:1.7.2:scr (execution: generate-scr-scrdescriptor, phase: process-classes) - Plugin execution not covered by lifecycle configuration: org.jvnet.maven.incrementalbuild:incremental-build-plugin:1.3:incremental-build (execution: default, phase: validate) Can you please help me to get rid of this and to build the project successfully. Note: I'm able to build the same project using command prompt.
Thanks & Regards,Rajakrishna Reddy,+91 95000 88012 Date: Fri, 19 Sep 2014 11:54:03 +0530 From: [email protected] To: [email protected] CC: [email protected] Subject: Re: [Dev] Error when "maven install" using eclipse (writing a Carbon component) Hi Roshan, Thank you for your response. Its working now :) Regards. On Fri, Sep 19, 2014 at 11:42 AM, Roshan Wijesena <[email protected]> wrote: Hi Ramindu, add this plugin to your pom file. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.4.2</version> <configuration> <suiteXmlFiles> <suiteXmlFile>testng.xml</suiteXmlFile> <forkMode>always</forkMode> </suiteXmlFiles> </configuration> </plugin> Regards Roshan. On Fri, Sep 19, 2014 at 11:36 AM, Ramindu De Silva <[email protected]> wrote: Hi Jerad, Thank you for your response :) Regards. On Fri, Sep 19, 2014 at 9:57 AM, Jerad Rutnam <[email protected]> wrote: Hi Ramindu, Did you try "maven clean" your project, before "maven install"? and try to do a "project > clean" as well (on eclipse top menu). Regards, On Thu, Sep 18, 2014 at 5:47 PM, Ramindu De Silva <[email protected]> wrote: Hi all, I installed maven again and did a build maven from the command prompt. And the .jar file created successfully. But I'm Still getting the same error when I'm doing the build maven from eclipse though. Regards. On Thu, Sep 18, 2014 at 5:16 PM, Inosh Perera <[email protected]> wrote: Hi Ramindu, You can go to .m2 folder which is in home/[user] and find org/apache/maven/plugin/ and delete surefire folder. Then try building again. Regards, Inosh On Thu, Sep 18, 2014 at 5:11 PM, Amal Gunatilake <[email protected]> wrote: Hi Ramindu, Since your project got built in a different computer, there is a possibility that your m2 repository is corrupt. If you could do a clean repo and do the build then, there is a chance you can get the build right. Thank you & Best regards, Amal Gunatilake Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware On Thu, Sep 18, 2014 at 5:06 PM, Ramindu De Silva <[email protected]> wrote: 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 <[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] 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 | MiddlewareTel - +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: [email protected] mob: +94772339350 mob: +94782731766 _______________________________________________ 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 -- Inosh PereraSoftware Engineer, WSO2 Inc.Tel: 0785293686 -- Ramindu De Silva Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: [email protected] mob: +94772339350 mob: +94782731766 _______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev -- Jerad Rutnam | Software Engineer - UIWSO2, Inc. www.wso2.com Email: [email protected] -- Ramindu De Silva Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: [email protected] mob: +94772339350 mob: +94782731766 _______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev -- Roshan Wijesena. Senior Software Engineer-WSO2 Inc. Mobile: +94752126789 Email: [email protected] WSO2, Inc. : wso2.com lean.enterprise.middleware. -- Ramindu De Silva Software Engineering Intern WSO2 Inc.; http://wso2.com lean.enterprise.middleware email: [email protected] mob: +94772339350 mob: +94782731766 _______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
pom.xml
Description: XML document
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
