How does maven choose which plugin version to use?

2016-07-03 Thread Alex Ditu
Hello, Can anyone provide some help regarding plugin versions? I want to use the latest version of maven-war-plugin (or at least one greater than 2.3); so i decided to install the latest version of maven, 3.3.9. But when I execute "mvn help:effective-pom" I see it still uses 2.3 version of maven-w

Re: Use 2 pom.xml files with different names

2015-08-10 Thread Alex Ditu
has changed. Please remove verha...@sander.com > <mailto:verha...@sander.com > now and start using > san...@sanderverhagen.net<mailto:san...@sanderverhagen.net > > from now on. Please update your address book. Thank you! > > > > > -Original Message- > >

RE: [EXTERNAL] Re: Use 2 pom.xml files with different names

2015-08-10 Thread Alex Ditu
> Do you have the same groupId, artifactId, and version specified in both > POM files? > > > -Original Message- > > From: Alex Ditu [mailto:ditu.alexan...@gmail.com] > > Sent: Monday, August 10, 2015 10:17 AM > > To: Maven Users List > > Subject: [

Re: Use 2 pom.xml files with different names

2015-08-10 Thread Alex Ditu
So the answer is: one cannot use a pom file with a different name than 'pom.xml'. In such case, why the -f option exists? On Aug 10, 2015 6:13 PM, "Benson Margulies" wrote: > On Mon, Aug 10, 2015 at 11:04 AM, Alex Ditu > wrote: > > I know how to solve my

Re: Use 2 pom.xml files with different names

2015-08-10 Thread Alex Ditu
I know how to solve my problem (by changing the project configuration). My question is: why mvn -f otherPomName.xml deploy doesen't work? And I said above how it fails. On Aug 10, 2015 5:59 PM, "Barrie Treloar" wrote: > On 10 August 2015 at 23:22, Alex Ditu wrote: > &

Re: Use 2 pom.xml files with different names

2015-08-10 Thread Alex Ditu
e: > >> On Aug 10, 2015, at 7:12 AM, Alex Ditu wrote: >> >> Hello, >> >> I want to use pom.xml files for my project with 2 different names: >> pom.xml and pom2.xml. >> In order to select wich one to execute/use I use -f like this: >> >

Use 2 pom.xml files with different names

2015-08-10 Thread Alex Ditu
Hello, I want to use pom.xml files for my project with 2 different names: pom.xml and pom2.xml. In order to select wich one to execute/use I use -f like this: mvn -f pom2.xml deploy Using this aproach I've encountered some problems in 2 scenarios: 1. If both pom.xml and pom2.xml exist when run

Update non-unique snapshots from Artifactory to local repository

2015-07-21 Thread Alex Ditu
Hello, I am new to maven and do not know how to solve this issue: I decided not to keep timestampped artifacts in Aritfactory but now maven is not downloading newer artifacts from Artifactory, although in metadata the versions differ. I do not want to manually delete my local copy of an artifact