You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Reshat Sabiq (JIRA)" <ji...@codehaus.org> on 2008/07/21 19:03:27 UTC

[jira] Created: (MNG-3672) maven 2 fails to compile some projects (doesn't include any dependencies in classpath)

maven 2 fails to compile some projects (doesn't include any dependencies in classpath)
--------------------------------------------------------------------------------------

                 Key: MNG-3672
                 URL: http://jira.codehaus.org/browse/MNG-3672
             Project: Maven 2
          Issue Type: Bug
          Components: Dependencies
    Affects Versions: 2.0.9, 2.1
         Environment: Microsoft Windows XP [Version 5.1.2600]
            Reporter: Reshat Sabiq
            Priority: Blocker
         Attachments: maven-2-bug.zip

Try to compile the trivial project attached (w/ possibly non-trivial dependencies).

Note: you may have to manually install some of the dependencies; pdf-box is probably the only one like that. But you removing it from pom doesn't appear to resolve the issue either, so you can probably just remove it.

-- 
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-3672) maven 2 fails to compile some projects (doesn't include any dependencies in classpath)

Posted by "Reshat Sabiq (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142659#action_142659 ] 

ultranet edited comment on MNG-3672 at 7/21/08 12:23 PM:
-------------------------------------------------------------

Use maven-2-bug-cleaner.zip instead of maven-2-bug.zip to reproduce, because it is a bit cleaner, and actually prints stuff from log4j, if executed.

      was (Author: ultranet):
    Use this one instead of maven-2-bug.zip, because this one is a bit cleaner, and actually prints stuff from log4j, if executed.
  
> maven 2 fails to compile some projects (doesn't include any dependencies in classpath)
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-3672
>                 URL: http://jira.codehaus.org/browse/MNG-3672
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.9, 2.1
>         Environment: Microsoft Windows XP [Version 5.1.2600]
>            Reporter: Reshat Sabiq
>            Priority: Blocker
>         Attachments: maven-2-bug-cleaner.zip, maven-2-bug.zip
>
>
> Try to compile the trivial project attached (w/ possibly non-trivial dependencies).
> Note: you may have to manually install some of the dependencies; pdf-box is probably the only one like that. But you removing it from pom doesn't appear to resolve the issue either, so you can probably just remove it.

-- 
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-3672) maven 2 fails to compile some projects (doesn't include any dependencies in classpath)

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

Reshat Sabiq updated MNG-3672:
------------------------------

    Attachment: maven-2-bug-cleaner.zip

Use this one instead of maven-2-bug.zip, because this one is a bit cleaner, and actually prints stuff from log4j, if executed.

> maven 2 fails to compile some projects (doesn't include any dependencies in classpath)
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-3672
>                 URL: http://jira.codehaus.org/browse/MNG-3672
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.9, 2.1
>         Environment: Microsoft Windows XP [Version 5.1.2600]
>            Reporter: Reshat Sabiq
>            Priority: Blocker
>         Attachments: maven-2-bug-cleaner.zip, maven-2-bug.zip
>
>
> Try to compile the trivial project attached (w/ possibly non-trivial dependencies).
> Note: you may have to manually install some of the dependencies; pdf-box is probably the only one like that. But you removing it from pom doesn't appear to resolve the issue either, so you can probably just remove it.

-- 
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-3672) maven 2 fails to compile some projects (doesn't include any dependencies in classpath)

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

Benjamin Bentmann commented on MNG-3672:
----------------------------------------

bq. The project successfully builds from Eclipse w/ Q for Eclipse plugin.
Keep in mind that Eclipse has only one build path, i.e. does not distinguish between compile, runtime and test class path. As such, all dependencies end up on your Eclipse build path, obscuring the effect of a bad POM.

> maven 2 fails to compile some projects (doesn't include any dependencies in classpath)
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-3672
>                 URL: http://jira.codehaus.org/browse/MNG-3672
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.9, 2.1
>         Environment: Microsoft Windows XP [Version 5.1.2600]
>            Reporter: Reshat Sabiq
>            Priority: Blocker
>         Attachments: maven-2-bug-cleaner-with-pdfbox.zip, maven-2-bug-cleaner.zip, maven-2-bug.zip
>
>
> Try to compile the trivial project attached (w/ possibly non-trivial dependencies).
> Note: you may have to manually install some of the dependencies; pdf-box is probably the only one like that. But you removing it from pom doesn't appear to resolve the issue either, so you can probably just remove it.

-- 
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-3672) maven 2 fails to compile some projects (doesn't include any dependencies in classpath)

Posted by "Reshat Sabiq (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142663#action_142663 ] 

Reshat Sabiq commented on MNG-3672:
-----------------------------------

I was under mistaken assumption that runtime scope included compile scope. My bad. Closing...

> maven 2 fails to compile some projects (doesn't include any dependencies in classpath)
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-3672
>                 URL: http://jira.codehaus.org/browse/MNG-3672
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.9, 2.1
>         Environment: Microsoft Windows XP [Version 5.1.2600]
>            Reporter: Reshat Sabiq
>            Priority: Blocker
>         Attachments: maven-2-bug-cleaner-with-pdfbox.zip, maven-2-bug-cleaner.zip, maven-2-bug.zip
>
>
> Try to compile the trivial project attached (w/ possibly non-trivial dependencies).
> Note: you may have to manually install some of the dependencies; pdf-box is probably the only one like that. But you removing it from pom doesn't appear to resolve the issue either, so you can probably just remove it.

-- 
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-3672) maven 2 fails to compile some projects (doesn't include any dependencies in classpath)

Posted by "Reshat Sabiq (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142658#action_142658 ] 

ultranet edited comment on MNG-3672 at 7/21/08 12:24 PM:
-------------------------------------------------------------

The project successfully builds from Eclipse w/ Q for Eclipse plugin.
It also successfully builds w/ maven 1, using project.xml in the attachment.

      was (Author: ultranet):
    The project successfully builds from Eclipse w/ Q for Eclipse plugin.
It also successfully builds w/ maven 1, using project.xml attached.
  
> maven 2 fails to compile some projects (doesn't include any dependencies in classpath)
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-3672
>                 URL: http://jira.codehaus.org/browse/MNG-3672
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.9, 2.1
>         Environment: Microsoft Windows XP [Version 5.1.2600]
>            Reporter: Reshat Sabiq
>            Priority: Blocker
>         Attachments: maven-2-bug-cleaner.zip, maven-2-bug.zip
>
>
> Try to compile the trivial project attached (w/ possibly non-trivial dependencies).
> Note: you may have to manually install some of the dependencies; pdf-box is probably the only one like that. But you removing it from pom doesn't appear to resolve the issue either, so you can probably just remove it.

-- 
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-3672) maven 2 fails to compile some projects (doesn't include any dependencies in classpath)

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

Benjamin Bentmann commented on MNG-3672:
----------------------------------------

Your POM states
{code:xml}
<dependency>
	<groupId>log4j</groupId>
	<artifactId>log4j</artifactId>
	<version>1.2.12</version>
	<scope>runtime</scope>
</dependency>
{code}
Note the {{<scope>}} element. You are effectively telling Maven that Log4J is only required for running (and testing) the project. However, you need it for compilation. So either change the affected dependencies to {{<scope>compile</scope>}} or simply remove the {{<scope>}} element.

> maven 2 fails to compile some projects (doesn't include any dependencies in classpath)
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-3672
>                 URL: http://jira.codehaus.org/browse/MNG-3672
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.9, 2.1
>         Environment: Microsoft Windows XP [Version 5.1.2600]
>            Reporter: Reshat Sabiq
>            Priority: Blocker
>         Attachments: maven-2-bug-cleaner-with-pdfbox.zip, maven-2-bug-cleaner.zip, maven-2-bug.zip
>
>
> Try to compile the trivial project attached (w/ possibly non-trivial dependencies).
> Note: you may have to manually install some of the dependencies; pdf-box is probably the only one like that. But you removing it from pom doesn't appear to resolve the issue either, so you can probably just remove it.

-- 
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-3672) maven 2 fails to compile some projects (doesn't include any dependencies in classpath)

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

Reshat Sabiq updated MNG-3672:
------------------------------

    Attachment: maven-2-bug-cleaner-with-pdfbox.zip

maven-2-bug-cleaner-with-pdfbox.zip is the same as maven-2-bug-cleaner.zip, but has a pdfbox dependency.

> maven 2 fails to compile some projects (doesn't include any dependencies in classpath)
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-3672
>                 URL: http://jira.codehaus.org/browse/MNG-3672
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.9, 2.1
>         Environment: Microsoft Windows XP [Version 5.1.2600]
>            Reporter: Reshat Sabiq
>            Priority: Blocker
>         Attachments: maven-2-bug-cleaner-with-pdfbox.zip, maven-2-bug-cleaner.zip, maven-2-bug.zip
>
>
> Try to compile the trivial project attached (w/ possibly non-trivial dependencies).
> Note: you may have to manually install some of the dependencies; pdf-box is probably the only one like that. But you removing it from pom doesn't appear to resolve the issue either, so you can probably just remove it.

-- 
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-3672) maven 2 fails to compile some projects (doesn't include any dependencies in classpath)

Posted by "Reshat Sabiq (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3672?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=142658#action_142658 ] 

Reshat Sabiq commented on MNG-3672:
-----------------------------------

The project successfully builds from Eclipse w/ Q for Eclipse plugin.
It also successfully builds w/ maven 1, using project.xml attached.

> maven 2 fails to compile some projects (doesn't include any dependencies in classpath)
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-3672
>                 URL: http://jira.codehaus.org/browse/MNG-3672
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.9, 2.1
>         Environment: Microsoft Windows XP [Version 5.1.2600]
>            Reporter: Reshat Sabiq
>            Priority: Blocker
>         Attachments: maven-2-bug.zip
>
>
> Try to compile the trivial project attached (w/ possibly non-trivial dependencies).
> Note: you may have to manually install some of the dependencies; pdf-box is probably the only one like that. But you removing it from pom doesn't appear to resolve the issue either, so you can probably just remove it.

-- 
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-3672) maven 2 fails to compile some projects (doesn't include any dependencies in classpath)

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

Reshat Sabiq closed MNG-3672.
-----------------------------

    Resolution: Fixed

Runtime scope doesn't include compile scope: bad pom, not a bug.

> maven 2 fails to compile some projects (doesn't include any dependencies in classpath)
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-3672
>                 URL: http://jira.codehaus.org/browse/MNG-3672
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Dependencies
>    Affects Versions: 2.0.9, 2.1
>         Environment: Microsoft Windows XP [Version 5.1.2600]
>            Reporter: Reshat Sabiq
>            Priority: Blocker
>         Attachments: maven-2-bug-cleaner-with-pdfbox.zip, maven-2-bug-cleaner.zip, maven-2-bug.zip
>
>
> Try to compile the trivial project attached (w/ possibly non-trivial dependencies).
> Note: you may have to manually install some of the dependencies; pdf-box is probably the only one like that. But you removing it from pom doesn't appear to resolve the issue either, so you can probably just remove it.

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