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

[jira] Created: (MNG-2747) Maven doesn't detect invalid dependency descriptions in the pom

Maven doesn't detect invalid dependency descriptions in the pom
---------------------------------------------------------------

                 Key: MNG-2747
                 URL: http://jira.codehaus.org/browse/MNG-2747
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.4
         Environment: Ubuntu 6.10
            Reporter: Tim Kettler
         Attachments: testpom.tgz

Maven doesn't detect that the following pom snippet is not valid:

[...]
<dependencies>
    <groupId>jdom</groupId>
    <artifactId>jdom</artifactId>
    <version>1.0</version>	  
</dependencies>
[...]

if 'mvn compile' is run on the included test project, this is what happens:

tik@tweety:~/Develop/testpom$ mvn compile
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building testproject
[INFO]    task-segment: [compile]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 1 source file to /home/tik/Develop/testpom/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/home/tik/Develop/testpom/src/main/java/TestClass.java:[1,16] package org.jdom does not exist

/home/tik/Develop/testpom/src/main/java/TestClass.java:[5,12] cannot find symbol
symbol  : class Element
location: class TestClass


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Mon Jan 08 19:23:14 CET 2007
[INFO] Final Memory: 3M/8M
[INFO] ------------------------------------------------------------------------


-- 
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-2747) Maven doesn't detect invalid dependency descriptions in the pom

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

Brett Porter updated MNG-2747:
------------------------------

    Fix Version/s:     (was: Reviewed Pending Version Assignment)
                   2.1.x
      Component/s: POM

> Maven doesn't detect invalid dependency descriptions in the pom
> ---------------------------------------------------------------
>
>                 Key: MNG-2747
>                 URL: http://jira.codehaus.org/browse/MNG-2747
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.4
>         Environment: Ubuntu 6.10
>            Reporter: Tim Kettler
>             Fix For: 2.1.x
>
>         Attachments: testpom.tgz
>
>
> Maven doesn't detect that the following pom snippet is not valid:
> [...]
> <dependencies>
>     <groupId>jdom</groupId>
>     <artifactId>jdom</artifactId>
>     <version>1.0</version>	  
> </dependencies>
> [...]
> if 'mvn compile' is run on the included test project, this is what happens:
> tik@tweety:~/Develop/testpom$ mvn compile
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building testproject
> [INFO]    task-segment: [compile]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> Compiling 1 source file to /home/tik/Develop/testpom/target/classes
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Compilation failure
> /home/tik/Develop/testpom/src/main/java/TestClass.java:[1,16] package org.jdom does not exist
> /home/tik/Develop/testpom/src/main/java/TestClass.java:[5,12] cannot find symbol
> symbol  : class Element
> location: class TestClass
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Jan 08 19:23:14 CET 2007
> [INFO] Final Memory: 3M/8M
> [INFO] ------------------------------------------------------------------------

-- 
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-2747) Maven doesn't detect invalid dependency descriptions in the pom

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

Maria Odea Ching updated MNG-2747:
----------------------------------

    Fix Version/s:     (was: 2.1)
                   2.x

> Maven doesn't detect invalid dependency descriptions in the pom
> ---------------------------------------------------------------
>
>                 Key: MNG-2747
>                 URL: http://jira.codehaus.org/browse/MNG-2747
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.4
>         Environment: Ubuntu 6.10
>            Reporter: Tim Kettler
>             Fix For: 2.x
>
>         Attachments: testpom.tgz
>
>
> Maven doesn't detect that the following pom snippet is not valid:
> [...]
> <dependencies>
>     <groupId>jdom</groupId>
>     <artifactId>jdom</artifactId>
>     <version>1.0</version>	  
> </dependencies>
> [...]
> if 'mvn compile' is run on the included test project, this is what happens:
> tik@tweety:~/Develop/testpom$ mvn compile
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building testproject
> [INFO]    task-segment: [compile]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> Compiling 1 source file to /home/tik/Develop/testpom/target/classes
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Compilation failure
> /home/tik/Develop/testpom/src/main/java/TestClass.java:[1,16] package org.jdom does not exist
> /home/tik/Develop/testpom/src/main/java/TestClass.java:[5,12] cannot find symbol
> symbol  : class Element
> location: class TestClass
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Jan 08 19:23:14 CET 2007
> [INFO] Final Memory: 3M/8M
> [INFO] ------------------------------------------------------------------------

-- 
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-2747) Maven doesn't detect invalid dependency descriptions in the pom

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

Vincent Siveton closed MNG-2747.
--------------------------------

      Assignee: Vincent Siveton
    Resolution: Duplicate

see MNG-2391

> Maven doesn't detect invalid dependency descriptions in the pom
> ---------------------------------------------------------------
>
>                 Key: MNG-2747
>                 URL: http://jira.codehaus.org/browse/MNG-2747
>             Project: Maven 2
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 2.0.4
>         Environment: Ubuntu 6.10
>            Reporter: Tim Kettler
>            Assignee: Vincent Siveton
>             Fix For: 2.x
>
>         Attachments: testpom.tgz
>
>
> Maven doesn't detect that the following pom snippet is not valid:
> [...]
> <dependencies>
>     <groupId>jdom</groupId>
>     <artifactId>jdom</artifactId>
>     <version>1.0</version>	  
> </dependencies>
> [...]
> if 'mvn compile' is run on the included test project, this is what happens:
> tik@tweety:~/Develop/testpom$ mvn compile
> [INFO] Scanning for projects...
> [INFO] ----------------------------------------------------------------------------
> [INFO] Building testproject
> [INFO]    task-segment: [compile]
> [INFO] ----------------------------------------------------------------------------
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> Compiling 1 source file to /home/tik/Develop/testpom/target/classes
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Compilation failure
> /home/tik/Develop/testpom/src/main/java/TestClass.java:[1,16] package org.jdom does not exist
> /home/tik/Develop/testpom/src/main/java/TestClass.java:[5,12] cannot find symbol
> symbol  : class Element
> location: class TestClass
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Mon Jan 08 19:23:14 CET 2007
> [INFO] Final Memory: 3M/8M
> [INFO] ------------------------------------------------------------------------

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