Hi, I'have post a message in my blog to explain the pb. There are sample sources :
http://www.jroller.com/greinhart/entry/generate_an_artifact_with_a Gerald Reinhart On 20/09/2007, Gerald Reinhart < @googlemail.com> wrote: > > Hi, > > I've got a general problem: the core maven can't generate all artifact, so > there are some plugin to do that for a specific context (for instance, > maven-antrun-plugin ). How can we do a dependency to the artifact generated > by a plugin ? > > I tried to > - configure the packaging of the pom with the same packaging of the > plugin > - generate the artifact from the plugin with the same path that the pom's > target artifact > => the plugin replace the artifact generated by the core. > > This works well in a simple project: you can deploy your artifact in your > local repository and make a dependency to it from another project. > > BUT, if you do this kind of dependency in a multimodule project the global > build do not work: the dependency is made with the artifact generated by the > core and not by the plugin.... > > An idea ? > > Regards, > > Gerald Reinhart > >
