spi in maven

46 views
Skip to first unread message

Tibor Blenessy

unread,
Apr 4, 2011, 7:23:59 PM4/4/11
to spi_googlecode_com
Hi,

I really like this project, I was just thinking to code the same idea
by myself. Do you think it would be possible to publish this project
into maven central repository? Or is there some alternative already in
maven? I would like to have it integrated in maven, so I don't have to
change the way how I manage dependencies.

Tibor

Roel Spilker

unread,
Apr 5, 2011, 3:36:55 AM4/5/11
to spi_googl...@googlegroups.com
Hi Tibor,

Thanks for the suggestion. I'll have a look at it, but not before May.

Roel

Jesse Glick

unread,
Apr 5, 2011, 8:30:27 AM4/5/11
to spi_googl...@googlegroups.com
On 04/04/2011 07:23 PM, Tibor Blenessy wrote:
> Do you think it would be possible to publish this project into maven central repository? Or is there some alternative already in maven?

If you add the repo netbeans=http://bits.netbeans.org/maven2/ you can add a dep on org.netbeans.api:org-openide-util-lookup (say in version RELEASE691) and use
@org.openide.util.lookup.ServiceProvider, which will do essentially the same thing as @ProviderFor.

I do not know of anything in Central. (You might expect a basic tool like this to be in the JRE, since ServiceLoader is!) Google turns up

https://github.com/francisdb/serviceloader-maven-plugin - a Maven plugin (maybe not published?), not an annotation

http://felix.apache.org/site/scr-annotations.html - for use in OSGi, seems heavier-weight

http://code.google.com/p/mycila/wiki/MycilaGuice#Service_Loader - some interesting integration with Guice, but on the consumer side, not directly relevant here

Reply all
Reply to author
Forward
0 new messages