What are you trying to build?
The project will build one artifact and the assembly plug-in will build another.
Are you sure you need 3 artifacts to be built?

We use maven to build web services which include both a client jar and a war for the service but we only need 1 execution.


Ron


On 14/12/2010 1:36 AM, Danny Thomas wrote:
Hi,

I'm using the assembly plugin to package my project. I currently have two 
assembly descriptors with two executions for my project which generates 
distributions of the project for two different audiences:

       <!-- Client distribution -->
       <execution>
         <id>client</id>
         <phase>package</phase>
         <goals>
           <goal>single</goal>
         </goals>
         <configuration>
           <descriptors>
             <descriptor>src/main/assembly/dist-client.xml</descriptor>
           </descriptors>
         </configuration>
       </execution>
       <!-- Developer distribution -->
       <execution>
         <id>developer</id>
         <phase>package</phase>
         <goals>
           <goal>single</goal>
         </goals>
         <configuration>
           <descriptors>
             <descriptor>src/main/assembly/dist-developer.xml</descriptor>
           </descriptors>
         </configuration>
       </execution>
     </executions>

I'm using filters to substitute in the distributable jar filename, and they're 
definitely part of the solution, but I also need the final filename, the 
destination shell script names etc to represent the execution, so need 
expressions that are visible to the assembly. It's a command line app and I 
display different available actions depending on the distribution type passed 
in on a system parameter, so the filtered shell  script parameters an filenames 
don't have to differ at all except for the 'client' vs 'developer' designator.

I'm currently maintaining two descriptors and set of distribution resources 
which I want to avoid, but I can't seem to find a way of getting an expression 
containing the execution id or another parameter unique to the execution to the 
descriptor. I'd assume that if the expression is visible to the assembly, the 
plugin will also be able to substitute it into my shell scripts to consolidate 
the build into one assembly descriptor with two executions.

I've also had problems  suppressing output using the jar-with-dependencies 
assembly:  I'd like to suppress the 'skipping' and Plexus configuration merge 
related messages. Is this possible?

On the former, if have a Stackoverflow question if you're a member and you'd 
like earn yourself some reputation:

http://stackoverflow.com/questions/4406660/how-do-i-include-maven-assembly-execution-specific-expressions-in-an-assembly-des

Cheers,
Danny


This email and any attachments may contain confidential and proprietary 
information of Blackboard that is for the sole use of the intended recipient. 
If you are not the intended recipient, disclosure, copying, re-distribution or 
other use of any of this information is strictly prohibited. Please immediately 
notify the sender and delete this transmission if you received this email in 
error.



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to