Hi Bin. It might be because you haven't set M2_REPO veriable in Eclipse.
To set that, right click on one of the projects you have issues, then select Build Path -> Configure Buildpath Then it will open a Dialog with multiple Tabs and switch to Libraries Tab there. Click on Add Variable and it will open another dialog. Select Configure Variable there.It will open another dialog. There select New and in the next Dialog Box, provide the Name as M2_REPO and use Folder button to point to your local M2_repo/repository location and click on finish. It will ask you to apply this for all the workspace projects and Say, yes to that. After some time it will be work and your Build error will be resolved. Thanks and Regards, Harshana On Fri, Mar 15, 2013 at 12:35 PM, Bin Rong <[email protected]> wrote: > Hi Harshana, > > Thanks for the clarification. > > I followed your steps, build without too much trouble. However, when I > import the converted kernel project into dev studio as a WSO2 project, I > had many Java problems, and most of them seems to be related to Axis2. You > can see more details from the attached screenshot. > > Could you please have a look at it? In addition, it's just me or others > have the same issue. > > Thanks in advance. > > > > On Thu, Mar 14, 2013 at 2:14 AM, Harshana Martin <[email protected]>wrote: > >> Hi Bin, >> >> Here are the steps i use. >> >> 1. Setup Maven 3 (Maven 3.0.3 or later) >> 2. Checkout the Kernel from >> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.0.0/ >> 3. Start building Kernel checkout with mvn clean install (This is >> supposed to run smoothly without any issue. If there is please report. We >> will fix it) >> 4. Do a mvn eclipse:eclipse for Kernel >> 5. Import to Dev Studio >> >> We don't need to build Orbit because orbit bundles are already been >> deployed to WSO2 Nexus repo. So during the build, they will be downloaded >> from it. >> >> Hope this helps! >> >> Thanks and Regards, >> Harshana >> >> >> >> On Wed, Mar 13, 2013 at 9:31 PM, Bin Rong <[email protected]> wrote: >> >>> Hi Eranda, >>> >>> I tried to run "mvn clean install" for orbit, however, I got the >>> following error: >>> >>> >>> [INFO] Scanning for projects... >>> [INFO] >>> ------------------------------------------------------------------------ >>> [ERROR] BUILD FAILURE >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Project 'antlr.wso2:antlr' is duplicated in the reactor >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Trace >>> org.apache.maven.BuildFailureException: Project 'antlr.wso2:antlr' is >>> duplicated >>> in the reactor >>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:300) >>> 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:597) >>> 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.project.DuplicateProjectException: Project ' >>> antlr.ws >>> o2:antlr' is duplicated in the reactor >>> at >>> org.apache.maven.project.ProjectSorter.<init>(ProjectSorter.java:93) >>> at >>> org.apache.maven.execution.ReactorManager.<init>(ReactorManager.java: >>> 99) >>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:288) >>> ... 11 more >>> [INFO] >>> ------------------------------------------------------------------------ >>> [INFO] Total time: < 1 second >>> [INFO] Finished at: Wed Mar 13 23:56:28 CST 2013 >>> [INFO] Final Memory: 6M/242M >>> [INFO] >>> ------------------------------------------------------------------------ >>> >>> >>> I checked the project settings, there are two versions of antlr existed, >>> they do differ by their version number. Could you please have a look? >>> >>> FYI, I checked out from >>> https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.0.0/, and I am >>> using jdk 1.6.43 and Maven 2.2.1. >>> >>> Thanks in advance. >>> >>> >>> On Wed, Mar 13, 2013 at 3:11 PM, Eranda Sooriyabandara >>> <[email protected]>wrote: >>> >>>> HI Bin, >>>> Sorry for the broken link, I was manually created it. >>>> Your procedure is correct for all bundles which is release in carbon >>>> 4.0.0. But if you need any other version you need to build the patch >>>> release according to that version. >>>> e.g. If you need to update 4.0.5 versioned bundle then you should build >>>> patch-releases/4.0.5. >>>> >>>> thanks >>>> Eranda >>>> >>>> >>>> On Wed, Mar 13, 2013 at 12:05 PM, Bin Rong <[email protected]>wrote: >>>> >>>>> Hi Eranda and Vijitha, >>>>> >>>>> Thanks for the prompt reply. >>>>> >>>>> Just want to make sure we are on the same page. The orbit URL you gave >>>>> us is broken. What I need to do now are: >>>>> 1. Check out orbit from >>>>> https://svn.wso2.org/repos/wso2/carbon/orbit/branches/4.0.0/, run >>>>> "mvn clean install" to build orbit >>>>> 2. Check out kernel from >>>>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.0.0/, run >>>>> "mvn clean install" to build kernel >>>>> 3. Then run "maven eclipse:eclipse" to convert them to eclipse >>>>> projects. >>>>> >>>>> >>>>> Am I doing the right thing? >>>>> >>>>> Thanks in advance. >>>>> >>>>> >>>>> On Wed, Mar 13, 2013 at 11:44 AM, Eranda Sooriyabandara < >>>>> [email protected]> wrote: >>>>> >>>>>> Hi Bin, >>>>>> First you need to try building the kernel. To do that you need to >>>>>> check out orbit from >>>>>> https://svn.wso2.org/repos/wso2/carbon/kernel/orbit/4.0.0/ and build >>>>>> it. Then there will be all the dependencies you need in your local maven >>>>>> repository and will be able to import to eclipse using vijitha's command >>>>>> at >>>>>> no time. >>>>>> >>>>>> thanks >>>>>> Eranda >>>>>> >>>>>> >>>>>> On Wed, Mar 13, 2013 at 8:00 AM, Bin Rong <[email protected]>wrote: >>>>>> >>>>>>> Hi Vijitha, >>>>>>> >>>>>>> Many thanks for your reply. I tried the approach you pointed out to >>>>>>> convert Maven project into eclipse project, then tried to import into >>>>>>> Developer Studio 3.0. >>>>>>> >>>>>>> However, there are more than 20,000 dependencies problem. Tried to >>>>>>> manually add some of the missing libraries, but it's just too tedious. >>>>>>> >>>>>>> Just wondering how you guys do the development within WSO2, or is >>>>>>> there any developer guide/manual? >>>>>>> >>>>>>> We love the WSO2 concept and product, but it seems the learning >>>>>>> curve is a little bit deep. >>>>>>> >>>>>>> Thanks very much for your time and help. >>>>>>> >>>>>>> >>>>>>> On Mon, Feb 25, 2013 at 10:02 PM, Vijitha Kumara >>>>>>> <[email protected]>wrote: >>>>>>> >>>>>>>> Hi Bin, >>>>>>>> >>>>>>>> On Thu, Feb 21, 2013 at 7:51 PM, Bin Rong <[email protected]>wrote: >>>>>>>> >>>>>>>>> Hi there, >>>>>>>>> >>>>>>>>> I tried to import WSO2 kernel as Maven project into Eclipse, >>>>>>>>> however, there are all sorts of build path problems, in particular, >>>>>>>>> couldn't locate the necessary libraries. >>>>>>>>> >>>>>>>>> FYI, I use Spring STS with m2eclipse plugin, and checkout source >>>>>>>>> code from >>>>>>>>> https://svn.wso2.org/repos/wso2/carbon/kernel/branches/4.0.0/. >>>>>>>>> >>>>>>>>> Could anyone point me to a developer guide or any documentation of >>>>>>>>> how to develop/extend WSO2 kernel, and how to add/remove bundles when >>>>>>>>> it's >>>>>>>>> necessary. >>>>>>>>> >>>>>>>> >>>>>>>> You'd need to point to a specific patch release pom files >>>>>>>> specifically if you intend to work on a such, or the pom file inside >>>>>>>> 4.0.0 >>>>>>>> for the initial 4.0.0 release. You can run "maven eclipse:eclipse" to >>>>>>>> convert them to eclipse projects. >>>>>>>> >>>>>>>> >>>>>>>> Regards, >>>>>>>> Vijitha. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>>> >>>>>>>>> Thanks in advance. >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Dev mailing list >>>>>>>>> [email protected] >>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Vijitha Kumara >>>>>>>> Senior Software Engineer; WSO2, Inc.; http://wso2.com/ >>>>>>>> email: [email protected] >>>>>>>> m: +1 408 874 5622 >>>>>>>> >>>>>>>> Lean . Enterprise . Middleware >>>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Dev mailing list >>>>>>> [email protected] >>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Eranda Sooriyabandara >>>>>> *Software Engineer; >>>>>> Integration Technologies Team; >>>>>> WSO2 Inc.; http://wso2.com >>>>>> >>>>>> * >>>>>> * >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> *Eranda Sooriyabandara >>>> *Software Engineer; >>>> Integration Technologies Team; >>>> WSO2 Inc.; http://wso2.com >>>> >>>> * >>>> * >>>> >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> >> Harshana Martin >> Senior Software Engineer >> Member, Management Committee - Development Technologies >> WSO2 Inc. : http://wso2.com >> >> Mobile: +94 775 998 115 >> Profile: https://www.google.com/profiles/harshana05 >> Blog: http://harshana05.blogspot.com >> Twitter: http://twitter.com/harshana05 >> >> > -- Harshana Martin Senior Software Engineer Member, Management Committee - Development Technologies WSO2 Inc. : http://wso2.com Mobile: +94 775 998 115 Profile: https://www.google.com/profiles/harshana05 Blog: http://harshana05.blogspot.com Twitter: http://twitter.com/harshana05
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
