maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alejandro.E...@miranda.com
Subject Re: maven properties of dependencies
Date Thu, 14 Mar 2013 14:51:17 GMT

Latest maven and maven-dependency-tree 2.0

Maybe we are talking about different interfaces

org.apache.maven.shared.dependency.graph.DependencyNode.getArtifact()
returns a org.apache.maven.artifact.Artifact, which does not have a
getProperties() method

Am I missing something?

Thank you,

Alejandro



From:	Rahul Thakur <rahul.thakur.xdev@gmail.com>
To:	Maven Users List <users@maven.apache.org>,
Date:	2013-03-14 07:22
Subject:	Re: maven properties of dependencies




Hi Alejandro,

What version of Maven are you writing your plugin with? What's the
scenario - can you please elaborate?

I am looking through the current master, it seems you could do something
like:

DependencyNode.getDependency().getArtifact().getProperties()

I hope I understood your problem correctly...

Cheers,

Rahul



On 3/9/2013 12:56 AM, Alejandro.Endo@miranda.com wrote:
>
> I have a plugin that uses DependencyGraphBuilder to find the dependencies
> of a MavenProject. Traversing the graph I get a DependencyNode , however,
I
> need to access a particular maven property of the dependency's pom and
this
> is not possible AFAIK. Is this true? is it really not possible to access
> the properties of a dependency pom using DependencyGraphBuilder
component?
> if so, how could I manage to grab those?
>
> Thank you,
>
>
>
> Alejandro
> DISCLAIMER:
>
> Privileged and/or Confidential information may be contained in this
> message. If you are not the addressee of this message, you may not
> copy, use or deliver this message to anyone. In such event, you
> should destroy the message and kindly notify the sender by reply
> e-mail. It is understood that opinions or conclusions that do not
> relate to the official business of the company are neither given
> nor endorsed by the company.
>
> Thank You.
>
>


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


DISCLAIMER:

Privileged and/or Confidential information may be contained in this
message. If you are not the addressee of this message, you may not
copy, use or deliver this message to anyone. In such event, you
should destroy the message and kindly notify the sender by reply
e-mail. It is understood that opinions or conclusions that do not
relate to the official business of the company are neither given
nor endorsed by the company.

Thank You.


Mime
  • Unnamed multipart/related (inline, None, 0 bytes)
View raw message