Skip to content

maven plugin

Tadeas Palusga edited this page Feb 22, 2015 · 3 revisions

As you might already know, you don't have to create plugins manually (creating plugins) but you can use simple plugin for maven provided as a part of Pluger framework. Using this plugin creating pluger modules becomes very easy and straightforward.

Jast add the following lines to build/plugins section of your maven pom.xml descriptor

<build>
    <plugins>
        <plugin>
            <groupId>cz.cuni.mff.d3s.been.pluger</groupId>
            <artifactId>pluger-maven-plugin</artifactId>
            <version>YOUR_FAVORITE_VERSION</version>
            <configuration>
                <activator>fqdn.to.your.PluginActivator</activator>
            </configuration>
            <executions>
                <execution>
                    <phase>package</phase>
                    <goals>
                        <goal>pluginate</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Don't forget to configure correct activator of the plugin/module.

THen when you invoke mvn:package on your project pluger-maven-plugin will generate the pluger plugin package (*.plugin) from your sources into target folder of your project.

Everything the plugin does is it collects all transitive compile and runtime dependencies (optional dependencies included), generates approprate plugin json desctiptor and creates final plugin package (*.plugin) for you.

Clone this wiki locally