maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Casey" <casey.joh...@gmail.com>
Subject Re: accessing artifacts in local repository from pom expressions or antrun scripts
Date Wed, 02 Aug 2006 19:54:25 GMT
I'd suggest writing a custom maven plugin to handle this. You can lookup
files in the local repository from inside a custom plugin pretty easily, and
in any case you're still going to need some way to fire off your merge app.

-j

On 8/2/06, J. Matthew Pryor <jmp@mobiquity.net> 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
>
>

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