by default in pom.xml there has properity <name>
such as:
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.mycompany.app</groupId>
    <artifactId>my-app</artifactId>
    <packaging>jar</packaging>
    <version>1.1-SNAPSHOT</version>
    <name>my-app</name>

and I use filtering like this:
      <build>
        <resources>
          <resource>
            <directory>src/main/resources</directory -->
            <filtering>true</filtering>
          </resource>
        </resources>
    </build>

then files in src/main/resources has been replaced not as I wanted, such as
in abc.txt:
path=${name}.dat changed to path=my-app.dat

actually I don't want it to be replaced, how can I do?

Reply via email to