You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Prout John - jprout <Jo...@acxiom.com> on 2007/03/07 22:46:49 UTC

Excluding a File from jar Packaging

Hi

 

I am using AndroMDA, an MDA tool, in my projects. The AndroMDA project
I've developed is built using Maven 2.

 

My problem is that under some circumstances, I want to exclude one of
the resource files (the Spring applicationContext.xml) from the final
jar packaging step. Is there any way in Maven 2 to exclude a resource
file from the jar packaging? I can't find any documentation telling me
how to do this. The fact that I'm using AndroMDA for this project means
that it's difficult to change where the applicationContext.xml is
generated, which would be the easiest way to exclude it from the jar.

 

Thanks in advance

 

John

*************************************************************************
The information contained in this communication is confidential, is
intended only for the use of the recipient named above, and may be
legally privileged.

If the reader of this message is not the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.

If you have received this communication in error, please resend this
communication to the sender and delete the original message or any copy
of it from your computer system.

Thank you.
*************************************************************************

Re: Excluding a File from jar Packaging

Posted by Dennis Lundberg <de...@apache.org>.
No, not yet:

http://jira.codehaus.org/browse/MJAR-30


Prout John - jprout wrote:
> Hi
> 
>  
> 
> I am using AndroMDA, an MDA tool, in my projects. The AndroMDA project
> I've developed is built using Maven 2.
> 
>  
> 
> My problem is that under some circumstances, I want to exclude one of
> the resource files (the Spring applicationContext.xml) from the final
> jar packaging step. Is there any way in Maven 2 to exclude a resource
> file from the jar packaging? I can't find any documentation telling me
> how to do this. The fact that I'm using AndroMDA for this project means
> that it's difficult to change where the applicationContext.xml is
> generated, which would be the easiest way to exclude it from the jar.
> 
>  
> 
> Thanks in advance
> 
>  
> 
> John
> 
> *************************************************************************
> The information contained in this communication is confidential, is
> intended only for the use of the recipient named above, and may be
> legally privileged.
> 
> If the reader of this message is not the intended recipient, you are 
> hereby notified that any dissemination, distribution or copying of this
> communication is strictly prohibited.
> 
> If you have received this communication in error, please resend this
> communication to the sender and delete the original message or any copy
> of it from your computer system.
> 
> Thank you.
> *************************************************************************
> 


-- 
Dennis Lundberg

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