[ http://jira.codehaus.org/browse/MASSEMBLY-99?page=comments#action_71047 ] Mike Perham commented on MASSEMBLY-99: --------------------------------------
I get the following debug output from the following code. The problem appears to be ProjectUtils.getDependencies(). It is calling project.getArtifacts() which is returning an empty set. [INFO] [assembly:assembly {execution: default}] [DEBUG] DependencySet[] dir perms: 40755 file perms: 100644 [DEBUG] Before filter: [] {code:title=AbstractAssemblyMojo.java} getLog().debug( "DependencySet[" + output + "]" + " dir perms: " + Integer.toString( archiver.getDefaultDirectoryMode(), 8 ) + " file perms: " + Integer.toString( archiver.getDefaultFileMode(), 8 ) ); Set allDependencyArtifacts = ProjectUtils.getDependencies( getExecutedProject() ); Set dependencyArtifacts = new HashSet( allDependencyArtifacts ); getLog().debug( "Before filter: " + dependencyArtifacts ); {code} {code:title=My Configuration} <dependencySets> <dependencySet> <scope>runtime</scope> <outputDirectory>lib</outputDirectory> </dependencySet> </dependencySets> {code} > dependencySets in a descriptor doesn't work anymore > --------------------------------------------------- > > Key: MASSEMBLY-99 > URL: http://jira.codehaus.org/browse/MASSEMBLY-99 > Project: Maven 2.x Assembly Plugin > Issue Type: Bug > Affects Versions: 2.1 > Environment: all > Reporter: Olivier Lamy > Priority: Blocker > Fix For: 2.2 > > Attachments: descriptor.xml > > > I attached my descriptor file. > <dependencySets> > <dependencySet> > <outputDirectory>lib</outputDirectory> > <unpack>false</unpack> > <scope>runtime</scope> > <!-- > how to exclude dependencies > <excludes> > <exclude>junit:junit</exclude> > </excludes> > --> > </dependencySet> > </dependencySets> > unzip -l on the assembly file show empty lib directory. > Olivier -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira