為什么按照老師說的方法到maven目錄下去更改了setting.xml還是不行?
我的jdk版本是1.8的
<profile>
????<id>jdk-1.8</id>
????<activation>
????????<activeByDefault>true</activeByDefault>
????????<jdk>1.8</jdk>
????</activation>
????<properties>
????????<maven.compiler.source>1.8</maven.compiler.source>
????????<maven.compiler.target>1.8</maven.compiler.target>
????????<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
????</properties>
</profile>
2018-12-27
講一下我解決的方法,因?yàn)楦牧税胩焓歉牡淖⑨尷锩娴陌姹咎?,所以不生效,哈哈哈哈?/p>
2017-12-11
<profile>?
????? <id>jdk-9.0.1</id>?
????? <activation>?
??????? <activeByDefault>true</activeByDefault>?
??????? <jdk>9.0.1</jdk>?
????? </activation>?
????? <properties>?
??????? <maven.compiler.source>9</maven.compiler.source>?
??????? <maven.compiler.target>9</maven.compiler.target>?
??????? <maven.compiler.compilerVersion>9</maven.compiler.compilerVersion>?
????? </properties>?
??? </profile>
這樣,我之前也不行,發(fā)現(xiàn)那個(gè)<properties></properties>標(biāo)簽沒寫
2017-10-31
只要確定你更改的是下面紅色部分所設(shè)置的settings.xml文件,就可以了
2017-09-19
2017-08-24
兩個(gè)辦法:1.直接改eclipse里window->preferences->maven->user settings,user settings?默認(rèn)的那個(gè)settings。 ? ? ? ??2.maven安裝目錄下的settings添加完后,再對eclipse進(jìn)行設(shè)置。window->preferences->maven->user settings,user settings那里選擇maven安裝目錄下的settings.xml文件。
2017-05-14
setting.xml中加入的配置是這樣子的:
注意:最外層還有一層標(biāo)簽<profiles></profiles>
2017-05-08
只要改repo下的setting.xml就可以
2016-12-26
不是有兩個(gè)setting配置文件,都要修改
2016-05-23
是不是因?yàn)榘姹咎吡?/p>
2016-05-23
同樣沒有成功,我用的eclipse版本是kepler。