Re: First copy one file, befo re anything
On Friday, December 5, 2014, Yaron Goldstein wrote: > Hi, > You can copy it to any directory of choice. > One thing to remember is to run it in the validate phase: Doing so well up to this point > mvn validate install And then shows lack of understanding of maven's lifecycle. `validate` is the second phase in the standard lifecycle and `install` is the second last phase in the standard lifecycle. Typing `mvn validate install` will ask maven to run all the phases of the standard lifecycle up to and including the `validate` phase *and then* run all the phases of the standard lifecycle up to and including the `install` phase. If you are paying attention you will notice that the above command would execute the plugins bound to the `validate` phase twice There is also some subtlety around how that will behave in a multi-module reactor... The first validate will be applied to *all* modules *and then* the second validate will be applied to all modules again... Essentially processing the reactor twice Finally, if you really understand maven you probably should be using the `verify` phase in examples rather than continuing the habit of polluting the local repo cache with the `install` phase (though some IDEs and sub-module workflows need it... A build is better if it will work from a clean repo with just `mvn verify`) > More info here > http://maven.apache.org/plugins/maven-antrun-plugin/usage.html > Good luck & Shalom!! > Yaron > > On Fri, Dec 5, 2014 at 6:06 PM, Aitor Iturriondobeitia < > laudio.i...@gmail.com > wrote: > > > Thanks > > I must copy the file to one dir out of the project. The file is Info the > > project ($project.base}/Filters and i must to move to c:/Filters > > Thanks > > > > El viernes, 5 de diciembre de 2014, Yaron Goldstein < > > yarongoldstei...@gmail.com > escribió: > > > > Hi. > >> Use the ant plugin. Here's an example: > >> > >> > >> > >> > >> > >> maven-antrun-plugin > >> > >> > >> > >> > >> > >> validate > >> > >> > >> > >> run > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> >> > >> tofile="src/main/resources/config.properties" /> > >> > >> > >> > >> >> laudio.i...@gmail.com > כתב: > >> > >>> hello > >>> I must to copy one file before anything, > >>> This file contains some properties for filtering > >>> What plugin must i use and how for moving one file to one directory? > >>> Thanks > >>> > >> > -- Sent from my phone
Re: First copy one file, befo re anything
Hi, You can copy it to any directory of choice. One thing to remember is to run it in the validate phase: mvn validate install More info here http://maven.apache.org/plugins/maven-antrun-plugin/usage.html Good luck & Shalom!! Yaron On Fri, Dec 5, 2014 at 6:06 PM, Aitor Iturriondobeitia < laudio.i...@gmail.com> wrote: > Thanks > I must copy the file to one dir out of the project. The file is Info the > project ($project.base}/Filters and i must to move to c:/Filters > Thanks > > El viernes, 5 de diciembre de 2014, Yaron Goldstein < > yarongoldstei...@gmail.com> escribió: > > Hi. >> Use the ant plugin. Here's an example: >> >> >> >> >> >> maven-antrun-plugin >> >> >> >> >> >> validate >> >> >> >> run >> >> >> >> >> >> >> >> >> >> > >> tofile="src/main/resources/config.properties" /> >> >> >> >> > laudio.i...@gmail.com> כתב: >> >>> hello >>> I must to copy one file before anything, >>> This file contains some properties for filtering >>> What plugin must i use and how for moving one file to one directory? >>> Thanks >>> >>
Re: First copy one file, befo re anything
Thanks I must copy the file to one dir out of the project. The file is Info the project ($project.base}/Filters and i must to move to c:/Filters Thanks El viernes, 5 de diciembre de 2014, Yaron Goldstein < yarongoldstei...@gmail.com> escribió: > Hi. > Use the ant plugin. Here's an example: > > > > > > maven-antrun-plugin > > > > > > validate > > > > run > > > > > > > > > > > tofile="src/main/resources/config.properties" /> > > > > > כתב: > >> hello >> I must to copy one file before anything, >> This file contains some properties for filtering >> What plugin must i use and how for moving one file to one directory? >> Thanks >> >
Re: First copy one file, befo re anything
Hi. Use the ant plugin. Here's an example: maven-antrun-plugin validate run כתב: > hello > I must to copy one file before anything, > This file contains some properties for filtering > What plugin must i use and how for moving one file to one directory? > Thanks >
Re: First copy one file, befo re anything
Where is this file maintained? Why is it not within the project? What kind of filtering needs to be done (when in the build)? Is there anything else that you can add to give more details. The answers to these questions might give people some idea about how to do what you want. Ron On 05/12/2014 10:12 AM, Aitor Iturriondobeitia wrote: hello I must to copy one file before anything, This file contains some properties for filtering What plugin must i use and how for moving one file to one directory? Thanks -- Ron Wheeler President Artifact Software Inc email: rwhee...@artifact-software.com skype: ronaldmwheeler phone: 866-970-2435, ext 102 - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org
First copy one file, befo re anything
hello I must to copy one file before anything, This file contains some properties for filtering What plugin must i use and how for moving one file to one directory? Thanks