Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-19 Thread Ramindu De Silva
Hi Jerad, Thank you for your response :) Regards. On Fri, Sep 19, 2014 at 9:57 AM, Jerad Rutnam je...@wso2.com 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

Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-19 Thread Roshan Wijesena
Hi Ramindu, add this plugin to your pom file. plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.4.2/version configuration suiteXmlFiles

Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-19 Thread Ramindu De Silva
Hi Roshan, Thank you for your response. Its working now :) Regards. On Fri, Sep 19, 2014 at 11:42 AM, Roshan Wijesena ros...@wso2.com wrote: Hi Ramindu, add this plugin to your pom file. plugin groupIdorg.apache.maven.plugins/groupId

Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-19 Thread Rajakrishna Reddy
...@wso2.com CC: dev@wso2.org 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 ros...@wso2.com wrote: Hi Ramindu, add this plugin to your pom

Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-19 Thread Ramindu De Silva
using command prompt.* Thanks Regards, Rajakrishna Reddy, +91 95000 88012 -- Date: Fri, 19 Sep 2014 11:54:03 +0530 From: ramin...@wso2.com To: ros...@wso2.com CC: dev@wso2.org Subject: Re: [Dev] Error when maven install using eclipse (writing a Carbon

[Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-18 Thread Ramindu De Silva
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

Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-18 Thread Kasun Dissanayake
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/

Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-18 Thread Amal Gunatilake
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

Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-18 Thread Ramindu De Silva
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

Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-18 Thread Amal Gunatilake
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

Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-18 Thread Inosh Perera
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 am...@wso2.com wrote: Hi Ramindu, Since your project got built in a different

Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-18 Thread Ramindu De Silva
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 ino...@wso2.com wrote: Hi

Re: [Dev] Error when maven install using eclipse (writing a Carbon component)

2014-09-18 Thread Jerad Rutnam
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 ramin...@wso2.com wrote: Hi all, I installed maven again and did a build maven from the command