rpm-maven-plugin icon indicating copy to clipboard operation
rpm-maven-plugin copied to clipboard

Feature Request: Add skip configuration option.

Open mbap opened this issue 7 years ago • 1 comments

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.

mbap avatar Aug 10 '17 21:08 mbap

@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>

thachhoang avatar Sep 29 '17 22:09 thachhoang