Thanks, Paul - I added that as a file named assembly.xml in the
directory with my pom.xml in it.
I then added this to my pom (in the build/plugins section):
===
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.0-beta-1</version>
<configuration>
<descriptorId>bin</descriptorId>
<descriptors>
<descriptor>./assembly.xml</descriptor>
</descriptors>
<finalName>marcdelivery</finalName>
<outputDirectory>target/assembly</outputDirectory>
<workDirectory>target/assembly/work</workDirectory>
</configuration>
</plugin>
===
But it still only creates 4 files:
- target/marc-delivery-1.0-SNAPSHOT.jar
- target/assembly/marcdelivery-bin.tar.gz
- target/assembly/marcdelivery-bin.tar.bz2
- target/assembly/marcdelivery-bin.zip
If I remove the <descriptorId>bin</descriptorId> line from the pom, I
get only one file (target/marc-delivery-1.0-SNAPSHOT.jar) and an
error. :(
How do you have this in your project?
Larry
On 11/20/06, pjungwir <[EMAIL PROTECTED]> wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]