title: Custom pom.xml filename in Maven multimodule for Tycho
body: <p>I have a project with a couple of dozen Eclipse plugins, all inter-related and living in different subfolders. The build was converted to a multi-module manifest-first Tycho build a couple of years ago and it works quite well.</p>
  
  <p>One of the plugins is rather key, and can also be built as a standalone Java app, which doesn't use an Eclipse runtime. Currently it has its own POM file (<code>pom-standalone.xml</code>) so that Jenkins can build the standalone app separately and the Tycho build knows nothing about it - the <code>pom-standalone</code> just lists the previously-built plugin jars (thanks Tycho!) and Eclipse libraries that it needs as dependencies. Couple problems with this approach though:</p>
  
  <ul>
  <li><p>I cannot easily use IntelliJ to work on the standalone project with Maven dependency management, because it doesn't recognize the custom <code>pom-standalone.xml</code> filename as a POM.</p>
  
  <ul>
  <li>The many jars that this project relies on are checked in to the project for the sake of Tycho and the Eclipse Manifest file, but they're also managed by Maven for the standalone build. So any dependencies have to be added to the <code>pom-standalone.xml</code> file AND entered into the OSGi manifest AND checked in to the source control for Eclipse purposes.</li>
  </ul></li>
  </ul>
  
  <p>It seems like a straightforward workaround would be to tell Tycho/modules to use something other than <code>pom.xml</code> for the submodule's POM, or perhaps all the multimodule POM files, since Eclipse doesn't use those anyway - then the <code>pom-standalone.xml</code> can be converted to <code>pom.xml</code> and then IntelliJ will be fine with it.</p>
  
  <p>I know you can specify the <code>-f</code> attribute to Maven builds, but will that really apply to all submodules? Can you specify the POM filename for just ONE submodule?</p>
  
  <p>Are there alternative solutions? Eclipse/Tycho/p2 builds seem somewhat of a headache requiring manual library management and checking in libraries to source control, but maybe there have been changes I'm not aware of in the Eclipse build world the last few years.</p>
  
  <p>Found a <a href="https://stackoverflow.com/questions/12102388/custom-pom-xml-filename-in-maven-multimodule#">Similar Question</a> that didn't help much.</p>