Hi,

I'm using maven-resources-plugin:2.4.3 on my Mac.

I found it can't replace placeholder in properties file if it contains the '@' 
character.

For example, I have a env.properties under src\main\resources which has the 
following content:

  jdbc.url=jdbc:oracle:thin:@192.168.1.212:1521:demodb
  solr.home=${solr.home}

I have the following configuration in pom.xml:

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <filtering>true</filtering>
            </resource>
        </resources>
        ...
    </build>

Then I run the following command:

  mvn clean resources:resources -Dsolr.home=/tmp/solr

And check file content using:

  cat target/classes/env.properties

It remains the original content.


If I removed the '@' character in properties file, it just works.

Any ideas?

PS. I also tested this case on Windows and Linux, it passed on Windows but 
failed on Linux.


Regards,
Li Yanhui
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to