1

我创建了一个自定义包装类型foo,并foo有一个 LifecycleMapping,它调用了几个插件。是否可以为这些插件和阶段提供 default<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>

4

0 回答 0