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

        

Reply via email to