Maven install error: fatal error matching: error: invalid target distribution: 11.0.8 – > [help 1]

Project scenario:

Maven install: fatal error matching: error: invalid target distribution: 11.0.8 – & gt[ Help 1]

Solution:

Modify settings.xml in Maven directory

<profile> 
​	<id>jdk-11</id>
​	 <activation> 
​			<activeByDefault>true</activeByDefault> 
​			<jdk>11</jdk> 
​	</activation> 
​	<properties> 
​			<maven.compiler.source>11</maven.compiler.source> 		
​			<maven.compiler.target>11</maven.compiler.target> 					<maven.compiler.compilerVersion>11</maven.compiler.compilerVersion> 
​	</properties>
</profile>

https://www.cnblogs.com/zhao1949/p/6180155.html


Read More: