[Carbon-dev] Another hacky way to improve the build time
Sameera Jayasoma
sameera at wso2.com
Thu Mar 31 00:29:16 PDT 2011
On Sun, Mar 27, 2011 at 11:36 PM, Harshana Martin <harshana at wso2.com> wrote:
> Hi Senaka,
>
> On Sun, Mar 27, 2011 at 10:51 PM, Senaka Fernando <senaka at wso2.com> wrote:
>
>>
>>
>> On Sun, Mar 27, 2011 at 5:51 PM, Afkham Azeez <azeez at wso2.com> wrote:
>>
>>> Locate your .m2/repository/repository.xml file, and edit it so that the
>>> XML becomes non-wellformed. Now this file will not get written when each
>>> bundle is built, hence the build will become faster :)
>>>
>>
>> I have done that too, :).. - and it works - best if the file is empty :).
>> Only with the line below.
>>
>> <?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
>>
>> I wonder whether we could fix this actually. OBR is not required, since we
>> use P2 instead of Eclipse/Maven as our repo. I wonder whether the bundle
>> plugin has some config option stopping this unwanted step of adding the
>> bundle to the OBR.
>>
>
> Yes. There is a way to disable it. We just need to mark the obrRepository
> to NONE for the maven-bundle-plugin. For example,
>
> <groupId>org.apache.felix</groupId><artifactId>maven-bundle-plugin</artifactId><extensions>true</extensions><configuration>
> <obrRepository>NONE</obrRepository>
> <instructions>
> <!-- bnd instructions -->
> </instructions>
>
> </configuration>
>
Hi Harshana,
I've added this to the bundle plugin configuration in plugin management
section in carbon-platform pom. So far so good. Will commit it after some
more testing.
Thanks
Sameera
>
> Thanks and Regards,
> Harshana
>
> Since the hack works, the step is clearly unnecessary.
>>
>
>> Thanks,
>> Senaka.
>>
>>>
>>> --
>>> *Afkham Azeez*
>>> Senior Software Architect & Senior Manager; WSO2, Inc.; http://wso2.com
>>> ,
>>> *
>>> *
>>> *Member; Apache Software Foundation; **http://www.apache.org/*<http://www.apache.org/>
>>> *
>>> email: **azeez at wso2.com* <azeez at wso2.com>* cell: +94 77 3320919
>>> 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*
>>> *
>>> *
>>> *Lean . Enterprise . Middleware*
>>>
>>>
>>> _______________________________________________
>>> Carbon-dev mailing list
>>> Carbon-dev at wso2.org
>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>>
>>>
>>
>>
>> --
>> *Senaka Fernando*
>> Product Manager - WSO2 Governance Registry;
>> Associate Technical Lead; WSO2, Inc.; http://wso2.com*
>> Member; Apache Software Foundation; http://apache.org
>>
>> E-mail: senaka AT wso2.com
>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
>> Linked-In: http://www.linkedin.com/in/senakafernando
>>
>> *Lean . Enterprise . Middleware
>>
>>
>> _______________________________________________
>> Carbon-dev mailing list
>> Carbon-dev at wso2.org
>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>>
>>
>
>
> --
> Harshana Martin
> Software Engineer
> WSO2 Inc.
> Web:http://wso2.com
> http://wso2.org
>
> Mobile: +94 716062650
> Blog: http://harshana05.blogspot.com
> Profile: https://www.google.com/profiles/harshana05
> Twitter: http://twitter.com/harshana05
>
>
> _______________________________________________
> Carbon-dev mailing list
> Carbon-dev at wso2.org
> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
--
Sameera Jayasoma
Technical Lead and Product Manager, WSO2 Carbon
WSO2, Inc. (http://wso2.com)
email: sameera at wso2.com
blog: http://tech.jayasoma.org
Lean . Enterprise . Middleware
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.wso2.org/pipermail/carbon-dev/attachments/20110331/2f3c824c/attachment-0001.htm>
More information about the Carbon-dev
mailing list