maven编译报错 The requested profile "native" could not be activated because it does not exist
MAVEN_HOME/conf/settings.xml 中配置了profile(全局)或者在用户m2下的settings.xml配置了profile(当前用户)皆会自动应用到当前项目,只有在pom.xml中配置的profile是应用于当前项目的(仅当前项目)。
此处去掉MAVEN_HOME或者用户m2下settings.xml中的profile即可。