-
Notifications
You must be signed in to change notification settings - Fork 82
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
Using repo01 as a repo name is confusing #56
Comments
Do you have any suggestions? One option would be to use the artifactId of the project defining the index. It's pretty easy to set the index name using the bnd-indexer-maven-plugin. |
Those words I lifted from Ray's comment on osgi-dev. |
Specifically the synthetic repo names comes from this line: where you can see that had the index file contained a name it would have been used. I wonder if the enroute archetype might setup the indexer plugin to provide a name using:
.. something meaningful maybe like |
My proposal was just to use |
sounds good! |
Oddly, the name from the code isn't actually pulled from the index file reference as I expected, but rather from an attribute
which I would suggest that we put as a fallback behind the index's name. What do you think? |
This sounds like a bug in bnd, and would need to be fixed there. All we can do in enRoute is to set the name of the generated index, or put the name property into the standalone entry. The former seems much cleaner. |
agreed! |
A standalone repo is an OSGiRepository. And the repo name never comes from
the name in the index file. It is always supplied on the repo
configuration.
On Fri, Jun 8, 2018 at 08:32 Raymond Augé ***@***.***> wrote:
agreed!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQ8sl0LfZWxTnYc1Ugn-EZjaKmIoeoyks5t6osLgaJpZM4UfgLL>
.
--
BJ
|
Yup, I just observed that... |
Why is this? |
@timothyjward simply because it would be complicated. The OSGiRepo can refer to multiple locations, so which one would provide the name. It certainly is possible for the OSGiRepo to "take" the name of the index because the XMLResourceParser certainly gets that information on it's behalf. OSGiRepo just doesn't use it. So the only problem scenario is if there are multiple locations specified. |
This seems like quite a rare case. Would it not be possible to use the name from a single index file in the absence of any configured name for the repo? |
the other issue might be "laziness". the repo might want to give out it's name before it ever touches any potentially remote resources.. but that seems odd case to me. It always should need to at least pull the index. |
All repos are named in their configuration. Some one could configure
multiple repos using the same index and they would need different names.
Also I don’t think anyone ever really paid much attention to the name
attribute in indexes, so they are not useful as repo names. The default
name attribute when generating and index is the folder name.
On Fri, Jun 8, 2018 at 08:46 Tim Ward ***@***.***> wrote:
And the repo name never comes from
the name in the index file. It is always supplied on the repo
configuration.
Why is this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#56 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAQ8snW0is07Z-W3RRfTTzD72jZgdQZ5ks5t6o5bgaJpZM4UfgLL>
.
--
BJ
|
What I'll do is open a bnd issue and we can move this discussion over there. For the time being there's a workaround for enRoute, which is use the |
I searched for some time to try an find how repo01 as a repository name was related to target/index.xml
Turns out that it is a "synthetic name" created from the index file with no real meaning.
A more insightful name may be an advantage.
The text was updated successfully, but these errors were encountered: