我创建了一个自定义打包类型foo
,foo
有一个LifecycleMapping,它调用了几个插件。是否可以为这些插件和阶段提供默认的<configuration/>
或pom.xml?
我想在下面列出的doSomething
阶段添加<package>
插件的默认配置。
<component-set>
<components>
<component>
<role>org.apache.maven.lifecycle.mapping.LifecycleMapping</role>
<role-hint>foo</role-hint>
<implementation>
org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping
</implementation>
<configuration>
<phases>
<package>
packaing:definition:doSomething
</package>
</phases>
</configuration>
</component>
<component>
<role>org.apache.maven.artifact.handler.ArtifactHandler</role>
<role-hint>foo</role-hint>
<implementation>
org.apache.maven.artifact.handler.DefaultArtifactHandler
</implementation>
<configuration>
<extension>jar</extension>
<type>foo</type>
<packaging>foo</packaging>
<language>java</language>
<addedToClasspath>true</addedToClasspath>
</configuration>
</component>
</components>