You cannot use *Maven* properties in your application. You need to use some
Java JRE call or equivalent in your application to load the configuration
at startup or run time. Your pom is merely loading the properties from a
file so that *maven* can use them during build time, i. e. you could
reference them in your pom like ${my.property.name}. This will *not* by
itself make this property available to your application.
Am 10.04.2012 14:23 schrieb "mavenbabuk" <babui...@gmail.com>:

>
>        I have tried with externalize property file named as
> *"my-file.properties"*. I configured in pom for externalize as given below,
>
>                        <plugin>
>                                    <groupId>org.codehaus.mojo</groupId>
>
>  <artifactId>properties-maven-plugin</artifactId>
>                                    <version>1.0-alpha-1</version>
>                                    <executions>
>                                        <execution>
>                                            <phase>initialize</phase>
>                                            <goals>
>
>  <goal>read-project-properties</goal>
>                                            </goals>
>                                            <configuration>
>                                                <files>
>
>  <file>*my-file.properties*</file>
>                                                </files>
>                                            </configuration>
>                                        </execution>
>                                    </executions>
>                                </plugin>
>        But, It does not support.
>
>        Please *suggest* me best way to *externalize properties*.
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/replace-parameters-when-overlaying-in-maven-tp5626856p5629742.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to