Hi Larry,

I'm doing this, too. I think you'll need to create your own assembly
descriptor. Here is mine:

<assembly>
    <id>bin</id>
    <formats>
        <format>tar.gz</format>
        <format>zip</format>
    </formats>
    <fileSets>
        <fileSet>
            <directory>target</directory>
            <outputDirectory></outputDirectory>
            <includes>
                <include>*.jar</include>  <!-- the jar of this project's
classes -->
            </includes>
        </fileSet>
        <fileSet>
            <directory>target/scripts</directory>
            <outputDirectory></outputDirectory>
            <includes>
                <include>*</include>  <!-- clui scripts to launch the main
java class -->
            </includes>
            <fileMode>755</fileMode>
        </fileSet>
        <fileSet>
            <directory>target/doc</directory>
            <outputDirectory></outputDirectory>
            <includes>
                <include>*</include>
            </includes>
        </fileSet>
    </fileSets>
    <files>
        <file>
            <source>README</source>
            <outputDirectory>/</outputDirectory>
            <fileMode>644</fileMode>   <!-- broken. see
http://jira.codehaus.org/browse/MASSEMBLY-153 -->
        </file>
    </files>
    <dependencySets>
        <dependencySet>
        </dependencySet>
    </dependencySets>
</assembly>

Paul


Larry Meadors-2 wrote:
> 
> Hi, I am using maven for the first time, so I apologize if this is a
> retarded question, but I can't find it anywhere in the docs.
> 
> I have an app that is a command line app. I want to create an assembly
> that has my jar, along with the other jars that are listed as
> dependencies on it.
> 
> I tried the "jar-with-dependencies" approach, and that *almost* works,
> but one of the jars i am including has some added files in the
> META-INF directory, and they do not end up getting included, so the
> app fails. Bummer. :(
> 
> So, I guess i am looking for one of two things:
> 
> 1) how can I get *all* the files in the uber jar.
> 
> -or-
> 
> 2) how can I get the assembly to just put all the individual dependent
> jars in a directory somewhere?
> 
> I think I'd prefer #2, but at this point... I'll take what I can get! :-)
> 
> TIA,
> Larry
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Using-the-assembly-plugin-to-build-a-stand-alone-application-tf2670816s177.html#a7448665
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to