In this case, I think you really should break your project (Java files) up into multiple modules and then include each one in the larger WAR file as a dependency. Then you can "classify the classes and archive them into different jar files" very easily.
Wayne On 11/8/06, jiangshachina <[EMAIL PROTECTED]> wrote:
Hi Wendy, > There is a configuration option to do this in the war plugin itself. > See 'archiveClasses' here: > http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html That really is a pretty setting. But my requirement may be complex. The approach shown above only archive all of classes into one jar file. I expect to classify the classes and archive them into different jar files. I may have "strange" requirement :-) a cup of Java, cheers! Sha Jiang Wendy Smoak-3 wrote: > > On 11/8/06, jiangshachina <[EMAIL PROTECTED]> wrote: >> >> Hello, >> Now, my requirement is following, >> I want to transform >> WAR >> |--WEB-INF >> |--classes >> |--packages >> to >> WAR >> |--WEB-INF >> |--lib >> |--artifact.jar >> >> I'm trying maven-assembly-plugin. > > There is a configuration option to do this in the war plugin itself. > > See 'archiveClasses' here: > http://maven.apache.org/plugins/maven-war-plugin/war-mojo.html > > -- > Wendy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/no-classes%2C-but-lib--tf2577029s177.html#a7252280 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]