[ 
https://issues.apache.org/jira/browse/MANTRUN-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16052987#comment-16052987
 ] 

Hudson commented on MANTRUN-192:
--------------------------------

SUCCESS: Integrated in Jenkins build maven-plugins #9003 (See 
[https://builds.apache.org/job/maven-plugins/9003/])
[MANTRUN-192] filterArtifacts in DependencyFilesetsTask includes entire 
maven.local.repository

When there are no artifacts after filtering, Ant will include by default 
everything under the local repository (since there are no include patterns). 
Therefore, in this case, we need to exclude everything explicitly. For 
performance reasons, we need to add a dummy file to the include patterns, 
otherwise Ant will still traverse the whole directory before applying the 
exclusions. (gboue: [http://svn.apache.org/viewvc/?view=rev&rev=1799020])
* (add) maven-antrun-plugin/src/it/MANTRUN-192
* (add) maven-antrun-plugin/src/it/MANTRUN-192/pom.xml
* (edit) 
maven-antrun-plugin/src/main/java/org/apache/maven/ant/tasks/DependencyFilesetsTask.java


> filterArtifacts in DependencyFilesetsTask includes entire 
> maven.local.repository
> --------------------------------------------------------------------------------
>
>                 Key: MANTRUN-192
>                 URL: https://issues.apache.org/jira/browse/MANTRUN-192
>             Project: Maven Antrun Plugin
>          Issue Type: Bug
>    Affects Versions: 1.7
>            Reporter: Steve Maring
>            Assignee: Guillaume Boué
>             Fix For: 3.0.0
>
>
> When I define a scope and type, if the dependencyfileset task fails to match 
> anything in my dependencies, the maven.project.dependencies refid will end up 
> containing EVERY artifact found in my local maven repo.  A HUGE list.
> If nothing matches, then maven.project.dependencies should contain nothing.
> This is what I was trying to do ... merge the contents of map files IF they 
> are found.  It is possible that none exist, so my test case was to comment 
> them out, but I end up with a process that is trying to concat EVERY single 
> file in my local Maven repo.
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-antrun-plugin</artifactId>
>         <version>1.7</version>
>         <inherited>false</inherited>
>         <executions>
>           <execution>
>             <id>merge-maps</id>
>             <phase>package</phase>
>             <goals>
>               <goal>run</goal>
>             </goals>
>             <configuration>
>               <target>
>                 <dependencyfilesets scopes="compile" types="map"/>
>                 <property name="map_files" 
> refid="maven.project.dependencies"/>
>                 <echo message="merging map files: ${map_files}"/>
>                 <concat destfile="merged.map" fixlastline="yes">
>                   <fileset refid="maven.project.dependencies"/>
>                 </concat>
>               </target>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>     </plugins>
>   </build>
>   
>   
>   <dependencies>
>     <!-- 
>     <dependency>
>       <groupId>org.maring</groupId>
>       <artifactId>map-a</artifactId>
>       <version>1.0.0-SNAPSHOT</version>
>       <type>map</type>
>       <classifier>obf</classifier>
>       <scope>compile</scope>
>     </dependency>
>     <dependency>
>       <groupId>org.maring</groupId>
>       <artifactId>map-b</artifactId>
>       <version>1.0.0-SNAPSHOT</version>
>       <type>map</type>
>       <classifier>obf</classifier>
>       <scope>compile</scope>
>       <optional>true</optional>
>     </dependency>
>     -->
>   </dependencies>



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to