Re: getting shiro with buckminster [message #718699] |
Thu, 25 August 2011 05:25 |
|
Hi Lothar,
You should use the maven2 reader type. The URL must be
http://repo1.maven.org/maven2 to point to the component root. You must also provide a mapping between the
groupId/artifactId used by Maven and the OSGi symbolic name of the bundle. Here's an example from one of our RMAP's that
does this for two well known bundles.
<rm:searchPath name="maven.central">
<rm:provider xsi:type="maven:MavenProvider" componentTypes="osgi.bundle" readerType="maven2" source="false" mutable="false">
<rm:uri format="http://repo1.maven.org/maven2" />
<maven:mappings>
<maven:entry artifactId="commons-compress" groupId="org.apache.commons" name="org.apache.commons.compress" />
<maven:entry artifactId="jruby-complete" groupId="org.jruby" name="org.jruby.jruby" />
</maven:mappings>
</rm:provider>
</rm:searchPath>
Please direct future questions to our forum or to our newsgroup (I'm CC'ing this there since I think my reply might be
of use to others).
- thomas
On 2011-08-24 19:08, Lothar Werzinger wrote:
> Hi,
>
> I'd like to use shiro, but I can not figure out how to compose a reader to find
> the shiro bundles. I found an url reader example of yours in some forum, but I
> have no idea how to modify it for shiro, as shiro puts all bundles in
> subdirectories
>
> http://repo1.maven.org/maven2/org/apache/shiro/
>
> Any help is highly appreciated.
>
> Thanks in advance!
>
> Lothar
|
|
|
|
|
Getting Maven Source bundles (WAS Re: getting shiro with buckminster) [message #719107 is a reply to message #719056] |
Fri, 26 August 2011 05:28 |
|
Hi Lothar,
You simply add two properties to your CQUERY. Like this:
<cq:property key="buckminster.download.source" value="true"/>
<cq:property key="buckminster.convert.source" value="true"/>
The first property tells buckminster to generate a synthesized optional dependency to the source bundle which in turn
will make the resolver include it. In most cases that would be enough but the Maven source bundles is missing one
important piece, namely the Eclipse-SourceBundle manifest header. That's where the second property comes in. If it is
set to true, Buckminster will automatically add this header to the manifest. That in turn will make your Eclipse IDE
associate the bundle with its source automatically. The generated entry in the META-INF/MANIFEST.MF of the source bundle
will look something like this:
Eclipse-SourceBundle: org.apache.commons.compress;version=1.2.0
HTH,
- thomas
On 2011-08-26 00:47, Lothar Werzinger wrote:
> How would I ask buckminster to get the source bundles for shiro?
>
> I noticed that there are jars like
> http://repo1.maven.org/maven2/org/apache/shiro/shiro-core/1.1.0/shiro-core-1.1.0-sources.jar
> are available.
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03416 seconds