You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "JR Boyens (JIRA)" <ji...@codehaus.org> on 2007/11/30 18:10:57 UTC

[jira] Created: (MDEP-120) build-classpath is unable to build a classpath with runtime or test dependencies

build-classpath is unable to build a classpath with runtime or test dependencies
--------------------------------------------------------------------------------

                 Key: MDEP-120
                 URL: http://jira.codehaus.org/browse/MDEP-120
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: build-classpath
    Affects Versions: 2.0-alpha-4, 2.0-alpha-5
            Reporter: JR Boyens
            Assignee: Brian Fox


The build-classpath mojo because of the '@requiredDependencyResolution compile' tag cannot use any scope other than compile.

-- 
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-120) build-classpath is unable to build a classpath with runtime or test dependencies

Posted by "james ahlborn (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_117106 ] 

james ahlborn commented on MDEP-120:
------------------------------------

this may be supported, but it does not actually work.  when i build with the scopes compile, test, runtime: they all generate the compile dependencies.

> build-classpath is unable to build a classpath with runtime or test dependencies
> --------------------------------------------------------------------------------
>
>                 Key: MDEP-120
>                 URL: http://jira.codehaus.org/browse/MDEP-120
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: build-classpath
>    Affects Versions: 2.0-alpha-4, 2.0-alpha-5
>            Reporter: JR Boyens
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-4
>
>
> The build-classpath mojo because of the '@requiredDependencyResolution compile' tag cannot use any scope other than compile.

-- 
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-120) build-classpath is unable to build a classpath with runtime or test dependencies

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

Brian Fox closed MDEP-120.
--------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0-alpha-5)
                   2.0-alpha-4

This is actually already supported in alpha-4. The build-classpath goal inherits all the same filters as copy/unpack-dependencies.

> build-classpath is unable to build a classpath with runtime or test dependencies
> --------------------------------------------------------------------------------
>
>                 Key: MDEP-120
>                 URL: http://jira.codehaus.org/browse/MDEP-120
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: build-classpath
>    Affects Versions: 2.0-alpha-4, 2.0-alpha-5
>            Reporter: JR Boyens
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-4
>
>
> The build-classpath mojo because of the '@requiredDependencyResolution compile' tag cannot use any scope other than compile.

-- 
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] Updated: (MDEP-120) build-classpath is unable to build a classpath with runtime or test dependencies

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

Brian Fox updated MDEP-120:
---------------------------

    Fix Version/s: 2.0-alpha-5

This will get included when I circle back to get a release out.

> build-classpath is unable to build a classpath with runtime or test dependencies
> --------------------------------------------------------------------------------
>
>                 Key: MDEP-120
>                 URL: http://jira.codehaus.org/browse/MDEP-120
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: build-classpath
>    Affects Versions: 2.0-alpha-4, 2.0-alpha-5
>            Reporter: JR Boyens
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-5
>
>
> The build-classpath mojo because of the '@requiredDependencyResolution compile' tag cannot use any scope other than compile.

-- 
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-120) build-classpath is unable to build a classpath with runtime or test dependencies

Posted by "JR Boyens (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_116627 ] 

JR Boyens commented on MDEP-120:
--------------------------------

Is there any reason why this hasn't been scheduled for 2.0-alpha-5?

This is a severe blocker for us and has required me to mod the source and upload to our internal repo.

Again, the intended usage for this mojo is to use in conjunction with "java -cp" without the inclusion of the runtime scoped deps, this is impossible.


> build-classpath is unable to build a classpath with runtime or test dependencies
> --------------------------------------------------------------------------------
>
>                 Key: MDEP-120
>                 URL: http://jira.codehaus.org/browse/MDEP-120
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: build-classpath
>    Affects Versions: 2.0-alpha-4, 2.0-alpha-5
>            Reporter: JR Boyens
>            Assignee: Brian Fox
>
> The build-classpath mojo because of the '@requiredDependencyResolution compile' tag cannot use any scope other than compile.

-- 
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-120) build-classpath is unable to build a classpath with runtime or test dependencies

Posted by "JR Boyens (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MDEP-120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_115558 ] 

JR Boyens commented on MDEP-120:
--------------------------------

 A suggested fix is to set the @requiresDependencyResolution to test and then filter by default based on the assumed usage

> build-classpath is unable to build a classpath with runtime or test dependencies
> --------------------------------------------------------------------------------
>
>                 Key: MDEP-120
>                 URL: http://jira.codehaus.org/browse/MDEP-120
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: build-classpath
>    Affects Versions: 2.0-alpha-4, 2.0-alpha-5
>            Reporter: JR Boyens
>            Assignee: Brian Fox
>
> The build-classpath mojo because of the '@requiredDependencyResolution compile' tag cannot use any scope other than compile.

-- 
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] Reopened: (MDEP-120) build-classpath is unable to build a classpath with runtime or test dependencies

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

JR Boyens reopened MDEP-120:
----------------------------


I've confirmed that the problem is not actually fixed. The '@requiresDependencyResolution compile' tag in BuildClasspathMojo.java has to be changed to '@requiresDependencyResolution test' just like the rest of the mojos. Otherwise you'll never get anything more than compile scope deps. Even if you goof with the filters you always get compile.

> build-classpath is unable to build a classpath with runtime or test dependencies
> --------------------------------------------------------------------------------
>
>                 Key: MDEP-120
>                 URL: http://jira.codehaus.org/browse/MDEP-120
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: build-classpath
>    Affects Versions: 2.0-alpha-4, 2.0-alpha-5
>            Reporter: JR Boyens
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-4
>
>
> The build-classpath mojo because of the '@requiredDependencyResolution compile' tag cannot use any scope other than compile.

-- 
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-120) build-classpath is unable to build a classpath with runtime or test dependencies

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

Brian Fox closed MDEP-120.
--------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0-alpha-4)
                   2.0-alpha-5

You're right, I missed that. I changed the scope so now the filters should work. I considered changing the default to maintain backwards compatibility, but that would make this one goal have a different behavior than the rest. I'll need to call this out in the release notes. 

> build-classpath is unable to build a classpath with runtime or test dependencies
> --------------------------------------------------------------------------------
>
>                 Key: MDEP-120
>                 URL: http://jira.codehaus.org/browse/MDEP-120
>             Project: Maven 2.x Dependency Plugin
>          Issue Type: Bug
>          Components: build-classpath
>    Affects Versions: 2.0-alpha-4, 2.0-alpha-5
>            Reporter: JR Boyens
>            Assignee: Brian Fox
>             Fix For: 2.0-alpha-5
>
>
> The build-classpath mojo because of the '@requiredDependencyResolution compile' tag cannot use any scope other than compile.

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