Re: watch bundles by default

2017-01-18 Thread Christian Schneider
I acknowledge that the full build is too slow in many cases. So building 
every change to the local maven repo should not be the default.
On the other hand I think it would work very well for small projects and 
even for a lot of real world projects. So I think m2e could have an option
to build to the local maven repo. So each user can decide if it works 
for him.


Christina

On 18.01.2017 13:19, Timothy Ward wrote:
I would propose not automatically installing bundles into the local 
repo. There are two main reasons for this:



  * Incremental builds (i.e. ones that automatically happen on save)
need to be really fast to avoid annoying the hell out of users.
M2E does this by not running most plugins, instead using the
Eclipse incremental compiler and a special subset of plugins.
Forcing a full install cycle would be far too slow.
  * Typing “mvn install” is what you do when you have something
“finished” and ready to share with other builds, and therefore
should be an explicit user action.  Having mid-development code
published as the latest version in the repository (even as a
SNAPSHOT) risks all sorts of weird behaviour, including breaking
other workspaces.


If you want to publish straight from the Eclipse IDE into Karaf for 
testing then that is fine, but the Local repository is not a good route.


Regards,

Tim


On 18 Jan 2017, at 11:25, Christian Schneider 
> wrote:


So what would you propose instead?

Christian

On 18.01.2017 12:24, Timothy Ward wrote:
I have not opened this issue with Eclipse as I don’t think that it’s 
a good idea to implement it.


Regards,

Tim

On 18 Jan 2017, at 11:11, Christian Schneider 
> wrote:


Yes .. the last part of the deployment to the local maven repo is 
missing and has to be done on M2E side..

but I hope we also manage to get that done.

Did you open an issue there already or should I take care of it?

Christian

On 18.01.2017 12:00, Timothy Ward wrote:
Just to clarify, the Bndtools team are not working on this 
function. It would need to be accepted as a function request and 
added to M2E by an Eclipse committer.


Regards,

Tim


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com




--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com






--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com



Re: watch bundles by default

2017-01-18 Thread Timothy Ward
I would propose not automatically installing bundles into the local repo. There 
are two main reasons for this:


Incremental builds (i.e. ones that automatically happen on save) need to be 
really fast to avoid annoying the hell out of users. M2E does this by not 
running most plugins, instead using the Eclipse incremental compiler and a 
special subset of plugins. Forcing a full install cycle would be far too slow.
Typing “mvn install” is what you do when you have something “finished” and 
ready to share with other builds, and therefore should be an explicit user 
action.  Having mid-development code published as the latest version in the 
repository (even as a SNAPSHOT) risks all sorts of weird behaviour, including 
breaking other workspaces.

If you want to publish straight from the Eclipse IDE into Karaf for testing 
then that is fine, but the Local repository is not a good route.

Regards,

Tim


> On 18 Jan 2017, at 11:25, Christian Schneider  wrote:
> 
> So what would you propose instead?
> 
> Christian
> 
> On 18.01.2017 12:24, Timothy Ward wrote:
>> I have not opened this issue with Eclipse as I don’t think that it’s a good 
>> idea to implement it.
>> 
>> Regards,
>> 
>> Tim
>> 
>>> On 18 Jan 2017, at 11:11, Christian Schneider  
>>> wrote:
>>> 
>>> Yes .. the last part of the deployment to the local maven repo is missing 
>>> and has to be done on M2E side..
>>> but I hope we also manage to get that done.
>>> 
>>> Did you open an issue there already or should I take care of it?
>>> 
>>> Christian
>>> 
>>> On 18.01.2017 12:00, Timothy Ward wrote:
 Just to clarify, the Bndtools team are not working on this function. It 
 would need to be accepted as a function request and added to M2E by an 
 Eclipse committer.
 
 Regards,
 
 Tim
 
>>> -- 
>>> Christian Schneider
>>> http://www.liquid-reality.de
>>> 
>>> Open Source Architect
>>> http://www.talend.com
>>> 
> 
> 
> -- 
> Christian Schneider
> http://www.liquid-reality.de
> 
> Open Source Architect
> http://www.talend.com
> 



Re: watch bundles by default

2017-01-18 Thread Christian Schneider

So what would you propose instead?

Christian

On 18.01.2017 12:24, Timothy Ward wrote:

I have not opened this issue with Eclipse as I don’t think that it’s a good 
idea to implement it.

Regards,

Tim


On 18 Jan 2017, at 11:11, Christian Schneider  wrote:

Yes .. the last part of the deployment to the local maven repo is missing and 
has to be done on M2E side..
but I hope we also manage to get that done.

Did you open an issue there already or should I take care of it?

Christian

On 18.01.2017 12:00, Timothy Ward wrote:

Just to clarify, the Bndtools team are not working on this function. It would 
need to be accepted as a function request and added to M2E by an Eclipse 
committer.

Regards,

Tim


--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com




--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com



Re: watch bundles by default

2017-01-18 Thread Timothy Ward
I have not opened this issue with Eclipse as I don’t think that it’s a good 
idea to implement it.

Regards,

Tim

> On 18 Jan 2017, at 11:11, Christian Schneider  wrote:
> 
> Yes .. the last part of the deployment to the local maven repo is missing and 
> has to be done on M2E side..
> but I hope we also manage to get that done.
> 
> Did you open an issue there already or should I take care of it?
> 
> Christian
> 
> On 18.01.2017 12:00, Timothy Ward wrote:
>> Just to clarify, the Bndtools team are not working on this function. It 
>> would need to be accepted as a function request and added to M2E by an 
>> Eclipse committer.
>> 
>> Regards,
>> 
>> Tim
>> 
> 
> -- 
> Christian Schneider
> http://www.liquid-reality.de
> 
> Open Source Architect
> http://www.talend.com
> 



Re: watch bundles by default

2017-01-18 Thread Christian Schneider
Yes .. the last part of the deployment to the local maven repo is 
missing and has to be done on M2E side..

but I hope we also manage to get that done.

Did you open an issue there already or should I take care of it?

Christian

On 18.01.2017 12:00, Timothy Ward wrote:
Just to clarify, the Bndtools team are not working on this function. 
It would need to be accepted as a function request and added to M2E by 
an Eclipse committer.


Regards,

Tim



--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com



Re: watch bundles by default

2017-01-18 Thread Timothy Ward
Just to clarify, the Bndtools team are not working on this function. It would 
need to be accepted as a function request and added to M2E by an Eclipse 
committer.

Regards,

Tim


> On 18 Jan 2017, at 09:57, Christian Schneider  wrote:
> 
> Btw. Something that might be interesting around that.
> The bndtools team is currently working on a maven build that automatically 
> rebuilds and deploys the current bundle to local maven repo when you save a 
> file. Together
> with the bundle:watch that might also benefit builds on eclipse that are just 
> targeted for karaf.
> 
> Christian
> 
> On 18.01.2017 10:43, Toni Menzel wrote:
>> omg
>> 
>> Toni Menzel
>> 
>> 
>> 
>>  www.rebaze.de  |  
>> www.rebaze.com  | @rebazeio 
>> 
>> 
>> On Wed, Jan 18, 2017 at 10:40 AM, Guillaume Nodet < 
>> gno...@apache.org > 
>> wrote:
>> Have you tried the following ?
>>  > bundle:watch *
>> 
>> 
>> 2017-01-18 10:36 GMT+01:00 Toni Menzel < 
>> toni.men...@rebaze.com 
>> >:
>> Hi,
>> 
>> is there a simple configuration to do "bundle:watch " by default? 
>> Either all or (better) using a filter expression on BSN?
>> Toni Menzel
>> 
>> 
>> 
>>  www.rebaze.de  |  
>> www.rebaze.com  | @rebazeio 
>> 
>> 
>> 
>> 
>> -- 
>> 
>> Guillaume Nodet
>> 
>> Red Hat, Open Source Integration
>> 
>> Email:  gno...@redhat.com 
>> 
>> Web: http://fusesource.com 
>> Blog: http://gnodet.blogspot.com/ 
>> 
>> 
> 
> 
> -- 
> Christian Schneider
> http://www.liquid-reality.de 
> 
> Open Source Architect
> http://www.talend.com 



Re: watch bundles by default

2017-01-18 Thread Christian Schneider

Btw. Something that might be interesting around that.
The bndtools team is currently working on a maven build that 
automatically rebuilds and deploys the current bundle to local maven 
repo when you save a file. Together
with the bundle:watch that might also benefit builds on eclipse that are 
just targeted for karaf.


Christian

On 18.01.2017 10:43, Toni Menzel wrote:

omg

*Toni Menzel*

*
*

*www.rebaze.de  |www.rebaze.com 
 | @rebazeio *



On Wed, Jan 18, 2017 at 10:40 AM, Guillaume Nodet > wrote:


Have you tried the following ?
 > bundle:watch *


2017-01-18 10:36 GMT+01:00 Toni Menzel >:

Hi,

is there a simple configuration to do "bundle:watch
" by default? Either all or (better) using a filter
expression on BSN?

*Toni Menzel*

*
*

*www.rebaze.de  |www.rebaze.com
 | @rebazeio
*




-- 


Guillaume Nodet

Red Hat, Open Source Integration

Email: gno...@redhat.com 
Web: http://fusesource.com 
Blog: http://gnodet.blogspot.com/ 





--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com



Re: watch bundles by default

2017-01-18 Thread Toni Menzel
omg

*Toni Menzel*


*www.rebaze.de  | www.rebaze.com
 | @rebazeio *

On Wed, Jan 18, 2017 at 10:40 AM, Guillaume Nodet  wrote:

> Have you tried the following ?
>  > bundle:watch *
>
>
> 2017-01-18 10:36 GMT+01:00 Toni Menzel :
>
>> Hi,
>>
>> is there a simple configuration to do "bundle:watch " by
>> default? Either all or (better) using a filter expression on BSN?
>>
>> *Toni Menzel*
>>
>>
>> *www.rebaze.de  | www.rebaze.com
>>  | @rebazeio *
>>
>
>
>
> --
> 
> Guillaume Nodet
> 
> Red Hat, Open Source Integration
>
> Email: gno...@redhat.com
> Web: http://fusesource.com
> Blog: http://gnodet.blogspot.com/
>
>


Re: watch bundles by default

2017-01-18 Thread Guillaume Nodet
Have you tried the following ?
 > bundle:watch *


2017-01-18 10:36 GMT+01:00 Toni Menzel :

> Hi,
>
> is there a simple configuration to do "bundle:watch " by
> default? Either all or (better) using a filter expression on BSN?
>
> *Toni Menzel*
>
>
> *www.rebaze.de  | www.rebaze.com
>  | @rebazeio *
>



-- 

Guillaume Nodet

Red Hat, Open Source Integration

Email: gno...@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/


watch bundles by default

2017-01-18 Thread Toni Menzel
Hi,

is there a simple configuration to do "bundle:watch " by default?
Either all or (better) using a filter expression on BSN?

*Toni Menzel*


*www.rebaze.de  | www.rebaze.com
 | @rebazeio *