[
https://issues.apache.org/jira/browse/ARIES-283?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12856987#action_12856987
]
Lin Sun commented on ARIES-283:
-------------------------------
Hi
I currently find the resource by going through the resources in the repository
and see if there is a match. This is done in the find method. I was hoping
the RepositoryAdmin.discoveryResources(String filter) would do the job, but I
could not get it working.
Once a resource is find, the location of the resource would be contained in the
URI of the resource. For example, here is what the code creates for
felix.fileinstall in my local .m2 repo.
<resource id="org.apache.felix.fileinstall/2.0.8" presentationname="Apache
Felix File Install" symbolicname="org.apache.felix.fileinstall"
uri="/Users/linsun/.m2/repository/org/apache/felix/org.apache.felix.fileinstall/2.0.8/org.apache.felix.fileinstall-2.0.8.jar"
version="2.0.8"><capability name="bundle"><p n="symbolicname"
v="org.apache.felix.fileinstall"/><p n="version" t="version" v="2.0.8"/><p
n="presentationname" v="Apache Felix File Install"/>....</resource>
Do you see a need to calculate the groupId, artifactId and version? If so, we
could use groupId/artifactId/version for resource id when we populate the
repository.xml.
I think the format of Subsystem-Content is undefined right now. I had
envisioned that people would put bundle-symbolic-name and version there, even
tho it is possible that the version is a range.
bundlesybmolic-name;version="1.0.0"
The current code only handles the exact version and would find the exact
version, but it can be improved.
HTH
Lin
> Provide an implementation of ResourceResolver that can find/resolve resources
> in local .m2 repo or any other specified repo
> ---------------------------------------------------------------------------------------------------------------------------
>
> Key: ARIES-283
> URL: https://issues.apache.org/jira/browse/ARIES-283
> Project: Aries
> Issue Type: Improvement
> Components: Subsystem
> Affects Versions: Incubation
> Reporter: Lin Sun
> Assignee: Lin Sun
> Fix For: Incubation
>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira