Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Buckminster » Re: getting shiro with buckminster
Re: getting shiro with buckminster [message #718699] Thu, 25 August 2011 05:25 Go to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
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
Re: getting shiro with buckminster [message #718922 is a reply to message #718699] Thu, 25 August 2011 15:49 Go to previous messageGo to next message
Lothar Werzinger is currently offline Lothar WerzingerFriend
Messages: 153
Registered: July 2009
Location: Bay Area
Senior Member
Thomas Hallgren wrote on Thu, 25 August 2011 01: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.


Thanks, I initially copied the URL from shiro's download web page and realized that it was unusually structured. After sending the mail I realized that it is actually a maven repository URL.

Quote:

<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>


Thanks, that got me started.

Quote:

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).

I did not find a newsgroup that seemed to be for buckminster users (only buckminster-dev) and that seems to be for buckminster developers.
However I figured out how to respond on the forum Smile

- thomas
Re: getting shiro with buckminster [message #719056 is a reply to message #718922] Thu, 25 August 2011 22:47 Go to previous messageGo to next message
Lothar Werzinger is currently offline Lothar WerzingerFriend
Messages: 153
Registered: July 2009
Location: Bay Area
Senior Member
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.

Getting Maven Source bundles (WAS Re: getting shiro with buckminster) [message #719107 is a reply to message #719056] Fri, 26 August 2011 05:28 Go to previous messageGo to next message
Thomas Hallgren is currently offline Thomas HallgrenFriend
Messages: 3240
Registered: July 2009
Senior Member
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.
>
>
Re: Getting Maven Source bundles (WAS Re: getting shiro with buckminster) [message #719385 is a reply to message #719107] Fri, 26 August 2011 21:19 Go to previous message
Lothar Werzinger is currently offline Lothar WerzingerFriend
Messages: 153
Registered: July 2009
Location: Bay Area
Senior Member
Thanks, that worked like a charm Smile
Previous Topic:buckminster headless install
Next Topic:Buckminster seems to ignore component provider
Goto Forum:
  


Current Time: Thu Apr 18 03:23:18 GMT 2024

Powered by FUDForum. Page generated in 0.02218 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top