Take a look at the dependency plugin copy goal.

On Fri, Sep 24, 2010 at 9:18 AM,  <[email protected]> wrote:
> Hi,
>
> in a maven plugin I like to resolve the dependencies of a project.
>
> My current way to do so is:
>
> for (Dependency dep: project.getModel().getDependencies()) {
>    // factory is
>    Artifact artifact = factory.createArtifact(dependency.getGroupId(), 
> dependency.getArtifactId(),
>                    dependency.getVersion(), dependency.getScope(), 
> dependency.getType());
>    resolver.resolve(artifact, remoteRepos, local);
>    // do something with artifact.getFile()
> }
>
> is there a more convinient way of doing so ? something like
>
> Artifact artifact = factory.createArtifact(dep);
> resolver.resolve(artifact, remoteRepos, local);
>
> or similar ?
>
> Thanks
>
>
>
>
>
>
>
>

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

Reply via email to