You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by James Teng <te...@outlook.com> on 2015/02/12 14:03:15 UTC
copy resources to other places after build
Due to some causes, i would like maven can move the packaged jar to some place specified after build, does it have a plugin for that except directly letting the jar dumped to the target place using maven jar plugin?
thanks!
uknow.
RE: copy resources to other places after build
Posted by James Teng <te...@outlook.com>.
Appreciate your favors, learned from your works. thanks!
uknow.
> From: ctrueden@wisc.edu
> Date: Thu, 12 Feb 2015 12:27:17 -0600
> Subject: Re: copy resources to other places after build
> To: users@maven.apache.org
>
> Hi James,
>
> > i would like maven can move the packaged jar to some place specified
> after build
>
> The dependency:copy goal might work for your use case. But as Dan says, be
> careful with this route: there can be subtle consequences.
>
> http://stackoverflow.com/q/7063475/1207769
>
> Regards,
> Curtis
>
> On Thu, Feb 12, 2015 at 11:46 AM, Dan Tran <da...@gmail.com> wrote:
>
> > You can hook up maven-antrun-plugin to do the copy, use vfs-maven-plugin,
> > or wagon-maven-plugin to do remote copy. But think twice before going for
> > this route.
> >
> > -D
> >
> > On Thu, Feb 12, 2015 at 5:03 AM, James Teng <te...@outlook.com>
> > wrote:
> >
> > > Due to some causes, i would like maven can move the packaged jar to some
> > > place specified after build, does it have a plugin for that except
> > directly
> > > letting the jar dumped to the target place using maven jar plugin?
> > > thanks!
> > > uknow.
> >
Re: copy resources to other places after build
Posted by Curtis Rueden <ct...@wisc.edu>.
Hi James,
> i would like maven can move the packaged jar to some place specified
after build
The dependency:copy goal might work for your use case. But as Dan says, be
careful with this route: there can be subtle consequences.
http://stackoverflow.com/q/7063475/1207769
Regards,
Curtis
On Thu, Feb 12, 2015 at 11:46 AM, Dan Tran <da...@gmail.com> wrote:
> You can hook up maven-antrun-plugin to do the copy, use vfs-maven-plugin,
> or wagon-maven-plugin to do remote copy. But think twice before going for
> this route.
>
> -D
>
> On Thu, Feb 12, 2015 at 5:03 AM, James Teng <te...@outlook.com>
> wrote:
>
> > Due to some causes, i would like maven can move the packaged jar to some
> > place specified after build, does it have a plugin for that except
> directly
> > letting the jar dumped to the target place using maven jar plugin?
> > thanks!
> > uknow.
>
Re: copy resources to other places after build
Posted by Dan Tran <da...@gmail.com>.
You can hook up maven-antrun-plugin to do the copy, use vfs-maven-plugin,
or wagon-maven-plugin to do remote copy. But think twice before going for
this route.
-D
On Thu, Feb 12, 2015 at 5:03 AM, James Teng <te...@outlook.com> wrote:
> Due to some causes, i would like maven can move the packaged jar to some
> place specified after build, does it have a plugin for that except directly
> letting the jar dumped to the target place using maven jar plugin?
> thanks!
> uknow.