mojohaus / rpm-maven-plugin

http://www.mojohaus.org/rpm-maven-plugin/
Other
56 stars 48 forks source link

Feature Request: Add skip configuration option. #88

Open mbap opened 7 years ago

mbap commented 7 years ago

It would be nice to be able to skip building the rpm, while leaving it in an execution block.

I have some team members that run Windows, and they don't have cygwin or rpmbuild installed on naturally they would like the option to not fail the build do to a system dep they don't have.

thachhoang commented 6 years ago

@mbap you can move the plugin out of <build> and into a Maven profile, like this:

<profiles>
    <profile>
        <activation>
            <os>
                <family>unix</family>
            </os>
        </activation>
        <build>
            <plugins>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>rpm-maven-plugin</artifactId>
                </plugin>
            </plugins>
        </build>
    </profile>
</profiles>