DhanaGitHub / maven-replacer-plugin

Automatically exported from code.google.com/p/maven-replacer-plugin
0 stars 0 forks source link

Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to com.google.code.maven_replacer_plugin.Replacement #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. user <replacements> <skip>true</skip>

What is the expected output? What do you see instead?
controle skip execution. 

What version of the product are you using?
1.5.2

Please provide any additional information below.
<plugin>
                <groupId>com.google.code.maven-replacer-plugin</groupId>
                <artifactId>replacer</artifactId>
                <version>1.5.2</version>
                <executions>
                    <execution>
                        <phase>prepare-package</phase>
                        <goals>
                            <goal>replace</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <ignoreMissingFile>true</ignoreMissingFile>
                    <file>/sigeo-core/target/classes/META-INF/persistence.xml</file>
                    <replacements>
                        <skip>true</skip>
                        <replacement>
                            <token>java:/data-ds</token>
                            <value>java:/data-hlg</value>
                        </replacement>
                    </replacements>
                </configuration>
            </plugin>

Original issue reported on code.google.com by mederaf...@gmail.com on 16 May 2013 at 2:01

GoogleCodeExporter commented 9 years ago
Move the <skip>true</skip> outside of replacements and just into the 
configuration.

Original comment by baker.st...@gmail.com on 17 May 2013 at 10:53

GoogleCodeExporter commented 9 years ago
Ok, thanks!

Atenciosamente,

Rafael Nunes
I'm free - Linux
Linux User #439174
http://www.linkedin.com/in/mederafael

Original comment by mederaf...@gmail.com on 17 May 2013 at 10:58

GoogleCodeExporter commented 9 years ago

Original comment by baker.st...@gmail.com on 17 May 2013 at 1:08