Thanks Jörg,

Thanks for that response.

However my question still remains. How can I get Maven to report to me, in
XML format the missing dependencies. I know Maven currently dumps them out
to the log/console in text format. Is there a plugin out there that can
capture that info in XML? I'm trying to avoid parsing that text output.

Or can someone point me to the Maven classes that produce that output so
that I can grab that info before it is pretty-ed up and printed to the
console. Then I can write my own plugin to process that information.

Thanks


Jörg Schaible-2 wrote:
> 
> Hi Pankaj,
> 
> Pankaj Tandon wrote at Wednesday, 3. March 2010 14:32:
> 
>> 
>> Hi,
>> I'm looking for a way to determine what artifacts are NOT in my corporate
>> repository (for a certain maven project) so that I can script their
>> addition to the corporate repository.
>> 
>> So I started looking at the maven-dependency-plugin and was happy to see
>> a
>> goal called analyze that takes in a config param called outputXML. So
>> that
>> sounded just what I needed.
>> 
>> But then I started looking closer and it seems that although the
>> documentation of outputXML specifies "Output the xml for the missing
>> dependencies", looking at the code (of
>> http://svn.apache.org/viewvc/maven/plugins/tags/maven-dependency-
> plugin-2.1/src/main/java/org/apache/maven/plugin/dependency/AbstractAnalyzeMojo.java?view=markup
>> AbstractAnalyzeMojo ), outputXML really outputs usedUndeclared
>> dependencies
> 
> they are nor declared in the current POM, therefore they are missing.
> 
>> NOT missing dependencies.
> 
> this does not make sense, because to analyse the dependencies, they have
> to 
> be present. They *cannot* be missing in the repository.
> 
>> I think there is a distinction drawn between declared (in the POM) and
>> missing (from the accessible repos) and it seems that outputXML only
>> dumps
>> the used-but-undeclared-in-pom dependencies.
> 
> Not for the plugin and its purpose here.
> 
>> My question is: Is there a way to dump (in XML preferably) the
>> dependencies that are missing from accessible repositories? Maybe using
>> some other plugin?
> 
> Every plugin, that requires dependency resolution from Maven, will cause
> the 
> Maven core to download the missing stuff. *If* something is missing, Maven 
> will report those all and stop with an error.
> 
> This might not be exactly what you're looking for though...
> 
> - Jörg
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/XML-output-of-missing-dependencies-tp27768224p27770365.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to