myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Ivankovits <ma...@ops.co.at>
Subject Re: Maven scripts?
Date Thu, 01 Dec 2005 16:34:55 GMT
Sean Schofield wrote:
> Quick question.  How do you include LICENSE.txt in your jar file. 
> Isn't it supposed to be automatic if its in your top level dir?
>   
I am not an expert, but my project.xml contains

    <licenses>
        <license>
            <name>The Apache Software License, Version 2.0</name>
            <url>/LICENSE.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>


bundling other stuff you have to add a resource

<build>
    <resources>
.....
            <resource>
                <directory>${basedir}</directory>
                <targetPath>META-INF</targetPath>
                <includes>
                    <include>NOTICE.txt</include>
                </includes>
            </resource>
        </resources>

Hope that helps!

Mario


Mime
View raw message