You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Chris Helck <Ch...@us.icap.com> on 2008/12/01 18:21:23 UTC

Any way to create maven1 maven2 dependency data?

I have a mix of maven1 and maven2 projects. I would like to create
dependency data for all versions of my projects and poms. Is there any
way to do this?

It seems to me that maven2 poms would be easier. I have a maven2 repo
with all my published components. At first I thought I could write a
script the fetches the pom.xml files, extracts the relevant XML snippets
and create the dependency data. Then I realized I'd have to handle
parent/child relationships and evaluating properties and I ran out of
steam. Any suggestions?

Maven1 project.xml files are not published to the repo, so I'd have to
use what's in source control. Again I run into parent/child
relationships and properties.

The reason I want to do this is to get a picture of dependencies across
my line of applications. I want to know which projects are still using
old versions of components. I also want a more thorough way of finding
mismatched transitive dependencies.

Thanks,
Christopher Helck


**********************************************************************
This communication and all information (including, but not limited to,
 market prices/levels and data) contained therein (the "Information") is
 for informational purposes only, is confidential, may be legally
 privileged and is the intellectual property of ICAP plc and its affiliates
 ("ICAP") or third parties. No confidentiality or privilege is waived or
 lost by any mistransmission. The Information is not, and should not
 be construed as, an offer, bid or solicitation in relation to any
 financial instrument or as an official confirmation of any transaction.
 The Information is not warranted, including, but not limited, as to
 completeness, timeliness or accuracy and is subject to change
 without notice. ICAP assumes no liability for use or misuse of the
 Information. All representations and warranties are expressly
 disclaimed. The Information does not necessarily reflect the views of
 ICAP. Access to the Information by anyone else other than the
 recipient is unauthorized and any disclosure, copying, distribution or
 any action taken or omitted to be taken in reliance on it is prohibited. If
 you receive this message in error, please immediately delete it and all
 copies of it from your system, destroy any hard copies of it and
 notify the sender.
**********************************************************************


Re: Any way to create maven1 maven2 dependency data?

Posted by Wayne Fay <wa...@gmail.com>.
> I have a mix of maven1 and maven2 projects. I would like to create
> dependency data for all versions of my projects and poms. Is there any
> way to do this?

For the M2 projects, the m-dependency-p has goals that will probably
be helpful to you:
http://maven.apache.org/plugins/maven-dependency-plugin/index.html

Also for M2, are you aware of the dependency report generated as part
of "mvn site"? Does this meet your requirements, or do you need
something different? Here's a sample output:
http://maven.apache.org/plugins/maven-project-info-reports-plugin/sample-dependencies.html

For M1, I have no good suggestions. We stopped using it a long time
ago and I simply forget stuff like this. I would probably spend the
time/effort to port those projects to M2.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org