You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Gier (JIRA)" <ji...@codehaus.org> on 2008/11/11 22:27:14 UTC

[jira] Created: (MNG-3834) Improve error message when dependency with classifier is missing version

Improve error message when dependency with classifier is missing version
------------------------------------------------------------------------

                 Key: MNG-3834
                 URL: http://jira.codehaus.org/browse/MNG-3834
             Project: Maven 2
          Issue Type: Improvement
          Components: Errors
            Reporter: Paul Gier
         Attachments: pom.xml

Currently, if I have two dependencies on the same groupId:artifactId, one with a classifier and one without, the missing version error message does not distinguish which dependency is missing a version.  For example, the following pom is missing a version number for one of the dependencies.

{code:xml}
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.apache.maven</groupId>
  <artifactId>missing-version-error</artifactId>
  <packaging>jar</packaging>
  <name>Missing version error</name>
  <version>1.0.0-SNAPSHOT</version>
  
  <dependencies>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>myartifact1</artifactId>
      <version>1.0-SNAPSHOT</version>
    </dependency>
    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>myartifact1</artifactId>
      <classifier>test</classifier>
    </dependency>
  </dependencies>
</project>
{code}

The error message prints the following:
{code}
Validation Messages:

    [0]  'dependencies.dependency.version' is missing for org.apache.maven:myartifact1
{code}

The error message should include information about the dependency's classifier.


-- 
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-3834) Improve error message when dependency with classifier is missing version

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

Paul Gier updated MNG-3834:
---------------------------

    Attachment: MNG-3834-maven-project.patch

Attaching patch that uses the dependencyManagementKey (groupId:artifactId:type:classifier), instead of just the artifactId and groupId in the error message.

> Improve error message when dependency with classifier is missing version
> ------------------------------------------------------------------------
>
>                 Key: MNG-3834
>                 URL: http://jira.codehaus.org/browse/MNG-3834
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Errors
>            Reporter: Paul Gier
>         Attachments: MNG-3834-maven-project.patch, pom.xml
>
>
> Currently, if I have two dependencies on the same groupId:artifactId, one with a classifier and one without, the missing version error message does not distinguish which dependency is missing a version.  For example, the following pom is missing a version number for one of the dependencies.
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>org.apache.maven</groupId>
>   <artifactId>missing-version-error</artifactId>
>   <packaging>jar</packaging>
>   <name>Missing version error</name>
>   <version>1.0.0-SNAPSHOT</version>
>   
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <classifier>test</classifier>
>     </dependency>
>   </dependencies>
> </project>
> {code}
> The error message prints the following:
> {code}
> Validation Messages:
>     [0]  'dependencies.dependency.version' is missing for org.apache.maven:myartifact1
> {code}
> The error message should include information about the dependency's classifier.

-- 
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-3834) Improve error message when dependency with classifier is missing version

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=153854#action_153854 ] 

pgier edited comment on MNG-3834 at 11/11/08 3:54 PM:
----------------------------------------------------------

Attaching patch for 2.0.x that uses the dependencyManagementKey (groupId:artifactId:type:classifier), instead of just the artifactId and groupId in the error message.

      was (Author: pgier):
    Attaching patch that uses the dependencyManagementKey (groupId:artifactId:type:classifier), instead of just the artifactId and groupId in the error message.
  
> Improve error message when dependency with classifier is missing version
> ------------------------------------------------------------------------
>
>                 Key: MNG-3834
>                 URL: http://jira.codehaus.org/browse/MNG-3834
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Errors
>            Reporter: Paul Gier
>         Attachments: MNG-3834-maven-project.patch, pom.xml
>
>
> Currently, if I have two dependencies on the same groupId:artifactId, one with a classifier and one without, the missing version error message does not distinguish which dependency is missing a version.  For example, the following pom is missing a version number for one of the dependencies.
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>org.apache.maven</groupId>
>   <artifactId>missing-version-error</artifactId>
>   <packaging>jar</packaging>
>   <name>Missing version error</name>
>   <version>1.0.0-SNAPSHOT</version>
>   
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <classifier>test</classifier>
>     </dependency>
>   </dependencies>
> </project>
> {code}
> The error message prints the following:
> {code}
> Validation Messages:
>     [0]  'dependencies.dependency.version' is missing for org.apache.maven:myartifact1
> {code}
> The error message should include information about the dependency's classifier.

-- 
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-3834) Improve error message when dependency with classifier is missing version

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

Paul Gier updated MNG-3834:
---------------------------

         Priority: Minor  (was: Major)
    Fix Version/s: 3.0-alpha-3
                   2.1.1

> Improve error message when dependency with classifier is missing version
> ------------------------------------------------------------------------
>
>                 Key: MNG-3834
>                 URL: http://jira.codehaus.org/browse/MNG-3834
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Errors
>            Reporter: Paul Gier
>            Assignee: Paul Gier
>            Priority: Minor
>             Fix For: 2.0.11, 2.1.1, 3.0-alpha-3
>
>         Attachments: MNG-3834-maven-project.patch, pom.xml
>
>
> Currently, if I have two dependencies on the same groupId:artifactId, one with a classifier and one without, the missing version error message does not distinguish which dependency is missing a version.  For example, the following pom is missing a version number for one of the dependencies.
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>org.apache.maven</groupId>
>   <artifactId>missing-version-error</artifactId>
>   <packaging>jar</packaging>
>   <name>Missing version error</name>
>   <version>1.0.0-SNAPSHOT</version>
>   
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <classifier>test</classifier>
>     </dependency>
>   </dependencies>
> </project>
> {code}
> The error message prints the following:
> {code}
> Validation Messages:
>     [0]  'dependencies.dependency.version' is missing for org.apache.maven:myartifact1
> {code}
> The error message should include information about the dependency's classifier.

-- 
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-3834) Improve error message when dependency with classifier is missing version

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

Paul Gier closed MNG-3834.
--------------------------

    Resolution: Fixed

This is fixed.

> Improve error message when dependency with classifier is missing version
> ------------------------------------------------------------------------
>
>                 Key: MNG-3834
>                 URL: http://jira.codehaus.org/browse/MNG-3834
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Errors
>            Reporter: Paul Gier
>            Assignee: Paul Gier
>            Priority: Minor
>             Fix For: 2.0.11, 2.1.1, 3.0-alpha-3
>
>         Attachments: MNG-3834-maven-project.patch, pom.xml
>
>
> Currently, if I have two dependencies on the same groupId:artifactId, one with a classifier and one without, the missing version error message does not distinguish which dependency is missing a version.  For example, the following pom is missing a version number for one of the dependencies.
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>org.apache.maven</groupId>
>   <artifactId>missing-version-error</artifactId>
>   <packaging>jar</packaging>
>   <name>Missing version error</name>
>   <version>1.0.0-SNAPSHOT</version>
>   
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <classifier>test</classifier>
>     </dependency>
>   </dependencies>
> </project>
> {code}
> The error message prints the following:
> {code}
> Validation Messages:
>     [0]  'dependencies.dependency.version' is missing for org.apache.maven:myartifact1
> {code}
> The error message should include information about the dependency's classifier.

-- 
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-3834) Improve error message when dependency with classifier is missing version

Posted by "Paul Gier (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=153854#action_153854 ] 

pgier edited comment on MNG-3834 at 11/11/08 3:55 PM:
----------------------------------------------------------

Attaching patch for 2.0.x that uses the dependencyManagementKey (groupId:artifactId:type:classifier), instead of just the artifactId and groupId in the error message.

The new error message looks like this:
{code}
Validation Messages:

    [0]  'dependencies.dependency.version' is missing for org.apache.maven:myartifact1:jar:test
{code}

      was (Author: pgier):
    Attaching patch for 2.0.x that uses the dependencyManagementKey (groupId:artifactId:type:classifier), instead of just the artifactId and groupId in the error message.
  
> Improve error message when dependency with classifier is missing version
> ------------------------------------------------------------------------
>
>                 Key: MNG-3834
>                 URL: http://jira.codehaus.org/browse/MNG-3834
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Errors
>            Reporter: Paul Gier
>         Attachments: MNG-3834-maven-project.patch, pom.xml
>
>
> Currently, if I have two dependencies on the same groupId:artifactId, one with a classifier and one without, the missing version error message does not distinguish which dependency is missing a version.  For example, the following pom is missing a version number for one of the dependencies.
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>org.apache.maven</groupId>
>   <artifactId>missing-version-error</artifactId>
>   <packaging>jar</packaging>
>   <name>Missing version error</name>
>   <version>1.0.0-SNAPSHOT</version>
>   
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <classifier>test</classifier>
>     </dependency>
>   </dependencies>
> </project>
> {code}
> The error message prints the following:
> {code}
> Validation Messages:
>     [0]  'dependencies.dependency.version' is missing for org.apache.maven:myartifact1
> {code}
> The error message should include information about the dependency's classifier.

-- 
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-3834) Improve error message when dependency with classifier is missing version

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

Brett Porter updated MNG-3834:
------------------------------

      Fix Version/s: 2.0.11
    Patch Submitted: [Yes]

> Improve error message when dependency with classifier is missing version
> ------------------------------------------------------------------------
>
>                 Key: MNG-3834
>                 URL: http://jira.codehaus.org/browse/MNG-3834
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: Errors
>            Reporter: Paul Gier
>             Fix For: 2.0.11
>
>         Attachments: MNG-3834-maven-project.patch, pom.xml
>
>
> Currently, if I have two dependencies on the same groupId:artifactId, one with a classifier and one without, the missing version error message does not distinguish which dependency is missing a version.  For example, the following pom is missing a version number for one of the dependencies.
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
>   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
>   <modelVersion>4.0.0</modelVersion>
>   <groupId>org.apache.maven</groupId>
>   <artifactId>missing-version-error</artifactId>
>   <packaging>jar</packaging>
>   <name>Missing version error</name>
>   <version>1.0.0-SNAPSHOT</version>
>   
>   <dependencies>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <version>1.0-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>       <groupId>org.apache.maven</groupId>
>       <artifactId>myartifact1</artifactId>
>       <classifier>test</classifier>
>     </dependency>
>   </dependencies>
> </project>
> {code}
> The error message prints the following:
> {code}
> Validation Messages:
>     [0]  'dependencies.dependency.version' is missing for org.apache.maven:myartifact1
> {code}
> The error message should include information about the dependency's classifier.

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