You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Francis De Brabandere (JIRA)" <ji...@codehaus.org> on 2010/04/26 16:16:12 UTC

[jira] Created: (MNG-4643) Transitive dependency not available for dependency in test scope

Transitive dependency not available for dependency in test scope
----------------------------------------------------------------

                 Key: MNG-4643
                 URL: http://jira.codehaus.org/browse/MNG-4643
             Project: Maven 2 & 3
          Issue Type: Bug
          Components: Dependencies
    Affects Versions: 3.0-beta-1
         Environment: linux
            Reporter: Francis De Brabandere
         Attachments: testbrokendep.tar.gz

I depend on apache ftpserver for my tests. But somehow since 3.0-beta-1 the transitive apache mina dependency is not available in the test classpath any more

See the provided project. This code works on maven 2.x and also worked with 3.x versions until 3.0-alpha-7. But with beta 1 this build fails with class not found.

Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
Java version: 1.6.0_16
Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.31-20-generic" arch: "i386" Family: "unix"


-- 
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: (MNG-4643) [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=218992#action_218992 ] 

Benjamin Bentmann commented on MNG-4643:
----------------------------------------

The POM should have been rejected in the ftpserver build. Now it's in central where it continues to be accepted by almost all released Maven versions. For the sake of backward-compat, Maven 3.x will continue to read those POMs during dependency resolution. But contacting the ftpserver folks is surely a good idea :-)

> [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4643
>                 URL: http://jira.codehaus.org/browse/MNG-4643
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0-alpha-7, 3.0-beta-1
>         Environment: linux
>            Reporter: Francis De Brabandere
>             Fix For: 3.0-beta-2
>
>         Attachments: testbrokendep.tar.gz, testbrokendep.zip
>
>
> I depend on apache ftpserver for my tests. But somehow since 3.0-beta-1 the transitive apache mina dependency is not available in the test classpath any more
> See the provided project. This code works on maven 2.x and also worked with 3.x versions until 3.0-alpha-7. But with beta 1 this build fails with class not found.
> Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-20-generic" arch: "i386" Family: "unix"

-- 
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: (MNG-4643) [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4643.
----------------------------------

    Resolution: Fixed
      Assignee: Benjamin Bentmann

Fixed in [r949443|http://svn.apache.org/viewvc?view=revision&revision=949443].

> [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4643
>                 URL: http://jira.codehaus.org/browse/MNG-4643
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0-alpha-7, 3.0-beta-1
>         Environment: linux
>            Reporter: Francis De Brabandere
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-beta-2
>
>         Attachments: testbrokendep.tar.gz, testbrokendep.zip
>
>
> I depend on apache ftpserver for my tests. But somehow since 3.0-beta-1 the transitive apache mina dependency is not available in the test classpath any more
> See the provided project. This code works on maven 2.x and also worked with 3.x versions until 3.0-alpha-7. But with beta 1 this build fails with class not found.
> Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-20-generic" arch: "i386" Family: "unix"

-- 
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: (MNG-4643) Transitive dependency not available for dependency in test scope

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNG-4643:
-----------------------------------

    Affects Version/s: 3.0-alpha-7
        Fix Version/s: 3.0-beta-2

Thanks for the example project, its relevant debug log:
{noformat}
[WARNING] Invalid POM for org.apache.ftpserver:ftpserver-core:jar:1.0.4,
transitive dependencies (if any) will not be available, enable debug logging for more details:
1 problem was encountered while building the effective model for org.apache.ftpserver:ftpserver-core:1.0.4
[FATAL] Non-parseable POM org/apache/ftpserver/ftpserver-parent/1.0.4/ftpserver-parent-1.0.4.pom:
expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<groupId>org.apache.ftpserver</groupId>r\n  <a... @28:5)
{noformat}
The ftpserver-parent-1.0.4.pom is invalid. While this was tolerated by Maven 2.x, it's no longer in Maven 3.0-alpha-7+ due to a suble change in the employed parsers (cf. MODELLO-246].

> Transitive dependency not available for dependency in test scope
> ----------------------------------------------------------------
>
>                 Key: MNG-4643
>                 URL: http://jira.codehaus.org/browse/MNG-4643
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0-alpha-7, 3.0-beta-1
>         Environment: linux
>            Reporter: Francis De Brabandere
>             Fix For: 3.0-beta-2
>
>         Attachments: testbrokendep.tar.gz, testbrokendep.zip
>
>
> I depend on apache ftpserver for my tests. But somehow since 3.0-beta-1 the transitive apache mina dependency is not available in the test classpath any more
> See the provided project. This code works on maven 2.x and also worked with 3.x versions until 3.0-alpha-7. But with beta 1 this build fails with class not found.
> Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-20-generic" arch: "i386" Family: "unix"

-- 
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: (MNG-4643) [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid

Posted by "Francis De Brabandere (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=218988#action_218988 ] 

Francis De Brabandere commented on MNG-4643:
--------------------------------------------

I suppose you would want to fail the whole build if this happens instead of ignoring the dependency... If this is fixed by doing unstrict parsing I would at least log a warning. I'll contact the ftpserver guys on this issue with their pom.

> [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4643
>                 URL: http://jira.codehaus.org/browse/MNG-4643
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0-alpha-7, 3.0-beta-1
>         Environment: linux
>            Reporter: Francis De Brabandere
>             Fix For: 3.0-beta-2
>
>         Attachments: testbrokendep.tar.gz, testbrokendep.zip
>
>
> I depend on apache ftpserver for my tests. But somehow since 3.0-beta-1 the transitive apache mina dependency is not available in the test classpath any more
> See the provided project. This code works on maven 2.x and also worked with 3.x versions until 3.0-alpha-7. But with beta 1 this build fails with class not found.
> Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-20-generic" arch: "i386" Family: "unix"

-- 
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: (MNG-4643) [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid

Posted by "Basil James Whitehouse III (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231498#action_231498 ] 

Basil James Whitehouse III commented on MNG-4643:
-------------------------------------------------

FYI a fix to Apache FTP server has been filed (and resolved): https://issues.apache.org/jira/browse/FTPSERVER-382
And a request made to fix the poms in Central: http://jira.codehaus.org/browse/MEV-669


> [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4643
>                 URL: http://jira.codehaus.org/browse/MNG-4643
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0-alpha-7, 3.0-beta-1
>         Environment: linux
>            Reporter: Francis De Brabandere
>            Assignee: Benjamin Bentmann
>             Fix For: 3.0-beta-2
>
>         Attachments: testbrokendep.tar.gz, testbrokendep.zip
>
>
> I depend on apache ftpserver for my tests. But somehow since 3.0-beta-1 the transitive apache mina dependency is not available in the test classpath any more
> See the provided project. This code works on maven 2.x and also worked with 3.x versions until 3.0-alpha-7. But with beta 1 this build fails with class not found.
> Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-20-generic" arch: "i386" Family: "unix"

-- 
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: (MNG-4643) [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=218992#action_218992 ] 

Benjamin Bentmann edited comment on MNG-4643 at 4/26/10 12:45 PM:
------------------------------------------------------------------

The POM should have been rejected in the ftpserver build and will fail the build in Maven 3.0-alpha-7+. Now it's in central where it continues to be accepted by almost all released Maven versions. For the sake of backward-compat, Maven 3.x will continue to read those POMs during dependency resolution. But contacting the ftpserver folks is surely a good idea :-)

      was (Author: bentmann):
    The POM should have been rejected in the ftpserver build. Now it's in central where it continues to be accepted by almost all released Maven versions. For the sake of backward-compat, Maven 3.x will continue to read those POMs during dependency resolution. But contacting the ftpserver folks is surely a good idea :-)
  
> [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4643
>                 URL: http://jira.codehaus.org/browse/MNG-4643
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0-alpha-7, 3.0-beta-1
>         Environment: linux
>            Reporter: Francis De Brabandere
>             Fix For: 3.0-beta-2
>
>         Attachments: testbrokendep.tar.gz, testbrokendep.zip
>
>
> I depend on apache ftpserver for my tests. But somehow since 3.0-beta-1 the transitive apache mina dependency is not available in the test classpath any more
> See the provided project. This code works on maven 2.x and also worked with 3.x versions until 3.0-alpha-7. But with beta 1 this build fails with class not found.
> Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-20-generic" arch: "i386" Family: "unix"

-- 
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: (MNG-4643) Transitive dependency not available for dependency in test scope

Posted by "Francis De Brabandere (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Francis De Brabandere updated MNG-4643:
---------------------------------------

    Attachment: testbrokendep.zip

that tar.gz is broken

> Transitive dependency not available for dependency in test scope
> ----------------------------------------------------------------
>
>                 Key: MNG-4643
>                 URL: http://jira.codehaus.org/browse/MNG-4643
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0-beta-1
>         Environment: linux
>            Reporter: Francis De Brabandere
>         Attachments: testbrokendep.tar.gz, testbrokendep.zip
>
>
> I depend on apache ftpserver for my tests. But somehow since 3.0-beta-1 the transitive apache mina dependency is not available in the test classpath any more
> See the provided project. This code works on maven 2.x and also worked with 3.x versions until 3.0-alpha-7. But with beta 1 this build fails with class not found.
> Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-20-generic" arch: "i386" Family: "unix"

-- 
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: (MNG-4643) [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MNG-4643:
-----------------------------------

    Summary: [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid  (was: Transitive dependency not available for dependency in test scope)

> [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4643
>                 URL: http://jira.codehaus.org/browse/MNG-4643
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0-alpha-7, 3.0-beta-1
>         Environment: linux
>            Reporter: Francis De Brabandere
>             Fix For: 3.0-beta-2
>
>         Attachments: testbrokendep.tar.gz, testbrokendep.zip
>
>
> I depend on apache ftpserver for my tests. But somehow since 3.0-beta-1 the transitive apache mina dependency is not available in the test classpath any more
> See the provided project. This code works on maven 2.x and also worked with 3.x versions until 3.0-alpha-7. But with beta 1 this build fails with class not found.
> Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-20-generic" arch: "i386" Family: "unix"

-- 
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: (MNG-4643) [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-4643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=218985#action_218985 ] 

Benjamin Bentmann edited comment on MNG-4643 at 4/26/10 12:32 PM:
------------------------------------------------------------------

Thanks for the example project, its relevant debug log:
{noformat}
[WARNING] Invalid POM for org.apache.ftpserver:ftpserver-core:jar:1.0.4,
transitive dependencies (if any) will not be available, enable debug logging for more details:
1 problem was encountered while building the effective model for org.apache.ftpserver:ftpserver-core:1.0.4
[FATAL] Non-parseable POM org/apache/ftpserver/ftpserver-parent/1.0.4/ftpserver-parent-1.0.4.pom:
expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<groupId>org.apache.ftpserver</groupId>r\n  <a... @28:5)
{noformat}
The ftpserver-parent-1.0.4.pom is invalid. While this was tolerated by Maven 2.x (due to MNG-4644), it's no longer in Maven 3.0-alpha-7+ due to a suble change in the employed parsers (cf. MODELLO-246].

      was (Author: bentmann):
    Thanks for the example project, its relevant debug log:
{noformat}
[WARNING] Invalid POM for org.apache.ftpserver:ftpserver-core:jar:1.0.4,
transitive dependencies (if any) will not be available, enable debug logging for more details:
1 problem was encountered while building the effective model for org.apache.ftpserver:ftpserver-core:1.0.4
[FATAL] Non-parseable POM org/apache/ftpserver/ftpserver-parent/1.0.4/ftpserver-parent-1.0.4.pom:
expected START_TAG or END_TAG not TEXT (position: TEXT seen ...<groupId>org.apache.ftpserver</groupId>r\n  <a... @28:5)
{noformat}
The ftpserver-parent-1.0.4.pom is invalid. While this was tolerated by Maven 2.x, it's no longer in Maven 3.0-alpha-7+ due to a suble change in the employed parsers (cf. MODELLO-246].
  
> [regression] Transitive dependency not available due to dependency POM erroneously rejected as invalid
> ------------------------------------------------------------------------------------------------------
>
>                 Key: MNG-4643
>                 URL: http://jira.codehaus.org/browse/MNG-4643
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 3.0-alpha-7, 3.0-beta-1
>         Environment: linux
>            Reporter: Francis De Brabandere
>             Fix For: 3.0-beta-2
>
>         Attachments: testbrokendep.tar.gz, testbrokendep.zip
>
>
> I depend on apache ftpserver for my tests. But somehow since 3.0-beta-1 the transitive apache mina dependency is not available in the test classpath any more
> See the provided project. This code works on maven 2.x and also worked with 3.x versions until 3.0-alpha-7. But with beta 1 this build fails with class not found.
> Apache Maven 3.0-beta-1 (r935667; 2010-04-19 19:00:39+0200)
> Java version: 1.6.0_16
> Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux" version: "2.6.31-20-generic" arch: "i386" Family: "unix"

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