Hi all,

Well this is what I have worked out.

1) Matthew's XML snippet runs the assembly as part of the build packaging
process. To run it using the mvn assembly:assembly command you need to edit
the pom.xml and add a configuration section.

2) You can use the default descriptor "targets" such as
bin/jar-with-dependencies etc or you can write your own assembly.xml files
and refer to them from your pom.xml. I.e under the plugin definition you
include

<configuration>
  <descriptors>
          <descriptor>yourassembly.xml </descriptor>
  </descriptors>
</configuration>

I copied the default descriptor for the jar-with-dependencies "target" and
edited my pom.xml appropriately. When I run mvn assembly:assembly I get the
error


[INFO]
------------------------------------------------------------------------
[INFO] An invalid artifact was detected.

This artifact might be in your project's POM, or it might have been included
transitively during the resolution process. Here is the information we do
have for this artifact:

    o GroupID:     za.co.jumpingbean
    o ArtifactID:  appgen
    o Version:     1.0-SNAPSHOT
    o Type:        jar

[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.artifact.InvalidArtifactRTException: For artifact
{za.co.jumpingbean:appgen:1.0-SNAPSHOT:jar}: An attached artifact must have
a different ID than its corresponding main artifact.



-- 
View this message in context: 
http://www.nabble.com/Packaging-application-with-dependent-jars--tf2916305s177.html#a8176705
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