[jira] [Commented] (ARIES-1792) blueprint-maven-plugin slows down compilation

2018-04-16 Thread Dominik Przybysz (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIES-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439799#comment-16439799
 ] 

Dominik Przybysz commented on ARIES-1792:
-

[~xroussel] [~soundcrac...@gmail.com] I've found a project with huge amount of 
dependencies and have started testing the plugin against it.

I've added the excludeArtifacts option to the plugin configuration.
{code:java}

.*(cats|cxf|jackson|jackrabbit|guava|spring|paranamer|commons|activemq|stax|geronimo|validation-api|jaxb|jetty).*
{code}
The exclude patterns are tested against an artifact name, e. g.:
{code:java}
org.apache.cxf:cxf-rt-frontend-jaxws:jar:3.0.2:provided{code}
The code is available on another branch here: 
https://github.com/alien11689/aries/tree/ARIES-1792_exclude 

Can you check it?

> blueprint-maven-plugin slows down compilation
> -
>
> Key: ARIES-1792
> URL: https://issues.apache.org/jira/browse/ARIES-1792
> Project: Aries
>  Issue Type: Improvement
>Affects Versions: blueprint-maven-plugin-1.9.0
>Reporter: Xavier Roussel
>Priority: Major
>
> We have a maven project with 20+ modules all using BMP to generate blueprint 
> file.
> During compilation, BMP is executed on each module and represents more than 
> 70% of the project's compilation time.
> We specify a scanPath for each module as a parameter to BMP but it seems that 
> it scan the module and also all the dependencies so because the modules are 
> linked together, the whole project is scanned again and again for each module.
> It could be useful to add an option to exclude dependencies so that BMP only 
> scan the current module.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARIES-1792) blueprint-maven-plugin slows down compilation

2018-04-16 Thread Daniel Estermann (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIES-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439434#comment-16439434
 ] 

Daniel Estermann commented on ARIES-1792:
-

I can confirm - xbean-finder-shaded:4.7 doesn't improve the build time

> blueprint-maven-plugin slows down compilation
> -
>
> Key: ARIES-1792
> URL: https://issues.apache.org/jira/browse/ARIES-1792
> Project: Aries
>  Issue Type: Improvement
>Affects Versions: blueprint-maven-plugin-1.9.0
>Reporter: Xavier Roussel
>Priority: Major
>
> We have a maven project with 20+ modules all using BMP to generate blueprint 
> file.
> During compilation, BMP is executed on each module and represents more than 
> 70% of the project's compilation time.
> We specify a scanPath for each module as a parameter to BMP but it seems that 
> it scan the module and also all the dependencies so because the modules are 
> linked together, the whole project is scanned again and again for each module.
> It could be useful to add an option to exclude dependencies so that BMP only 
> scan the current module.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARIES-1792) blueprint-maven-plugin slows down compilation

2018-04-16 Thread Xavier Roussel (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIES-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439419#comment-16439419
 ] 

Xavier Roussel commented on ARIES-1792:
---

I tried to upgrade the xbean-finder-shaded plugin dependency to 4.7 but it 
didn't fix the problem

[DEBUG] Creating package scope class finder: 13400ms

[DEBUG] Finding bean classes: 46ms

[DEBUG] Creating blueprint model: 85ms

[DEBUG] Writing blueprint: 71ms

 

 

> blueprint-maven-plugin slows down compilation
> -
>
> Key: ARIES-1792
> URL: https://issues.apache.org/jira/browse/ARIES-1792
> Project: Aries
>  Issue Type: Improvement
>Affects Versions: blueprint-maven-plugin-1.9.0
>Reporter: Xavier Roussel
>Priority: Major
>
> We have a maven project with 20+ modules all using BMP to generate blueprint 
> file.
> During compilation, BMP is executed on each module and represents more than 
> 70% of the project's compilation time.
> We specify a scanPath for each module as a parameter to BMP but it seems that 
> it scan the module and also all the dependencies so because the modules are 
> linked together, the whole project is scanned again and again for each module.
> It could be useful to add an option to exclude dependencies so that BMP only 
> scan the current module.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARIES-1792) blueprint-maven-plugin slows down compilation

2018-04-16 Thread Dominik Przybysz (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIES-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439391#comment-16439391
 ] 

Dominik Przybysz commented on ARIES-1792:
-

[~xroussel] Can you check your project with newer xbean-finder-shaded?

[https://mvnrepository.com/artifact/org.apache.xbean/xbean-finder-shaded/4.]7

> blueprint-maven-plugin slows down compilation
> -
>
> Key: ARIES-1792
> URL: https://issues.apache.org/jira/browse/ARIES-1792
> Project: Aries
>  Issue Type: Improvement
>Affects Versions: blueprint-maven-plugin-1.9.0
>Reporter: Xavier Roussel
>Priority: Major
>
> We have a maven project with 20+ modules all using BMP to generate blueprint 
> file.
> During compilation, BMP is executed on each module and represents more than 
> 70% of the project's compilation time.
> We specify a scanPath for each module as a parameter to BMP but it seems that 
> it scan the module and also all the dependencies so because the modules are 
> linked together, the whole project is scanned again and again for each module.
> It could be useful to add an option to exclude dependencies so that BMP only 
> scan the current module.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (ARIES-1792) blueprint-maven-plugin slows down compilation

2018-04-16 Thread Daniel Estermann (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIES-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439178#comment-16439178
 ] 

Daniel Estermann edited comment on ARIES-1792 at 4/16/18 11:51 AM:
---

The fix didn't work for me unfortunately. Here is the log: 
https://paste.fedoraproject.org/paste/ALB-AoWe0lc9SB1afiaRUw

Current stable version of the plugin with the same project takes the same 
amount of time, about 11 seconds: 
https://paste.fedoraproject.org/paste/Ou~7U8xGAV6oulNR7Y4smw


was (Author: soundcrac...@gmail.com):
The fix didn't work for me unfortunately. Here is the log: 
https://paste.fedoraproject.org/paste/ALB-AoWe0lc9SB1afiaRUw

The master version of the plugin takes about the same amount of time: 
https://paste.fedoraproject.org/paste/z0mMIpXLXMWqHFfet-mVRw

> blueprint-maven-plugin slows down compilation
> -
>
> Key: ARIES-1792
> URL: https://issues.apache.org/jira/browse/ARIES-1792
> Project: Aries
>  Issue Type: Improvement
>Affects Versions: blueprint-maven-plugin-1.9.0
>Reporter: Xavier Roussel
>Priority: Major
>
> We have a maven project with 20+ modules all using BMP to generate blueprint 
> file.
> During compilation, BMP is executed on each module and represents more than 
> 70% of the project's compilation time.
> We specify a scanPath for each module as a parameter to BMP but it seems that 
> it scan the module and also all the dependencies so because the modules are 
> linked together, the whole project is scanned again and again for each module.
> It could be useful to add an option to exclude dependencies so that BMP only 
> scan the current module.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (ARIES-1792) blueprint-maven-plugin slows down compilation

2018-04-16 Thread Daniel Estermann (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIES-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439178#comment-16439178
 ] 

Daniel Estermann edited comment on ARIES-1792 at 4/16/18 9:51 AM:
--

The fix didn't work for me unfortunately. Here is the log: 
https://paste.fedoraproject.org/paste/ALB-AoWe0lc9SB1afiaRUw

The master version of the plugin takes about the same amount of time: 
https://paste.fedoraproject.org/paste/z0mMIpXLXMWqHFfet-mVRw


was (Author: soundcrac...@gmail.com):
The fix didn't work for me unfortunately. Here is the log: 
https://paste.fedoraproject.org/paste/iBmXy-C65Nj5I2-ehhcfMA

The master version of the plugin takes about the same amount of time.

> blueprint-maven-plugin slows down compilation
> -
>
> Key: ARIES-1792
> URL: https://issues.apache.org/jira/browse/ARIES-1792
> Project: Aries
>  Issue Type: Improvement
>Affects Versions: blueprint-maven-plugin-1.9.0
>Reporter: Xavier Roussel
>Priority: Major
>
> We have a maven project with 20+ modules all using BMP to generate blueprint 
> file.
> During compilation, BMP is executed on each module and represents more than 
> 70% of the project's compilation time.
> We specify a scanPath for each module as a parameter to BMP but it seems that 
> it scan the module and also all the dependencies so because the modules are 
> linked together, the whole project is scanned again and again for each module.
> It could be useful to add an option to exclude dependencies so that BMP only 
> scan the current module.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARIES-1792) blueprint-maven-plugin slows down compilation

2018-04-16 Thread Xavier Roussel (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIES-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439197#comment-16439197
 ] 

Xavier Roussel commented on ARIES-1792:
---

I also tried the optimization and the problem is still here, the plugin still 
needs more than 10 sec ( same as before ) for one module. Here are the logs for 
one module, it's the same most of the others:

[DEBUG] Creating package scope class finder: 12286ms
[DEBUG] Finding bean classes: 30ms
[DEBUG] Creating blueprint model: 68ms
[DEBUG] Writing blueprint: 52ms

I added a few more debug and It seems that all the time is consumed by the 
fonction which scan the classes when the classloader is created ( readClassDef 
in org.apache.xbean.finder.AbstractFinder ). Which is normal I think because it 
reference all the project dependency, even camel,osgi,jetty,spring etc ...

[DEBUG] Adding urls ( ClassFinder constructor ) : 2304ms
[DEBUG] ReadClassDef ( ClassFinder constructor ) : 10131ms
[DEBUG] Creating PackageScopeClassFinder: 12438ms
[DEBUG] Finding bean classes: 37ms
[DEBUG] Creating blueprint model: 72ms
[DEBUG] Writing blueprint: 85ms

> blueprint-maven-plugin slows down compilation
> -
>
> Key: ARIES-1792
> URL: https://issues.apache.org/jira/browse/ARIES-1792
> Project: Aries
>  Issue Type: Improvement
>Affects Versions: blueprint-maven-plugin-1.9.0
>Reporter: Xavier Roussel
>Priority: Major
>
> We have a maven project with 20+ modules all using BMP to generate blueprint 
> file.
> During compilation, BMP is executed on each module and represents more than 
> 70% of the project's compilation time.
> We specify a scanPath for each module as a parameter to BMP but it seems that 
> it scan the module and also all the dependencies so because the modules are 
> linked together, the whole project is scanned again and again for each module.
> It could be useful to add an option to exclude dependencies so that BMP only 
> scan the current module.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (ARIES-1792) blueprint-maven-plugin slows down compilation

2018-04-16 Thread Daniel Estermann (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIES-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439178#comment-16439178
 ] 

Daniel Estermann edited comment on ARIES-1792 at 4/16/18 9:48 AM:
--

The fix didn't work for me unfortunately. Here is the log: 
https://paste.fedoraproject.org/paste/iBmXy-C65Nj5I2-ehhcfMA

The master version of the plugin takes about the same amount of time.


was (Author: soundcrac...@gmail.com):
The fix didn't work for me unfortunately. Here is the log: 
https://paste.fedoraproject.org/paste/iBmXy-C65Nj5I2-ehhcfMA

> blueprint-maven-plugin slows down compilation
> -
>
> Key: ARIES-1792
> URL: https://issues.apache.org/jira/browse/ARIES-1792
> Project: Aries
>  Issue Type: Improvement
>Affects Versions: blueprint-maven-plugin-1.9.0
>Reporter: Xavier Roussel
>Priority: Major
>
> We have a maven project with 20+ modules all using BMP to generate blueprint 
> file.
> During compilation, BMP is executed on each module and represents more than 
> 70% of the project's compilation time.
> We specify a scanPath for each module as a parameter to BMP but it seems that 
> it scan the module and also all the dependencies so because the modules are 
> linked together, the whole project is scanned again and again for each module.
> It could be useful to add an option to exclude dependencies so that BMP only 
> scan the current module.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (ARIES-1792) blueprint-maven-plugin slows down compilation

2018-04-16 Thread Daniel Estermann (JIRA)

[ 
https://issues.apache.org/jira/browse/ARIES-1792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16439178#comment-16439178
 ] 

Daniel Estermann commented on ARIES-1792:
-

The fix didn't work for me unfortunately. Here is the log: 
https://paste.fedoraproject.org/paste/iBmXy-C65Nj5I2-ehhcfMA

> blueprint-maven-plugin slows down compilation
> -
>
> Key: ARIES-1792
> URL: https://issues.apache.org/jira/browse/ARIES-1792
> Project: Aries
>  Issue Type: Improvement
>Affects Versions: blueprint-maven-plugin-1.9.0
>Reporter: Xavier Roussel
>Priority: Major
>
> We have a maven project with 20+ modules all using BMP to generate blueprint 
> file.
> During compilation, BMP is executed on each module and represents more than 
> 70% of the project's compilation time.
> We specify a scanPath for each module as a parameter to BMP but it seems that 
> it scan the module and also all the dependencies so because the modules are 
> linked together, the whole project is scanned again and again for each module.
> It could be useful to add an option to exclude dependencies so that BMP only 
> scan the current module.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)