[ 
https://jira.codehaus.org/browse/MASSEMBLY-644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=319657#comment-319657
 ] 

Maik Riechert edited comment on MASSEMBLY-644 at 2/17/13 11:13 AM:
-------------------------------------------------------------------

Sorry, made a mistake on formatting and can't edit it. The bold parts are 
surrounded by stars...

Edit: The debug output I get is the following:

{noformat}[DEBUG] Processing binary dependencies for module project: 
com.ardor3d:ardor3d-lwjgl:bundle:0.9-SNAPSHOT
[DEBUG] Processing DependencySet (output=null)
[DEBUG] Filtering dependency artifacts WITHOUT transitive dependency path 
information.
[DEBUG] Statistics for Excludes filter:
o '*:lwjgl*natives-*'
o '*:jinput*natives-*'

[WARNING] The following patterns were never triggered in this artifact 
exclusion filter:
o  '*:lwjgl*natives-*'
o  '*:jinput*natives-*'
[...]
[DEBUG] Adding dependency artifact 
org.lwjgl.lwjgl:lwjgl-platform:jar:natives-linux:2.8.4.
[...]{noformat}

Shouldn't this artifact be matched by {noformat} *:lwjgl*natives-*{noformat}?

As mentioned, it works for an assembly inside a module (ardor3d-examples):

{noformat}[DEBUG] Filtering dependency artifacts WITHOUT transitive dependency 
path information.
[DEBUG] org.lwjgl.lwjgl:lwjgl-platform:jar:natives-windows:2.8.4 was removed by 
one or more filters.
[DEBUG] org.lwjgl.lwjgl:lwjgl-platform:jar:natives-linux:2.8.4 was removed by 
one or more filters.
[DEBUG] org.lwjgl.lwjgl:lwjgl-platform:jar:natives-osx:2.8.4 was removed by one 
or more filters.
[DEBUG] net.java.jinput:jinput-platform:jar:natives-linux:2.0.5 was removed by 
one or more filters.
[DEBUG] net.java.jinput:jinput-platform:jar:natives-windows:2.0.5 was removed 
by one or more filters.
[DEBUG] net.java.jinput:jinput-platform:jar:natives-osx:2.0.5 was removed by 
one or more filters.
[DEBUG] Statistics for Excludes filter:
o '*:lwjgl*natives-*'
o '*:jinput*natives-*'

[DEBUG] The following artifacts were removed by this artifact exclusion filter: 
org.lwjgl.lwjgl:lwjgl-platform:jar:natives-windows:2.8.4
org.lwjgl.lwjgl:lwjgl-platform:jar:natives-linux:2.8.4
org.lwjgl.lwjgl:lwjgl-platform:jar:natives-osx:2.8.4
net.java.jinput:jinput-platform:jar:natives-linux:2.0.5
net.java.jinput:jinput-platform:jar:natives-windows:2.0.5
net.java.jinput:jinput-platform:jar:natives-osx:2.0.5{noformat}
                
      was (Author: neothemachine):
    Sorry, made a mistake on formatting and can't edit it. The bold parts are 
surrounded by stars...

Edit: The debug output I get is the following:

{noformat}[DEBUG] Processing binary dependencies for module project: 
com.ardor3d:ardor3d-lwjgl:bundle:0.9-SNAPSHOT
[DEBUG] Processing DependencySet (output=null)
[DEBUG] Filtering dependency artifacts WITHOUT transitive dependency path 
information.
[DEBUG] Statistics for Excludes filter:
o '*:lwjgl*natives-*'
o '*:jinput*natives-*'

[WARNING] The following patterns were never triggered in this artifact 
exclusion filter:
o  '*:lwjgl*natives-*'
o  '*:jinput*natives-*'
[...]
[DEBUG] Adding dependency artifact 
org.lwjgl.lwjgl:lwjgl-platform:jar:natives-linux:2.8.4.
[...]{noformat}

Shouldn't this artifact be matched by {noformat} *:lwjgl*natives-*{noformat} ? 
Using <useTransitiveFiltering>true</useTransitiveFiltering> doesn't fix the 
problem.

As mentioned, it works for an assembly inside a module (ardor3d-examples):

{noformat}[DEBUG] Filtering dependency artifacts WITHOUT transitive dependency 
path information.
[DEBUG] org.lwjgl.lwjgl:lwjgl-platform:jar:natives-windows:2.8.4 was removed by 
one or more filters.
[DEBUG] org.lwjgl.lwjgl:lwjgl-platform:jar:natives-linux:2.8.4 was removed by 
one or more filters.
[DEBUG] org.lwjgl.lwjgl:lwjgl-platform:jar:natives-osx:2.8.4 was removed by one 
or more filters.
[DEBUG] net.java.jinput:jinput-platform:jar:natives-linux:2.0.5 was removed by 
one or more filters.
[DEBUG] net.java.jinput:jinput-platform:jar:natives-windows:2.0.5 was removed 
by one or more filters.
[DEBUG] net.java.jinput:jinput-platform:jar:natives-osx:2.0.5 was removed by 
one or more filters.
[DEBUG] Statistics for Excludes filter:
o '*:lwjgl*natives-*'
o '*:jinput*natives-*'

[DEBUG] The following artifacts were removed by this artifact exclusion filter: 
org.lwjgl.lwjgl:lwjgl-platform:jar:natives-windows:2.8.4
org.lwjgl.lwjgl:lwjgl-platform:jar:natives-linux:2.8.4
org.lwjgl.lwjgl:lwjgl-platform:jar:natives-osx:2.8.4
net.java.jinput:jinput-platform:jar:natives-linux:2.0.5
net.java.jinput:jinput-platform:jar:natives-windows:2.0.5
net.java.jinput:jinput-platform:jar:natives-osx:2.0.5{noformat}
                  
> Exclusions in dependencySet inside moduleSet->binaries have no effect
> ---------------------------------------------------------------------
>
>                 Key: MASSEMBLY-644
>                 URL: https://jira.codehaus.org/browse/MASSEMBLY-644
>             Project: Maven 2.x Assembly Plugin
>          Issue Type: Bug
>          Components: dependencySet, filtering, moduleSet
>    Affects Versions: 2.4
>            Reporter: Maik Riechert
>
> I'm trying to create a distribution assembly of a multi-module project in a 
> separate distribution module which works quite nice, except that exclusions 
> of dependencies of modules seem to be ignored. This is strange, as the same 
> exclusions do work in an assembly inside a submodule.
> This is the problematic descriptor:
> {{
> <?xml version="1.0" encoding="UTF-8"?>
> <assembly>
>       <id>lwjgl</id>
>       <formats>
>               <format>zip</format>
>       </formats>
>       <includeBaseDirectory>false</includeBaseDirectory>
>       <moduleSets>
>               <moduleSet>
>                       <useAllReactorProjects>true</useAllReactorProjects>
>                       <includes>
>                               <include>com.ardor3d:ardor3d-animation</include>
>                               <include>com.ardor3d:ardor3d-awt</include>
>                               <include>com.ardor3d:ardor3d-collada</include>
>                               <include>com.ardor3d:ardor3d-core</include>
>                               <include>com.ardor3d:ardor3d-effects</include>
>                               <include>com.ardor3d:ardor3d-extras</include>
>                               <include>com.ardor3d:ardor3d-lwjgl</include>
>                               <include>com.ardor3d:ardor3d-math</include>
>                               <include>com.ardor3d:ardor3d-savable</include>
>                               <include>com.ardor3d:ardor3d-swt</include>
>                               <include>com.ardor3d:ardor3d-terrain</include>
>                               <include>com.ardor3d:ardor3d-ui</include>
>                       </includes>
>                       <binaries>
>                               <unpack>false</unpack>
>                               <dependencySets>
>                                       <dependencySet>
>                                               <excludes>
>                                                       
> <exclude>*:lwjgl*natives-*</exclude>
>                                                       
> <exclude>*:jinput*natives-*</exclude>
>                                               </excludes>
>                                       </dependencySet>
>                               </dependencySets>
>                       </binaries>
>               </moduleSet>
>       </moduleSets>
>       <fileSets>
>               <fileSet>
>                       <directory>target/natives</directory>
>                       <outputDirectory>natives</outputDirectory>
>                       <excludes>
>                               <exclude>*jogl*</exclude>
>                               <exclude>*nativewindow*</exclude>
>                               <exclude>*newt*</exclude>
>                               <exclude>*gluegen*</exclude>
>                               <exclude>META-INF/</exclude>
>                       </excludes>
>               </fileSet>
>       </fileSets>
> </assembly>
> }}
> This assembly descriptor can be found here: 
> https://github.com/neothemachine/Ardor3D/blob/assembly/ardor3d-distribution/assembly-lwjgl.xml
> It produces a zip which also contains 
> "lwjgl-platform-2.8.4-natives-linux.jar" and others which should be matched 
> by the filter.
> The submodule where the exclusions work can be found at: 
> https://github.com/neothemachine/Ardor3D/tree/assembly/ardor3d-examples
> If you need any other information, please tell me.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to