Hi Isuru, Javadoc and source generation happens when you use the maven release plugin. We are already doing it. [1] That is the only place we need these two plugins as I understand. When doing a build locally, you don't really need sources/javadoc jars because you already have the source code.
[1] https://maven.wso2.org/nexus/content/repositories/releases/org/wso2/carbon/org.wso2.carbon.ndatasource.core/4.4.7/ Thanks, KasunG On Tue, Aug 9, 2016 at 7:24 PM, Isuru Perera <isu...@wso2.com> wrote: > Hi, > > On Tue, Aug 9, 2016 at 3:10 PM, Jayanga Dissanayake <jaya...@wso2.com> > wrote: > >> Hi Isuru, >> >> It seems to be the culprit. I removed the jacoco plugin from >> carbon-kernel/parent/pom.xml and it builds. >> >> One other concern is, in this PR, you have moved the doc and source >> plugins into plugin section, which cause it to run always. But we usually >> don't want src and docs to be generated at each build. Could you please >> explain why those plugins were moved into plugin section. >> > I added java doc and source plugins to parent pom as we need to have > sources jars and java docs every time we build the source. > > If you look at our previous releases based on Carbon 4.x, there are no > source jars for most of the components. Without having sources jars, it is > very difficult to debug as well. > > Even though, we expected our developers to release the sources jars during > release time, we can see that it's not happening most of the time. > > Java Doc generation is also very important and Java Doc Plugin shows > warnings if there are any issues with our Java Docs. It's easy to fix such > warnings before the release. > > If the build time is the main concern for local builds, we can disable > Java doc plugin as it takes some time. The source plugin doesn't take much > time. > > For local builds, we can skip java docs using the parameter: > "-Dmaven.javadoc.skip=true". > > I think having these plugins in parent pom is very important. > >> >> Thanks, >> Jayanga. >> >> Thanks, >> Jayanga. >> >> *Jayanga Dissanayake* >> Associate Technical Lead >> WSO2 Inc. - http://wso2.com/ >> lean . enterprise . middleware >> email: jaya...@wso2.com >> mobile: +94772207259 >> <http://wso2.com/signature> >> >> On Tue, Aug 9, 2016 at 2:34 PM, Isuru Perera <isu...@wso2.com> wrote: >> >>> Did you remove existing Jacoco plugin in Carbon Kernel? >>> >>> Isuru Perera >>> >>> On 9 Aug 2016 2:29 p.m., "Jayanga Dissanayake" <jaya...@wso2.com> wrote: >>> >>>> Hi Isuru, >>>> >>>> When I try to build the carbon kernel with new parent pom with your >>>> updates, the following error happens. >>>> It seems to be an issue in jacoco plugin, any idea? >>>> >>>> [ERROR] Failed to execute goal >>>> org.jacoco:jacoco-maven-plugin:0.7.5.201505241946:report >>>> (post-unit-test) on project org.wso2.carbon.launcher: An error has occurred >>>> in JaCoCo Test report generation. Error while creating report: Error while >>>> analyzing class /tmp/1/carbon-kernel/launcher/ >>>> target/classes/org/wso2/carbon/launcher/CarbonServer.class. Class >>>> org/wso2/carbon/launcher/CarbonServer is already instrumented. -> >>>> [Help 1] >>>> >>>> Thanks, >>>> Jayanga. >>>> >>>> *Jayanga Dissanayake* >>>> Associate Technical Lead >>>> WSO2 Inc. - http://wso2.com/ >>>> lean . enterprise . middleware >>>> email: jaya...@wso2.com >>>> mobile: +94772207259 >>>> <http://wso2.com/signature> >>>> >>>> On Tue, Aug 9, 2016 at 12:24 PM, Isuru Perera <isu...@wso2.com> wrote: >>>> >>>>> Hi Jayanga, >>>>> >>>>> I didn't update maven bundle plugin. Could you please check on that >>>>> too? >>>>> >>>>> Please use following command to check plugin updates. >>>>> >>>>> mvn versions:display-plugin-updates >>>>> >>>>> Thanks! >>>>> >>>>> On Tue, Aug 9, 2016 at 11:39 AM, Kishanthan Thangarajah < >>>>> kishant...@wso2.com> wrote: >>>>> >>>>>> Hi Jayanga, >>>>>> >>>>>> Let's merge this and do a release along with kernel 5.2.0. >>>>>> >>>>>> On Wed, Jul 27, 2016 at 3:44 PM, Isuru Perera <isu...@wso2.com> >>>>>> wrote: >>>>>> >>>>>>> Hi, >>>>>>> >>>>>>> Could you please review the PR in [1]. >>>>>>> >>>>>>> I also noticed that carbon-parent version 5 is released [2], but the >>>>>>> master branch still has 5-SNAPSHOT [3]. >>>>>>> >>>>>>> [1] https://wso2.org/jira/browse/CPARENT-6 >>>>>>> [2] https://github.com/wso2/carbon-parent/releases/tag/carbon-pa >>>>>>> rent-5 >>>>>>> [3] https://github.com/wso2/carbon-parent/blob/master/pom.xml#L22 >>>>>>> >>>>>>> -- >>>>>>> Isuru Perera >>>>>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/ >>>>>>> Lean . Enterprise . Middleware >>>>>>> >>>>>>> about.me/chrishantha >>>>>>> Contact: +IsuruPereraWSO2 >>>>>>> <https://www.google.com/+IsuruPereraWSO2/about> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> *Kishanthan Thangarajah* >>>>>> Technical Lead, >>>>>> Platform Technologies Team, >>>>>> WSO2, Inc. >>>>>> lean.enterprise.middleware >>>>>> >>>>>> Mobile - +94773426635 >>>>>> Blog - *http://kishanthan.wordpress.com >>>>>> <http://kishanthan.wordpress.com>* >>>>>> Twitter - *http://twitter.com/kishanthan >>>>>> <http://twitter.com/kishanthan>* >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Isuru Perera >>>>> Associate Technical Lead | WSO2, Inc. | http://wso2.com/ >>>>> Lean . Enterprise . Middleware >>>>> >>>>> about.me/chrishantha >>>>> Contact: +IsuruPereraWSO2 >>>>> <https://www.google.com/+IsuruPereraWSO2/about> >>>>> >>>> >>>> >> > > > -- > Isuru Perera > Associate Technical Lead | WSO2, Inc. | http://wso2.com/ > Lean . Enterprise . Middleware > > about.me/chrishantha > Contact: +IsuruPereraWSO2 <https://www.google.com/+IsuruPereraWSO2/about> > -- *Kasun Gajasinghe*Associate Technical Lead, WSO2 Inc. email: kasung AT spamfree wso2.com linked-in: http://lk.linkedin.com/in/gajasinghe blog: http://kasunbg.org
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev