You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vinicius Carvalho <ja...@gmail.com> on 2006/08/08 20:11:43 UTC

Basic Help with package

Hello there! I need to include files in my META-INF dir (eg my tomcat
context.xml). Where do I put the files on my project so they can be
packaged when using mvn package?

Best regards

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


Re: Basic Help with package

Posted by Matt Brozowski <br...@opennms.org>.
On Aug 8, 2006, at 5:30 PM, Wendy Smoak wrote:

> On 8/8/06, Vinicius Carvalho <ja...@gmail.com> wrote:
>
>> Hello there! I need to include files in my META-INF dir (eg my tomcat
>> context.xml). Where do I put the files on my project so they can be
>> packaged when using mvn package?
>
> Try putting it in src/main/webapp/META-INF .
>
> (Anything in src/main/resources ends up in WEB-INF/classes.)

She is right.  For a WAR in needs to go in src/main/webapp/META-INF

For a JAR it goes in src/main/resources/META-INF.

CRAZY!

Matt


________________________________________________________________________ 
___
Matt Brozowski, OpenNMS Maintainer			Main:	+1 919 812 4984
The OpenNMS Group, Inc.					Fax:		+1 503 961 7746
Email: brozow@opennms.org					URL:	http://www.opennms.com



Re: Basic Help with package

Posted by Wendy Smoak <ws...@gmail.com>.
On 8/8/06, Vinicius Carvalho <ja...@gmail.com> wrote:

> Hello there! I need to include files in my META-INF dir (eg my tomcat
> context.xml). Where do I put the files on my project so they can be
> packaged when using mvn package?

Try putting it in src/main/webapp/META-INF .

(Anything in src/main/resources ends up in WEB-INF/classes.)

-- 
Wendy

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


Re: Basic Help with package

Posted by Matt Brozowski <br...@opennms.org>.
On Aug 8, 2006, at 2:11 PM, Vinicius Carvalho wrote:

> Hello there! I need to include files in my META-INF dir (eg my tomcat
> context.xml). Where do I put the files on my project so they can be
> packaged when using mvn package?

Put them in src/main/resources/META-INF


Matt




________________________________________________________________________ 
___
Matt Brozowski, OpenNMS Maintainer			Main:	+1 919 812 4984
The OpenNMS Group, Inc.					Fax:		+1 503 961 7746
Email: brozow@opennms.org					URL:	http://www.opennms.com