mvn dependency:analyze -DoutputXML=true does not include classifier in XML 
output
----------------------------------------------------------------------------------

                 Key: MDEP-219
                 URL: http://jira.codehaus.org/browse/MDEP-219
             Project: Maven 2.x Dependency Plugin
          Issue Type: Bug
          Components: analyze
    Affects Versions: 2.2
         Environment: % mvn --version
Apache Maven 2.2.0 (r788681; 2009-06-26 08:04:01-0500)
Java version: 1.6.0_14
Java home: /opt/jdk1.6.0_14/jre
Default locale: en_US, platform encoding: ISO-8859-1
OS name: "linux" version: "2.6.27.24-78.2.53.fc9.x86_64" arch: "i386" Family: 
"unix"
            Reporter: Mike Hanafey
            Assignee: Brian Fox
            Priority: Minor


If a dependency requires a classifier to specify it (in the example below, the 
classifier is a datatype, and there are "int", "long", "float", and "double" 
flavors), the XML fragment omits the classifier:
{code}
[INFO] [dependency:analyze {execution: default-cli}]
[WARNING] Used undeclared dependencies found:
[WARNING]    jal:jal:jar:double:1.0:compile
[INFO] Add the following to your pom to correct the missing dependencies:
[INFO]
<dependency>
  <groupId>jal</groupId>
  <artifactId>jal</artifactId>
  <version>1.0</version>
</dependency>
{code}

In this example the correct XML would be:
{code}
<dependency>
  <groupId>jal</groupId>
  <artifactId>jal</artifactId>
  <classifier>double</classifier>
  <version>1.0</version>
</dependency>

{code}


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