
继承AbstractMojo4.0.0 com.wurd wu_m0.1 org.apache.maven maven-plugin-apijar 2.0.6
package com.wurd.plugins.test;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
public class TestMojo extends AbstractMojo {
public void execute() throws MojoExecutionException {
System.out.println("#####");
System.out.println("do something");
System.out.println("#####");
}
}
plugin.xml(放在meta-INF/maven下边)
打包到本地仓库test plugin test plugin com.wurd wu_m0.1 test false true test test plugin-test false true false falsefalse true com.wurd.plugins.test.TestMojo java per-lookup once-per-session true org.apache.maven maven-plugin-apijar 2.0.6 org.codehaus.plexus plexus-utilsjar 3.0
mvn install命令行执行
mvn com.wurd:wu_m:0.1:testpom引用
com.wurd wu_m0.1
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)