mojohaus / rpm-maven-plugin

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

Unable to escape filtering tokens #96

Open jakub-bochenski opened 6 years ago

jakub-bochenski commented 6 years ago

When using <filter>true</filter> mapping option I can't get the escaping to work.

E.g. a string like \${basedir} is still replaced to \/some/path.

I've tried configuring an explicit escapeString

                <pluginManagement>
                    <plugins>
                        <plugin>
                            <artifactId>maven-resources-plugin</artifactId>
                            <configuration>
                                <escapeString>\</escapeString>
                            </configuration>
                        </plugin>
                    </plugins>
                </pluginManagement>

as per https://maven.apache.org/plugins/maven-resources-plugin/examples/escape-filtering.html but it doesn't work. (I know it's a different plugin, but I don't see any such option in rpm-plugin)

archiecobbs commented 1 year ago

FYI this might help (haven't tried it myself): https://www.mojohaus.org/rpm-maven-plugin/rpm-mojo.html#escapeString