You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by SudeepShakya <sh...@live.com> on 2012/04/02 07:13:25 UTC

Accessing .properties file

I am new to Maven and using Wicket Framework in Netbeans IDE. Previously i
used Ant(set default by IDE).
I created a Maven project and added Wicket Framework in Netbeans, and I want
to use .properties file for my application. In ant i simply put the
properties file in the package where the java file is located but i don't
know how to access in maven project.

Thanx in advance.

--
View this message in context: http://maven.40175.n5.nabble.com/Accessing-properties-file-tp5611509p5611509.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Accessing .properties file

Posted by Milos Kleint <mk...@gmail.com>.
common, just entering it into google gives you the right page at the top..

no, you don't need to configure anything, if you just add your
properties file into the src/main/resources (sub)directory, it will be
included into the resulting jar file.

Milos

On Mon, Apr 2, 2012 at 7:31 AM, SudeepShakya <sh...@live.com> wrote:
> Thanks for reply, Can u send me the link to the plugin.
> Is there something to add/modify in pom file.
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Accessing-properties-file-tp5611509p5611529.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Accessing .properties file

Posted by SudeepShakya <sh...@live.com>.
Thanks for reply, Can u send me the link to the plugin. 
Is there something to add/modify in pom file.

--
View this message in context: http://maven.40175.n5.nabble.com/Accessing-properties-file-tp5611509p5611529.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Accessing .properties file

Posted by Milos Kleint <mk...@gmail.com>.
src/main/resources by default. See the maven-resources-pluign for more
details and configuration options.

Milos

On Mon, Apr 2, 2012 at 7:13 AM, SudeepShakya <sh...@live.com> wrote:
> I am new to Maven and using Wicket Framework in Netbeans IDE. Previously i
> used Ant(set default by IDE).
> I created a Maven project and added Wicket Framework in Netbeans, and I want
> to use .properties file for my application. In ant i simply put the
> properties file in the package where the java file is located but i don't
> know how to access in maven project.
>
> Thanx in advance.
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/Accessing-properties-file-tp5611509p5611509.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org