Thanks Wendy!  I feel like you're becoming my personal answer machine these 
days....

Thanks again!

----- Original Message ----
From: Wendy Smoak <[EMAIL PROTECTED]>
To: Maven Users List <[email protected]>
Sent: Thursday, April 27, 2006 2:57:28 PM
Subject: Re: Adding source to jar?

On 4/27/06, Sean McNamara <[EMAIL PROTECTED]> wrote:

> I'm sure this is documented somewhere, but I could really use a quick answer: 
>  What needs to be done in order to package a directory of source code inside 
> a jar?

Treat it like any other resource you want to include:

        <resources>
            <resource>
                <directory>src/main/java</directory>
            </resource>
            ...
       </resources>

If you wanted it to appear in a 'src' directory rather than mixed in
with the .class files, you could add <targetPath>src/</targetPath> to
the <resource>.

If you also have files in the usual place, src/main/resources, I think
you'll have to explicitly add them since you're overriding the
<resources> element:

             <resource>
                <directory>src/main/resources</directory>
            </resource>

HTH,
--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to