How to import an alternative pom.xml file into m2eclipse

The only possible entry is the directory where m2eclipse will automatically scan pom.xml. What if you want to import an alternative file (say abc.xml)? can this be done and how?

Thank you for your time.

+4
source share
3 answers

No, It is Immpossible. m2e relies on the presence of pom.xml. The only way to have different behavior in m2e is to use maven profiles. When using m2e, the following is automatically activated:

<profile>
  <id>m2e</id>
  <activation>
    <property>
      <name>m2e.version</name>
    </property>
  </activation>
 ...
</profile>

Your CLI assemblies will remain unchanged unless you manually use the m2e profile.

+3
source

Maven pom.xml, ; , , maven.

0

in the eclipse navigator view, right-click on your project and click new-> file, click "Advanced" and check "link to file in the file system" and specify the path

0
source

All Articles