How to make a Maven plugin

Posted on by Kim

// To make project

mvn archetype:generate
--
Choose number 12
--
Define value for groupId: : as.moes.plugin    
Define value for artifactId: : testplugin
Define value for version:  1.0-SNAPSHOT: : 
Define value for package:  as.moes.plugin: : 
Confirm properties configuration:
groupId: as.moes.plugin
artifactId: testplugin
version: 1.0-SNAPSHOT
package: as.moes.plugin
// To change
cd testplugin
mvn eclipse:eclipse
// To deploy
mvn testplugin:touch
// Test with
<build>
    <plugins>
        <plugin>
            <groupid>as.moes.plugin</groupId>
            <artifactid>testplugin</artifactId>
            <version>1.0-SNAPSHOT</version>
            <configuration>
                <outputdirectory>/home/kim/tmp</outputDirectory>
            </configuration>
        </plugin>
    </plugins>
</build>

0 Responses to "How to make a Maven plugin":