You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Simon Kitching <sk...@apache.org> on 2006/08/03 12:42:16 UTC
Re: accessing artifacts in local repository from pom expressions
or antrun scripts
Maybe use the maven-dependency-plugin, which according to the docs can
copy the set of dependencies to an arbitrary directory, and strip off
version numbers?
On Thu, 2006-08-03 at 00:25 +1000, J. Matthew Pryor wrote:
> I am using the native-maven-plugin to compile C source for the ATmelplatform
> This produces two binary/object files as artifacts from sibling modules. I need to be able to pass the path names of these 2 files to a
> Java program we have written that merges the 2 object files together
>
> Thanks for any further assistance
> Matthew
>
>
>
>
> Denis Cabasson wrote:
> > Merging 2 artifacts....
> >
> > Looks like a task for maven-assembly-plugin:
> > http://maven.apache.org/plugins/maven-assembly-plugin/unpack-mojo.html
> >
> > It can unpack jar/zip dependencies to an assembly directory and package them
> > as you need.
> >
> > I'm afraid I can't help any futher without more informations about the
> > artifacts you want to merge, and what you want to produce.
> >
> > Denis.
> >
> >
> > J. Matthew Pryor wrote:
> >
> >> I am migrating a maven 1 project to a maven 2 project.
> >> I have one module that creates its artifact by merging together 2
> >> artifacts created by dependent modules
> >> At the moment, I am trying to do it all with the antrun plugin, rather
> >> than writing Mojos.
> >>
> >> In the maven 1 version I did somethign like this:
> >>
> >> ${maven.repo.local}/${pom.artifactDirectory}/the-file-i-want.exe
> >>
> >> Is there any way I can get installed artifacts from the local repository
> >> via antrun or pom.xml expressions?
> >>
> >> Thanks,
> >> Matthew
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
> >>
> >>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org