2

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?

A_Di-Matteo
  • 26,902
  • 7
  • 94
  • 128
Mite Mitreski
  • 3,596
  • 3
  • 29
  • 39
  • You are correct, per the [documentation](http://maven.apache.org/guides/introduction/introduction-to-profiles.html) `extensions` are not one of the elements that can be modified in a profile. – user944849 Oct 30 '14 at 20:05
  • but is there some other way to enable the same functionality? – Mite Mitreski Oct 31 '14 at 09:06
  • Not that I know of. I'm interested in other answers this question might get too. – user944849 Oct 31 '14 at 13:04
  • Are you really talking about extensions like this http://maven.apache.org/guides/mini/guide-using-extensions.html or maven plugin extensions ? – khmarbaise Nov 01 '14 at 20:42
  • @khmarbaise extensions like in the guide. Is this somehow illogical to be placed in a profile or ? – Mite Mitreski Nov 29 '14 at 22:51

0 Answers0