Ashley Williams wrote:
Does anyone know how to use assembly:assembly, in particular what the
descriptor is supposed to be? I did hardcode it as a path to my pom
from within my pom (that seems wrong) which made the plugin run
without errors, but I didn't see any output file.
Thanks
-AW
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Ashley,
You could create your own Descriptor file. Here is the example of
descriptor that was used when you run "m2 assembly:assembly
-DdescriptorId=jar-with-dependencies".
<assembly>
<id>jar-with-dependencies</id>
<formats>
<format>jar</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<directory>target/classes</directory>
<outputDirectory>/</outputDirectory>
</fileSet>
</fileSets>
<dependencySets>
<dependencySet>
<outputDirectory>/</outputDirectory>
<unpack>true</unpack>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
</assembly>
You could create your own descriptor to get what you want. To use your
customized descriptor file, use "m2 assembly:assembly
-Ddescriptor=path/to/your/descriptor.xml".
Hope this helps,
--- Johnny :)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]