You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Patrick Aikens (JIRA)" <ji...@codehaus.org> on 2010/04/07 00:32:28 UTC

[jira] Created: (MDEP-257) seems to have no effect

<includeClassifiers /> seems to have no effect
----------------------------------------------

                 Key: MDEP-257
                 URL: http://jira.codehaus.org/browse/MDEP-257
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: unpack-dependencies
    Affects Versions: 2.1
         Environment: Windows XP
            Reporter: Patrick Aikens
            Assignee: Brian Fox


I'm trying to package some installer-related files from a project for use in a different izpack installer project.  I want to unpack them into the target/staging directory for inclusion in the izpack installer.  All of the dependencies I want to unpack have a classifier of "izpack".  Using the following configuration, the dependency plugin unpacks ALL dependencies, not just the ones with an "izpack" classifier.

{code:xml}
<plugin>
  <artifactId>maven-dependency-plugin</artifactId>
  <version>2.1</version>
  <executions>
    <execution>
      <id>izpack</id>
      <phase>generate-resources</phase>
      <goals>
        <goal>unpack-dependencies</goal>
      </goals>
      <configuration>
        <outputDirectory>${project.build.directory}/staging</outputDirectory>
        <includeClassifiers>izpack</includeClassifiers>
      </configuration>
    </execution>
  </executions>
</plugin>
{code}

-- 
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

        

[jira] Issue Comment Edited: (MDEP-257) seems to have no effect

Posted by "Wouter Coekaerts (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=247860#action_247860 ] 

Wouter Coekaerts edited comment on MDEP-257 at 12/15/10 10:58 AM:
------------------------------------------------------------------

[Edited to remove. My mistake.]

      was (Author: coekie):
    I've got exactly the same problem: it looks like includeClassifiers is simply ignored in the unpack-dependencies goal.
The linked MDEP-193 ticket is closed with fix version 2.2, but I still have the problem with 2.2.
  
> <includeClassifiers /> seems to have no effect
> ----------------------------------------------
>
>                 Key: MDEP-257
>                 URL: http://jira.codehaus.org/browse/MDEP-257
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: unpack-dependencies
>    Affects Versions: 2.1
>         Environment: Windows XP
>            Reporter: Patrick Aikens
>            Assignee: Brian Fox
>
> I'm trying to package some installer-related files from a project for use in a different izpack installer project.  I want to unpack them into the target/staging directory for inclusion in the izpack installer.  All of the dependencies I want to unpack have a classifier of "izpack".  Using the following configuration, the dependency plugin unpacks ALL dependencies, not just the ones with an "izpack" classifier.
> {code:xml}
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <version>2.1</version>
>   <executions>
>     <execution>
>       <id>izpack</id>
>       <phase>generate-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>       <configuration>
>         <outputDirectory>${project.build.directory}/staging</outputDirectory>
>         <includeClassifiers>izpack</includeClassifiers>
>       </configuration>
>     </execution>
>   </executions>
> </plugin>
> {code}

-- 
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

        

[jira] Closed: (MDEP-257) seems to have no effect

Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MDEP-257?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Fox closed MDEP-257.
--------------------------

    Resolution: Duplicate

MDEP-193

> <includeClassifiers /> seems to have no effect
> ----------------------------------------------
>
>                 Key: MDEP-257
>                 URL: http://jira.codehaus.org/browse/MDEP-257
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: unpack-dependencies
>    Affects Versions: 2.1
>         Environment: Windows XP
>            Reporter: Patrick Aikens
>            Assignee: Brian Fox
>
> I'm trying to package some installer-related files from a project for use in a different izpack installer project.  I want to unpack them into the target/staging directory for inclusion in the izpack installer.  All of the dependencies I want to unpack have a classifier of "izpack".  Using the following configuration, the dependency plugin unpacks ALL dependencies, not just the ones with an "izpack" classifier.
> {code:xml}
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <version>2.1</version>
>   <executions>
>     <execution>
>       <id>izpack</id>
>       <phase>generate-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>       <configuration>
>         <outputDirectory>${project.build.directory}/staging</outputDirectory>
>         <includeClassifiers>izpack</includeClassifiers>
>       </configuration>
>     </execution>
>   </executions>
> </plugin>
> {code}

-- 
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

        

[jira] Commented: (MDEP-257) seems to have no effect

Posted by "Wouter Coekaerts (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=247860#action_247860 ] 

Wouter Coekaerts commented on MDEP-257:
---------------------------------------

I've got exactly the same problem: it looks like includeClassifiers is simply ignored in the unpack-dependencies goal.
The linked MDEP-193 ticket is closed with fix version 2.2, but I still have the problem with 2.2.

> <includeClassifiers /> seems to have no effect
> ----------------------------------------------
>
>                 Key: MDEP-257
>                 URL: http://jira.codehaus.org/browse/MDEP-257
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: unpack-dependencies
>    Affects Versions: 2.1
>         Environment: Windows XP
>            Reporter: Patrick Aikens
>            Assignee: Brian Fox
>
> I'm trying to package some installer-related files from a project for use in a different izpack installer project.  I want to unpack them into the target/staging directory for inclusion in the izpack installer.  All of the dependencies I want to unpack have a classifier of "izpack".  Using the following configuration, the dependency plugin unpacks ALL dependencies, not just the ones with an "izpack" classifier.
> {code:xml}
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <version>2.1</version>
>   <executions>
>     <execution>
>       <id>izpack</id>
>       <phase>generate-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>       <configuration>
>         <outputDirectory>${project.build.directory}/staging</outputDirectory>
>         <includeClassifiers>izpack</includeClassifiers>
>       </configuration>
>     </execution>
>   </executions>
> </plugin>
> {code}

-- 
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

        

[jira] Commented: (MDEP-257) seems to have no effect

Posted by "Richard Vítek (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=222815#action_222815 ] 

Richard Vítek commented on MDEP-257:
------------------------------------

I encoutered the same problem, so I took a closer look at it and the problem lies in one of dependencies of this plugin, specifically maven-common-artifact-filters.
Update the version to current version 1.2 and replace usages of class TransitivityFilter for ProjectTransitivityFilter, and you'll be fine.

In detail, problem lies in class AbstractArtifactFeatureFilter, where in version 1.0 of the maven-common-artifact-filters plugin, NPE was thrown, caught then by FilterArtifact class, so the ClassifierFilter had no effect.


> <includeClassifiers /> seems to have no effect
> ----------------------------------------------
>
>                 Key: MDEP-257
>                 URL: http://jira.codehaus.org/browse/MDEP-257
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: unpack-dependencies
>    Affects Versions: 2.1
>         Environment: Windows XP
>            Reporter: Patrick Aikens
>            Assignee: Brian Fox
>
> I'm trying to package some installer-related files from a project for use in a different izpack installer project.  I want to unpack them into the target/staging directory for inclusion in the izpack installer.  All of the dependencies I want to unpack have a classifier of "izpack".  Using the following configuration, the dependency plugin unpacks ALL dependencies, not just the ones with an "izpack" classifier.
> {code:xml}
> <plugin>
>   <artifactId>maven-dependency-plugin</artifactId>
>   <version>2.1</version>
>   <executions>
>     <execution>
>       <id>izpack</id>
>       <phase>generate-resources</phase>
>       <goals>
>         <goal>unpack-dependencies</goal>
>       </goals>
>       <configuration>
>         <outputDirectory>${project.build.directory}/staging</outputDirectory>
>         <includeClassifiers>izpack</includeClassifiers>
>       </configuration>
>     </execution>
>   </executions>
> </plugin>
> {code}

-- 
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