You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Gili (JIRA)" <ji...@codehaus.org> on 2011/09/09 18:39:32 UTC

[jira] Created: (MDEP-322) Transitive support for copy and unpack goals

Transitive support for copy and unpack goals
--------------------------------------------

                 Key: MDEP-322
                 URL: https://jira.codehaus.org/browse/MDEP-322
             Project: Maven 2.x Dependency Plugin
          Issue Type: Wish
          Components: copy, unpack
    Affects Versions: 2.3
            Reporter: Gili
            Assignee: Brian Fox


I'd like to be able to copy or unpack dependencies transitively, just like copy-dependencies or unpack-dependencies, but without having to declare the dependency on the current project.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MDEP-322) Transitive support for copy and unpack goals

Posted by "Gili (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MDEP-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=278192#comment-278192 ] 

Gili commented on MDEP-322:
---------------------------

Use-case: Library A depends on library B. Library A unpacks native code found in library B and incorporates it into the artifact. Anyone depending on library A should not pull down library B because library A already incorporates the necessary binaries (furthermore, library A doesn't need all the binaries found in library B). The idea here is to encapsulate A's dependencies from the outside world.

Maven doesn't support transitive native dependencies in the same way it does for Java: http://stackoverflow.com/questions/4171222/maven-depending-on-inheriting-artifact-causes-build-error
This issue isn't specify to inheritance. If B uses classifiers and A specifies different classifiers depending on the <profile> used, then C depending on A does not see any properties defined in A's profile. Consequently, C sees that A depends on B, but it has no idea what classifier to use. I can either declare the classifier twice (once in A, once in C) or have A encapsulate B and have C just depend on A.

> Transitive support for copy and unpack goals
> --------------------------------------------
>
>                 Key: MDEP-322
>                 URL: https://jira.codehaus.org/browse/MDEP-322
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Wish
>          Components: copy, unpack
>    Affects Versions: 2.3
>            Reporter: Gili
>            Assignee: Brian Fox
>
> I'd like to be able to copy or unpack dependencies transitively, just like copy-dependencies or unpack-dependencies, but without having to declare the dependency on the current project.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MDEP-322) Transitive support for copy and unpack goals

Posted by "Gili (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MDEP-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=281076#comment-281076 ] 

Gili commented on MDEP-322:
---------------------------

I've got a second use-case which does not depend on native code.

I'm building an installer for an application. The installer needs to unpack two tools, each one into its own directory. The only way for me to accomplish this is to copy each project/tool into its own directory before passing it into the installer, otherwise both tools get unpacked into the same directory (which goes against our requirements). Currently, there is no easy way for me to implement this.

> Transitive support for copy and unpack goals
> --------------------------------------------
>
>                 Key: MDEP-322
>                 URL: https://jira.codehaus.org/browse/MDEP-322
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Wish
>          Components: copy, unpack
>    Affects Versions: 2.3
>            Reporter: Gili
>            Assignee: Brian Fox
>
> I'd like to be able to copy or unpack dependencies transitively, just like copy-dependencies or unpack-dependencies, but without having to declare the dependency on the current project.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MDEP-322) Transitive support for copy and unpack goals

Posted by "Gili (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/MDEP-322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=281077#comment-281077 ] 

Gili commented on MDEP-322:
---------------------------

Alternatively, allow one to specify a "project" in the copy-dependencies and unpack-dependencies goals.

> Transitive support for copy and unpack goals
> --------------------------------------------
>
>                 Key: MDEP-322
>                 URL: https://jira.codehaus.org/browse/MDEP-322
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Wish
>          Components: copy, unpack
>    Affects Versions: 2.3
>            Reporter: Gili
>            Assignee: Brian Fox
>
> I'd like to be able to copy or unpack dependencies transitively, just like copy-dependencies or unpack-dependencies, but without having to declare the dependency on the current project.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira