chrisdchristo / capsule-maven-plugin

Capsule Maven Plugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to specify capsule-daemon?

gitblit opened this issue · comments

I see the <caplets> tag but it's unclear how to specify capsule-daemon, for example. Do I add that as a compile dependency to my app?

Adding capsule-daemon as a compile dependency did not work.

[INFO] --- capsule-maven-plugin:1.0.1:build (default) @ reactor-app ---
[WARNING] [Capsule] Could not find caplet DaemonCapsule class, skipping.

If the class is a local caplet then yes you can do <caplets>MyCaplet</caplets>. However, if you want to use a caplet that's not a local class (i.e get it from a dependency) you need to have the full coordinates:

<caplets>co.paralleluniverse:capsule-daemon:0.1.0</caplets>

And you also need to include it as a dependency:

<dependency>
    <groupId>co.paralleluniverse</groupId>
    <artifactId>capsule-daemon</artifactId>
    <version>0.1.0</version>
</dependency>

And if you want to use multiple caplets, you can mix local and non-local caplets too:

<caplets>MyCapsule co.paralleluniverse:capsule-daemon:0.1.0</caplets>

However, there is a bug at the moment, see please await release of next version.