[prev in list] [next in list] [prev in thread] [next in thread] 

List:       esb-java-dev
Subject:    Re: [Carbon-dev] Another hacky way to improve the build time
From:       Sameera Jayasoma <sameera () wso2 ! com>
Date:       2011-03-31 7:41:16
Message-ID: AANLkTimaUQMpht-OmLG5-rsewx4zq_MEjabyfz1dCtwe () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


On Sun, Mar 27, 2011 at 11:36 PM, Harshana Martin <harshana@wso2.com> wrote:

> Hi Senaka,
> 
> On Sun, Mar 27, 2011 at 10:51 PM, Senaka Fernando <senaka@wso2.com> wrote:
> 
> > 
> > 
> > On Sun, Mar 27, 2011 at 5:51 PM, Afkham Azeez <azeez@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@wso2.com* <azeez@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@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@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@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@wso2.com
blog: http://tech.jayasoma.org

Lean . Enterprise . Middleware


[Attachment #5 (text/html)]

<br><br><div class="gmail_quote">On Sun, Mar 27, 2011 at 11:36 PM, Harshana Martin \
<span dir="ltr">&lt;<a href="mailto:harshana@wso2.com" \
target="_blank">harshana@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;">


Hi Senaka,<br><br><div class="gmail_quote"><div>On Sun, Mar 27, 2011 at 10:51 PM, \
Senaka Fernando <span dir="ltr">&lt;<a href="mailto:senaka@wso2.com" \
target="_blank">senaka@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;">




<br><br><div class="gmail_quote"><div>On Sun, Mar 27, 2011 at 5:51 PM, Afkham Azeez \
<span dir="ltr">&lt;<a href="mailto:azeez@wso2.com" \
target="_blank">azeez@wso2.com</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;">







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 :)<br clear="all"></blockquote>







</div><div><br>I have done that too, :).. - and it works - best if the file is empty \
:). Only with the line below.<br><br>&lt;?xml version=&quot;1.0&quot; \
encoding=&quot;ISO-8859-1&quot; standalone=&quot;no&quot;?&gt;<br>




<br>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. </div>




</div></blockquote><div><br></div></div><div>Yes. There is a way to disable it. We \
just need to mark the obrRepository to NONE for the maven-bundle-plugin. For \
example,</div><div><br></div><span style="color: rgb(59, 59, 59); font-family: \
Tahoma,Arial,sans-serif; font-size: 13px; line-height: 18px;"><pre style="margin: \
0em;">

<span>&lt;groupId&gt;</span>org.apache.felix<span>&lt;/groupId&gt;</span>
<span>&lt;artifactId&gt;</span>maven-bundle-plugin<span>&lt;/artifactId&gt;</span>
<span>&lt;extensions&gt;</span>true<span>&lt;/extensions&gt;</span>
<span>&lt;configuration&gt;</span>
  <span>&lt;obrRepository&gt;</span>NONE<span>&lt;/obrRepository&gt;</span>
  <span>&lt;instructions&gt;</span>
    <span><span>&lt;!-- bnd instructions --&gt;</span></span>
  <span>&lt;/instructions&gt; </span>
</pre></span><div><span style="color: rgb(59, 59, 59); font-family: monospace; \
font-size: 13px; line-height: 18px; white-space: \
pre-wrap;">&lt;/configuration&gt;</span> </div></div></blockquote><div><br>Hi \
Harshana,<br><br>


I&#39;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.<br><br>Thanks<br>Sameera <br></div><blockquote class="gmail_quote" \
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; \
padding-left: 1ex;">


<div class="gmail_quote"><div><br></div><div>Thanks and Regards,</div>

<div>Harshana</div><div><div></div><div><div><br></div><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"><div class="gmail_quote"> <div>Since the hack works, \
the step is clearly unnecessary.  </div>

</div></blockquote><blockquote class="gmail_quote" style="border-left: 1px solid \
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div \
class="gmail_quote"><div>

<br>Thanks,<br>
Senaka.<br></div><blockquote class="gmail_quote" style="border-left: 1px solid \
rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><br>-- <br>

<b>Afkham Azeez</b><br><font face="verdana, sans-serif"><span style="font-size: \
x-small;">Senior Software Architect &amp; Senior Manager</span></font>; <span \
style="font-size: x-small;">WSO2, Inc.; </span><a href="http://wso2.com" \
target="_blank"><span style="font-size: x-small;">http://wso2.com</span></a><span \
style="font-size: x-small;">, <br>









</span><i><span style="font-size: x-small;"><br></span></i><div><i><span \
style="font-size: x-small;">Member; Apache Software Foundation; </span></i><a \
href="http://www.apache.org/" target="_blank"><i><span style="font-size: \
x-small;">http://www.apache.org/</span></i></a><i><span style="font-size: \
x-small;"><br>









email: </span></i><a href="mailto:azeez@wso2.com" target="_blank"><i><span \
style="font-size: x-small;">azeez@wso2.com</span></i></a><i><span style="font-size: \
x-small;"> cell: <a href="tel:%2B94%2077%203320919" target="_blank">+94 77 \
3320919</a><br>







blog: </span></i><a href="http://blog.afkham.org" target="_blank"><i><span \
style="font-size: x-small;">http://blog.afkham.org</span></i></a><i><span \
style="font-size: x-small;"><br>

twitter: </span></i><a href="http://twitter.com/afkham_azeez" \
target="_blank"><i><span style="font-size: \
x-small;">http://twitter.com/afkham_azeez</span></i></a><i><span style="font-size: \
x-small;"><br>linked-in: </span></i><i><span style="font-size: x-small;"><a \
href="http://lk.linkedin.com/in/afkhamazeez" \
target="_blank">http://lk.linkedin.com/in/afkhamazeez</a></span></i><br>









<div></div><div><i><br></i></div><div><i><span style="font-style: normal;"><span \
style="font-size: x-small;">Lean . Enterprise . \
Middleware</span></span></i></div></div><br> \
<br></div>_______________________________________________<br> Carbon-dev mailing \
list<br> <a href="mailto:Carbon-dev@wso2.org" \
target="_blank">Carbon-dev@wso2.org</a><br> <a \
href="http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev" \
target="_blank">http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev</a><br> \
<br></blockquote></div><br><br clear="all"><br>-- <br><font style="font-family: \
garamond,serif; color: rgb(0, 0, 0);" size="2"><b>Senaka Fernando</b></font><br \
style="font-family: garamond,serif; color: rgb(102, 102, 102);">





<span style="font-family: garamond,serif; color: rgb(51, 51, 51);"><font \
size="1">Product Manager - WSO2 Governance Registry; <br></font></span><span \
style="font-family: garamond,serif; color: rgb(51, 51, 51);"><font size="1">Associate \
Technical Lead; </font></span><span style="font-family: garamond,serif; color: \
rgb(51, 51, 51);"><font size="1">WSO2, Inc.; <a href="http://wso2.com" \
target="_blank">http://wso2.com</a></font></span><i style="font-family: \
garamond,serif; color: rgb(51, 51, 51);"><font size="1"><br>







Member; Apache Software Foundation; <a href="http://apache.org" \
target="_blank">http://apache.org</a><br><br>E-mail: senaka AT <a \
href="http://wso2.com" target="_blank">wso2.com</a><br></font></i><i \
style="font-family: garamond,serif; color: rgb(51, 51, 51);"><font size="1">P: <a \
href="tel:%2B1%20408%20754%207388" target="_blank">+1 408 754 7388</a>; ext: \
51736</font></i>; <i style="font-family: garamond,serif; color: rgb(51, 51, \
51);"><font size="1">M: <a href="tel:%2B94%2077%20322%201818" target="_blank">+94 77 \
322 1818</a><br>







Linked-In: <a href="http://www.linkedin.com/in/senakafernando" \
target="_blank">http://www.linkedin.com/in/senakafernando</a><br><br></font></i><span \
style="font-family: garamond,serif; color: rgb(51, 51, 51);"><font size="1">Lean . \
Enterprise . Middleware</font></span><br>







<br>
<br>_______________________________________________<br>
Carbon-dev mailing list<br>
<a href="mailto:Carbon-dev@wso2.org" target="_blank">Carbon-dev@wso2.org</a><br>
<a href="http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev" \
target="_blank">http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev</a><br> \
<br></blockquote></div></div></div><br><br clear="all"><br>-- <br><font \
color="#666666" face="&#39;times new roman&#39;, serif">Harshana Martin \
</font><div><font color="#666666" face="&#39;times new roman&#39;, serif">Software \
Engineer</font></div>




<div><font color="#666666" face="&#39;times new roman&#39;, serif">WSO2 \
Inc.</font></div><div><font color="#666666" face="&#39;times new roman&#39;, \
serif">Web:<a href="http://wso2.com" target="_blank">http://wso2.com</a></font></div>




<div><font color="#666666" face="&#39;times new roman&#39;, serif">          <a \
href="http://wso2.org" target="_blank">http://wso2.org</a></font></div><div><font \
color="#666666" face="&#39;times new roman&#39;, serif"><br>




</font></div><div><font color="#666666" face="&#39;times new roman&#39;, \
serif">Mobile: <a href="tel:%2B94%20716062650" target="_blank">+94 \
716062650</a></font></div><div><font color="#666666" face="&#39;times new roman&#39;, \
serif">Blog: <a href="http://harshana05.blogspot.com" \
target="_blank">http://harshana05.blogspot.com</a></font></div>




<div><font color="#666666" face="&#39;times new roman&#39;, serif">Profile: <a \
href="https://www.google.com/profiles/harshana05" \
target="_blank">https://www.google.com/profiles/harshana05</a></font></div><div><font \
color="#666666" face="&#39;times new roman&#39;, serif">Twitter: <a \
href="http://twitter.com/harshana05" \
target="_blank">http://twitter.com/harshana05</a></font></div>




<br>
<br>_______________________________________________<br>
Carbon-dev mailing list<br>
<a href="mailto:Carbon-dev@wso2.org" target="_blank">Carbon-dev@wso2.org</a><br>
<a href="http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev" \
target="_blank">http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev</a><br> \
<br></blockquote></div><br><br clear="all"><br>-- <br>Sameera Jayasoma<br>Technical \
Lead and Product Manager, WSO2 Carbon<br><br>WSO2, Inc. (<a href="http://wso2.com" \
target="_blank">http://wso2.com</a>)<br>email: <a href="mailto:sameera@wso2.com" \
target="_blank">sameera@wso2.com</a><br>


blog: <a href="http://tech.jayasoma.org" \
target="_blank">http://tech.jayasoma.org</a><br><br>Lean . Enterprise . \
Middleware<br>



_______________________________________________
Carbon-dev mailing list
Carbon-dev@wso2.org
http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic