I believe that this is the correct behaviour.
The Parent pom has a dependencyManagement section where you can put the versions of libraries that you want to use but this does not push dependencies into child POMs. This is a good thing since we have about 60 POMs that share a parent and do not want all the dependencies in every jar or war that we make.
We do want the version of any artifact to be the same in all projects.

Ron

On 17/09/2012 11:15 AM, Simon Temple wrote:
Hi

I'm trying to use the assembly plugin to build a product distribution.  I 
include a parent POM declaration in my POM.  The parent POM has many 
dependencies (mixed scope: compile, provided and test)

When I execute make-assembly the resulting distribution does not contain the 
dependent artifacts defined in my parent POM.

Looking at the  'effective POM' I can see the parent POM dependencies, yet the 
assembly plugin does not include them in the distribution.

Is this a bug in the assembly-plugin or am I doing something wrong?

assembly.xml:

<assembly

     <id>distro</id>
<formats>
         <format>dir</format>
     </formats>
<includeBaseDirectory>false</includeBaseDirectory> <fileSets>
         <fileSet>
             <directory>src/main/resources</directory>
             <outputDirectory>/</outputDirectory>
         </fileSet>
     </fileSets>

     <dependencySets>
         <dependencySet>
             <outputDirectory>/lib</outputDirectory>
         </dependencySet>
     </dependencySets>
</assembly>

pom.xml:

<snip>

<parent>
        <artifactId>my-parent.pom</artifactId>
        <groupId>com.name.product</groupId>
        <version>5.0.0-SNAPSHOT</version>
</parent>

<snip>

If I explicitly add dependencies to my POM then the assembly plugin correctly 
adds them to the lib folder of my distribution.


TIA



Simon Temple








--
Ron Wheeler
President
Artifact Software Inc
email: [email protected]
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


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

Reply via email to