Well, create a separate module for doing this. Don't do everything in one
project.

/Anders


On Wed, Dec 12, 2012 at 4:16 PM, Alon Bar-Lev <alon.bar...@gmail.com> wrote:

> Thanks for the quick answer!
>
> Correct me if I am wrong but this copies dependencies and not the
> built artifacts.
> It is exactly the opposite of deploy...
> I need to copy only artifacts built...
>
> Regards,
> Alon
>
> On Wed, Dec 12, 2012 at 3:18 PM, Anders Hammar <and...@hammar.net> wrote:
> > You can use the copy-dependencies goal of the dependency plugin and use
> the
> > useRepositoryLayout parameter.
> >
> > /Anders
> >
> >
> > On Wed, Dec 12, 2012 at 11:32 AM, Alon Bar-Lev <alon.bar...@gmail.com
> >wrote:
> >
> >> Hello,
> >>
> >> I saw some corresponding regarding this subject, but saw now solution.
> >>
> >> I would like to create a local repository of a specific project. Up
> >> until now I used the deploy plugin to achieve that.
> >>
> >> mvn -D
> altDeploymentRepository=install::default::file://$(targetdir)/maven
> >> deploy
> >>
> >> This was great, as it created the repository layout and copied and
> >> generated all required files.
> >>
> >> The problem that for some reason the deploy plugin is disabled in
> >> offline  mode, even if it can be used with local repository.
> >>
> >> Being able to create repository in offline is required for packaging a
> >> project, without manually copy the artifacts out of tree.
> >>
> >> Maybe there is some other plugin that can be used to achieve the same
> >> task... I will be happy to use any alternative that creates the maven
> >> repository only for the artifacts that are being built and work in
> >> offline mode.
> >>
> >> Regards,
> >> Alon Bar-Lev.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

Reply via email to