Re: Use 2 pom.xml files with different names

2015-08-11 Thread Daniel Johnson (danijoh2)
I would expect this behavior that Martin has shown. Create a pom.xml and pom2.xml, and run 'mvn clean install -f pom2.xml’, you will see pom2.xml get installed into local maven repository. As Martin shows, pom.xml or pom2.xml name is not what is copied to repository, but instead the -.pom namin

Re: Use 2 pom.xml files with different names

2015-08-11 Thread Martin Hoeller
Hi! Am Mon, 10 Aug 2015 19:23:51 +0300 schrieb Alex Ditu : > I cannot test right now, but it can be tested very simple: in a simple > project, rename pom.xml and run install/deploy, and see if it works. > If it is ok, then is smth that I've done wrong. Else maybe it is the > desired effect (wich

Re: Use 2 pom.xml files with different names

2015-08-11 Thread Jörg Schaible
Hi Alex, Alex Ditu wrote: > Ok, look what I am trying to achieve: I have a project with 2 > profileDeployments (it produces 2 types of artifacts: a jar and a war) > but from the same sources. So, I did the following thing: I have > written 2 pom.xml files with 2 different names (for example: pom.