What I am trying to accomplish is to create new war file form the set of existing wars. I created two test wars: war1 and war2. The goal is to create new war that will have JSPs from both war1 and war2. So the steps are
1.Unpack war1 and war2 files
2.Create new war file using JSPs from unpacked wars
I tried to use assembly plugin for this:
<assembly>
 <id>war</id>
 <formats>
    <format>war</format>
 </formats>
 .
 .
 .
 <dependencySets>
   <dependencySet>
     <unpack>true</unpack>
     <outputDirectory>/</outputDirectory>
     <includes>
       <include>testwar:war1</include>
       <include>testwar:war2</include>
     </includes>
   </dependencySet>
 </dependencySets>
</assembly>
However there are problems:
First is that assembly plugin does not know how to unpack war file:

Unable to obtain unarchiver for file '/testwar/war1/1.0-SNAPSHOT/war1-1.0-SNAPSHOT.war' When I switch to jar it does unpack them but now it cannot create new war file:

org.codehaus.plexus.archiver.ArchiverException: webxml attribute is required
Can assembly plugin assemble wars?
Is there a better way to do this?

Thanks,
Miodrag


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

Reply via email to