下载神器Maven的编译器插件,我创建了一个Maven项目,并希望Java编译器版本更改为1.6,所以我增加了FF:无法从仓库
<build>
<plugins>
<plugin>
<artifactId>org.apache.maven.plugins</artifactId>
<groupId>maven-compiler-plugin</groupId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
</plugins>
</build>
当我运行任何行家日食中的目标,它的工作原理。但是当我在终端运行时,我得到了错误:
Project ID: maven-compiler-plugin:org.apache.maven.plugins
Reason: POM 'maven-compiler-plugin:org.apache.maven.plugins' not found in repository: Unable to download the artifact from any repository
maven-compiler-plugin:org.apache.maven.plugins:pom:2.3.2
from the specified remote repositories:
central (http://repo1.maven.org/maven2),
apache.repo (https://repository.apache.org/content/repositories/releases),
jboss.repo.deprecated (https://repository.jboss.org/nexus/content/repositories/deprecated),
任何想法是什么原因造成这个问题?
我能够通过更新到maven3来解决这个问题。但我现在的问题是,虽然我指定maven-compiler-plugin版本为2.4,但我仍然在日志中看到2.3.2。
安装Maven后,您不需要重新启动计算机。 – Tristan