On Sat, Dec 14, 2013 at 2:09 PM, Afkham Azeez <[email protected]> wrote:
> > > > On Sat, Dec 14, 2013 at 11:21 AM, Kasun Gajasinghe <[email protected]>wrote: > >> Hi Sagara, >> >> >> On Sat, Dec 14, 2013 at 2:52 AM, Sagara Gunathunga <[email protected]>wrote: >> >>> >>> >>> >>> On Fri, Dec 13, 2013 at 11:27 AM, Sagara Gunathunga <[email protected]>wrote: >>> >>>> >>>> >>>> Following parent POM entry has been added to the top level sample POM >>>> file that cause this issue ( we didn't have this entry on earlier versions) >>>> . I think top level sample POM file should not refer to any other parents >>>> POMs. >>>> >>>> <parent> >>>> <groupId>org.wso2.appserver</groupId> >>>> <artifactId>wso2appserver-samples-parent</artifactId> >>>> <version>5.2.1</version> >>>> </parent> >>>> >>> >>> Supun/Kasun, >>> >>> Could you please elaborate why we need to introduce another >>> wso2appserver-samples-parent pom here ? Last releases we didn't have this, >>> if you are not trying to solve a specific problem I just like to get rid of >>> this POM file so that "wso2as-5.2.1/samples/pom.xml" will be the ultimate >>> parent for all the samples . >>> >>> >> I will see to add the poms to nexus and see whether we can solve the >> issue. Adding the wso2appserver-samples-parent pom as the parent of samples >> pom has meant that all the parent poms up to the platform has been chainly >> linked together which is a mess! >> >> I'm actually against introducing parent poms to samples. :) I'm not sure >> how this got added to the samples though. As I see, some of the sample >> improvements we did in 5.2.0 with regard to parent poms are also missing in >> 5.2.1. :( >> > > Yes, please don't add parents to sample POMs, and better yet, don't use > Maven for building samples. Use Ant. Maven is too bulky & is generally > messy. Building samples with Maven may require a whole lot of things being > downloaded, if the user is not a Maven user. > > +1. We already have ant scripts for each sample too. > >> >> >> >>> Thanks ! >>> >>> >>>> >>>> >>>> Corrected POM file is attached here, please replace >>>> "wso2as-5.2.1/samples/pom.xml" file and this will solve your issue. >>>> >>>> >>>> Thanks ! >>>> >>>> >>>> >>>> >>>> On Fri, Dec 13, 2013 at 10:52 AM, Sagara Gunathunga <[email protected]>wrote: >>>> >>>>> >>>>> >>>>> >>>>> On Fri, Dec 13, 2013 at 10:42 AM, Afkham Azeez <[email protected]> wrote: >>>>> >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Dec 13, 2013 at 11:08 PM, Afkham Azeez <[email protected]>wrote: >>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On Fri, Dec 13, 2013 at 11:06 PM, Sagara Gunathunga <[email protected] >>>>>>> > wrote: >>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On Fri, Dec 13, 2013 at 10:34 AM, Afkham Azeez <[email protected]>wrote: >>>>>>>> >>>>>>>>> Looks like the pom files in the sample directories are pointing to >>>>>>>>> invalid parents. Please take a look at the samples/pom.xml file. >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> It seems we have missed some other sample issues as well >>>>>>>> https://wso2.org/jira/browse/WSAS-1641 :( >>>>>>>> >>>>>>> >>>>>>> So even basic testing of samples is not before releasing? No >>>>>>> automated tests that cover all the samples? >>>>>>> >>>>>> >>>>>> If the POMs are in error, please provide me with the correct POMs. I >>>>>> need to try out some stuff urgently. >>>>>> >>>>> >>>>> Could you please try with DevS JAX-RS wizard for the time being ? it's >>>>> easy and quicker. As I'm in middle of a workshop can't attend to fix POM >>>>> file myself for next few hours. >>>>> >>>>> Thanks ! >>>>> >>>>>> >>>>>> >>>>>>> >>>>>>>> Thanks ! >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On Fri, Dec 13, 2013 at 10:58 PM, Afkham Azeez <[email protected]>wrote: >>>>>>>>> >>>>>>>>>> I downloaded AS 5.2.1 and tried to build the samples. I get the >>>>>>>>>> following error. >>>>>>>>>> >>>>>>>>>> [INFO] Scanning for projects... >>>>>>>>>> >>>>>>>>>> [ERROR] The build could not read 1 project -> [Help 1] >>>>>>>>>> >>>>>>>>>> [ERROR] >>>>>>>>>> >>>>>>>>>> [ERROR] The project org.wso2.appserver:jaxrs_basic:5.2.1 >>>>>>>>>> (/Users/azeez/software/wso2as-5.2.1/samples/Jaxws-Jaxrs/jaxrs_basic/pom.xml) >>>>>>>>>> has 1 error >>>>>>>>>> >>>>>>>>>> [ERROR] Non-resolvable parent POM for >>>>>>>>>> org.wso2.appserver:wso2appserver-samples:5.2.1: Failure to find >>>>>>>>>> org.wso2.appserver:wso2appserver-samples-parent:pom:5.2.1 in >>>>>>>>>> http://repo.maven.apache.org/maven2 was cached in the local >>>>>>>>>> repository, resolution will not be reattempted until the update >>>>>>>>>> interval of >>>>>>>>>> central has elapsed or updates are forced and 'parent.relativePath' >>>>>>>>>> points >>>>>>>>>> at wrong local POM @ org.wso2.appserver:wso2appserver-samples:5.2.1, >>>>>>>>>> /Users/azeez/software/wso2as-5.2.1/samples/pom.xml, line 21, column >>>>>>>>>> 13 -> >>>>>>>>>> [Help 2] >>>>>>>>>> >>>>>>>>>> [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/ProjectBuildingException >>>>>>>>>> >>>>>>>>>> [ERROR] [Help 2] >>>>>>>>>> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> Also, >>>>>>>>>> http://docs.wso2.org/display/AS521/Building+and+Running+JAX-RS+Samples, >>>>>>>>>> has several minor mistakes >>>>>>>>>> >>>>>>>>>> -- >>>>>>>>>> *Afkham Azeez* >>>>>>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com >>>>>>>>>> Member; Apache Software Foundation; http://www.apache.org/ >>>>>>>>>> * <http://www.apache.org/>* >>>>>>>>>> *email: **[email protected]* <[email protected]> >>>>>>>>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * >>>>>>>>>> *http://blog.afkham.org* <http://blog.afkham.org> >>>>>>>>>> *twitter: >>>>>>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >>>>>>>>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez >>>>>>>>>> <http://lk.linkedin.com/in/afkhamazeez>* >>>>>>>>>> >>>>>>>>>> *Lean . Enterprise . Middleware* >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> *Afkham Azeez* >>>>>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com >>>>>>>>> Member; Apache Software Foundation; http://www.apache.org/ >>>>>>>>> * <http://www.apache.org/>* >>>>>>>>> *email: **[email protected]* <[email protected]> >>>>>>>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * >>>>>>>>> *http://blog.afkham.org* <http://blog.afkham.org> >>>>>>>>> *twitter: >>>>>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >>>>>>>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez >>>>>>>>> <http://lk.linkedin.com/in/afkhamazeez>* >>>>>>>>> >>>>>>>>> *Lean . Enterprise . Middleware* >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> Sagara Gunathunga >>>>>>>> >>>>>>>> Senior Technical Lead; WSO2, Inc.; http://wso2.com >>>>>>>> V.P Apache Web Services; http://ws.apache.org/ >>>>>>>> Linkedin; http://www.linkedin.com/in/ssagara >>>>>>>> Blog ; http://ssagara.blogspot.com >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> *Afkham Azeez* >>>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com >>>>>>> Member; Apache Software Foundation; http://www.apache.org/ >>>>>>> * <http://www.apache.org/>* >>>>>>> *email: **[email protected]* <[email protected]> >>>>>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * >>>>>>> *http://blog.afkham.org* <http://blog.afkham.org> >>>>>>> *twitter: >>>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >>>>>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez >>>>>>> <http://lk.linkedin.com/in/afkhamazeez>* >>>>>>> >>>>>>> *Lean . Enterprise . Middleware* >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Afkham Azeez* >>>>>> Director of Architecture; WSO2, Inc.; http://wso2.com >>>>>> Member; Apache Software Foundation; http://www.apache.org/ >>>>>> * <http://www.apache.org/>* >>>>>> *email: **[email protected]* <[email protected]> >>>>>> * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * >>>>>> *http://blog.afkham.org* <http://blog.afkham.org> >>>>>> *twitter: >>>>>> **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >>>>>> * linked-in: **http://lk.linkedin.com/in/afkhamazeez >>>>>> <http://lk.linkedin.com/in/afkhamazeez>* >>>>>> >>>>>> *Lean . Enterprise . Middleware* >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Sagara Gunathunga >>>>> >>>>> Senior Technical Lead; WSO2, Inc.; http://wso2.com >>>>> V.P Apache Web Services; http://ws.apache.org/ >>>>> Linkedin; http://www.linkedin.com/in/ssagara >>>>> Blog ; http://ssagara.blogspot.com >>>>> >>>>> >>>> >>>> >>>> -- >>>> Sagara Gunathunga >>>> >>>> Senior Technical Lead; WSO2, Inc.; http://wso2.com >>>> V.P Apache Web Services; http://ws.apache.org/ >>>> Linkedin; http://www.linkedin.com/in/ssagara >>>> Blog ; http://ssagara.blogspot.com >>>> >>>> >>> >>> >>> -- >>> Sagara Gunathunga >>> >>> Senior Technical Lead; WSO2, Inc.; http://wso2.com >>> V.P Apache Web Services; http://ws.apache.org/ >>> Linkedin; http://www.linkedin.com/in/ssagara >>> Blog ; http://ssagara.blogspot.com >>> >>> >> >> >> -- >> *Kasun Gajasinghe* >> Software Engineer; >> WSO2 Inc.; http://wso2.com >> >> >> , >> *email: * >> *kasung AT spamfree wso2.com <http://wso2.com> ** cell: **+94 (77) >> 678-0813 <%2B94%20%2877%29%20678-0813>* >> *linked-in: *http://lk.linkedin.com/in/gajasinghe >> >> >> >> *blog: **http://kasunbg.org* <http://kasunbg.org> >> >> >> >> *twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg> >> >> >> >> > > > -- > *Afkham Azeez* > Director of Architecture; WSO2, Inc.; http://wso2.com > Member; Apache Software Foundation; http://www.apache.org/ > * <http://www.apache.org/>* > *email: **[email protected]* <[email protected]> > * cell: +94 77 3320919 <%2B94%2077%203320919> blog: * > *http://blog.afkham.org* <http://blog.afkham.org> > *twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> > * linked-in: **http://lk.linkedin.com/in/afkhamazeez > <http://lk.linkedin.com/in/afkhamazeez>* > > *Lean . Enterprise . Middleware* > -- *Kasun Gajasinghe* Software Engineer; WSO2 Inc.; http://wso2.com , *email: * *kasung AT spamfree wso2.com <http://wso2.com> ** cell: **+94 (77) 678-0813* *linked-in: *http://lk.linkedin.com/in/gajasinghe *blog: **http://kasunbg.org* <http://kasunbg.org> *twitter: **http://twitter.com/kasunbg* <http://twitter.com/kasunbg>
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
