You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "KARR, DAVID (ATTSI)" <dk...@att.com> on 2010/11/23 17:11:10 UTC
Proper way to deploy properties files into WEB-INF/classes?
In my "src/main/java" tree, I have properties files that need to be
deployed into WEB-INF/classes. I thought these would be copied by
default, but they are not. They didn't go into "target/classes" or
"WEB-INF/classes". I don't need to filter properties in it. I'm using
version 2.1.1 of the maven-war-plugin.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Proper way to deploy properties files into WEB-INF/classes?
Posted by Benson Margulies <bi...@gmail.com>.
Or more easily, move them to src/main/resources, following the convention.
On Wed, Nov 24, 2010 at 8:51 PM, GALLAGHER, RON (ATTSI) <RG...@att.com> wrote:
> David,
>
> You can add a project/build/resources/resource entry [1] to your POM
> file to accomplish this.
>
> [1]
> http://maven.apache.org/ref/3.0/maven-model/maven.html#class_resource
>
> Ron Gallagher
>
>
> -----Original Message-----
> From: KARR, DAVID (ATTSI)
> Sent: Tuesday, November 23, 2010 11:11 AM
> To: users@maven.apache.org
> Subject: Proper way to deploy properties files into WEB-INF/classes?
>
> In my "src/main/java" tree, I have properties files that need to be
> deployed into WEB-INF/classes. I thought these would be copied by
> default, but they are not. They didn't go into "target/classes" or
> "WEB-INF/classes". I don't need to filter properties in it. I'm using
> version 2.1.1 of the maven-war-plugin.
>
> ---------------------------------------------------------------------
> 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Proper way to deploy properties files into WEB-INF/classes?
Posted by "GALLAGHER, RON (ATTSI)" <RG...@att.com>.
David,
You can add a project/build/resources/resource entry [1] to your POM
file to accomplish this.
[1]
http://maven.apache.org/ref/3.0/maven-model/maven.html#class_resource
Ron Gallagher
-----Original Message-----
From: KARR, DAVID (ATTSI)
Sent: Tuesday, November 23, 2010 11:11 AM
To: users@maven.apache.org
Subject: Proper way to deploy properties files into WEB-INF/classes?
In my "src/main/java" tree, I have properties files that need to be
deployed into WEB-INF/classes. I thought these would be copied by
default, but they are not. They didn't go into "target/classes" or
"WEB-INF/classes". I don't need to filter properties in it. I'm using
version 2.1.1 of the maven-war-plugin.
---------------------------------------------------------------------
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: Proper way to deploy properties files into WEB-INF/classes?
Posted by Antonio Petrelli <an...@gmail.com>.
2010/11/23 KARR, DAVID (ATTSI) <dk...@att.com>:
> In my "src/main/java" tree, I have properties files that need to be
> deployed into WEB-INF/classes. I thought these would be copied by
> default, but they are not. They didn't go into "target/classes" or
> "WEB-INF/classes". I don't need to filter properties in it. I'm using
> version 2.1.1 of the maven-war-plugin.
Follow the Maven way, put them in "src/main/resources".
Antonio
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org