编辑:Solved在我的项目pom中缺少标记<packaging>maven-plugin</packaging>
。我误解了post中的句子,不知道遗漏的意思......:
谢谢你,我想通了我已经在pom文件中遗漏了
<packaging>maven-plugin</packaging>
希望这有助于其他人
我正在尝试构建maven插件但是我无法生成plugin.xml文件。
我已经尝试过maven-plugin-plugin的命令行和pom配置,有/没有描述符目标和阶段。我想我就是在那里做的。
可能正是其余部分未正确完成。我找到的唯一相关主题是why is my maven plugin descriptor not being generated automatically?并且没有多大帮助。
这是maven日志 http://pastebin.com/uA2KFTXN
我有两个mojos与Java4 anotations(@goal和@phase)。我的Pom中有以下标签
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugin-plugin</artifactId>
<version>3.1</version>
<configuration>
<goalPrefix>signature</goalPrefix>
</configuration>
<executions>
<execution>
<goals>
<goal>descriptor</goal>
</goals>
<phase>process-classes</phase>
</execution>
</executions>
</plugin>