I have a Java 11 project which defines a module-info.java and is compliant with JPMS - except that it requires unnamed modules from other developers that did not yet care about JPMS.
When I put the Maven dependencies in the module path, that is, in the .classpath of Eclipse I have
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
then everything works just fine. However, when I select Maven -> Update Project in Eclipse, then Eclipse will remove the line
<attribute name="module" value="true"/>
After that, the project shows an error in Eclipse ("The type xxx cannot be resolved. It is indirectly referenced from required .class file.").
How can I tell Maven to keep the <attribute name="module" value="true"/> upon "Maven -> Update Project...".
(Eclipse version is 2020-03)