jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2.x Assembly Plugin
  • MASSEMBLY-544

DependencySet includes filter not working in 2.2

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.2
  • Fix Version/s: 2.2.2
  • Labels:
    None
  • Environment:
    win32, Maven 2.2.1 and Maven 3.0.2

Description

If the includes/include "subelements are present, they define a set of artifact coordinates to include." That's the definition from the assembly site. Until recently, we have been using this filter as advertised. However, yesterday we upgraded the plugin from 2.2-beta-2 to 2.2. Now, the inclusion filter has no effect, and all dependencies are included.

<?xml version="1.0"?>
<assembly xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/xsd/assembly-1.1.0-SNAPSHOT.xsd">
	<id>dam</id>
	<formats>
		<format>tar</format>
	</formats>
	<includeBaseDirectory>true</includeBaseDirectory>
	<baseDirectory>${project.version}</baseDirectory>
	<dependencySets>
		<dependencySet>
			<outputFileNameMapping>${artifact.artifactId}.${artifact.extension}</outputFileNameMapping>
			<outputDirectory>lib</outputDirectory>
			<fileMode>0744</fileMode>
			<directoryMode>0755</directoryMode>
			<useTransitiveDependencies>true</useTransitiveDependencies>
			<useTransitiveFiltering>true</useTransitiveFiltering>
			<includes>
				<include>com.mycompany*</include>
			</includes>
		</dependencySet>
	</dependencySets>
</assembly>

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Andreas added a comment - 22/Feb/11 2:19 AM

we have same issue also for exclude filter after upgrading from 2.2-beta-5 to 2.2

Show
Andreas added a comment - 22/Feb/11 2:19 AM we have same issue also for exclude filter after upgrading from 2.2-beta-5 to 2.2
Hide
Permalink
Andreas added a comment - 22/Feb/11 8:33 AM

I solved my problem in defining the filters with wildcards for all subsections of the artifact patterns.

Show
Andreas added a comment - 22/Feb/11 8:33 AM I solved my problem in defining the filters with wildcards for all subsections of the artifact patterns.
Hide
Permalink
John Casey added a comment - 01/Sep/11 6:12 PM

Verified to work vs. maven-assembly-plugin 2.2.1. Added integration test.

Show
John Casey added a comment - 01/Sep/11 6:12 PM Verified to work vs. maven-assembly-plugin 2.2.1. Added integration test.

People

  • Assignee:
    John Casey
    Reporter:
    Omer A Kudat
Vote (2)
Watch (1)

Dates

  • Created:
    26/Jan/11 12:13 PM
    Updated:
    01/Sep/11 6:12 PM
    Resolved:
    01/Sep/11 6:12 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.