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.
source
share