Conditionally adding build extension

62 Views Asked by At

Is there a way to conditionally run build plugin extensions. More specifically :

           <extensions>
                <extension>
                    <groupId>co.leantechniques</groupId>
                    <artifactId>maven-buildtime-extension</artifactId>
                    <version>1.0.1</version>
                </extension>
            </extensions>

Apparently you cannot add extension in a profile for eaxample :

<profiles>
    <profile>
        <id>someid</id>
        <build>
            EXTENSION
        </build>
    </profile>
</profiles> 

any other good solution?

0

There are 0 best solutions below