slachiewicz commented on issue #1093:
URL: 
https://github.com/apache/maven-dependency-plugin/issues/1093#issuecomment-6025674629

   Possible since 3.1.2 with `fileMappers` on the artifact item: keep 
`includes` to select the sub-directory, and add a `RegExpFileMapper` that 
strips the top-level folder:
   
   ```xml
   <artifactItem>
     ...
     <includes>myartifact-*/**</includes>
     <fileMappers>
       <org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
         <pattern>^myartifact-[^/]+/</pattern>
         <replacement>./</replacement>
       </org.codehaus.plexus.components.io.filemappers.RegExpFileMapper>
     </fileMappers>
   </artifactItem>
   ```
   
   The replacement is `./` because an empty value would skip the file. More 
examples: 
https://maven.apache.org/plugins/maven-dependency-plugin/examples/unpacking-filemapper.html


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to