Java intellij maven使用localRepository配置提供插件的错误解决版本';plugins:maven编译器插件';

Java intellij maven使用localRepository配置提供插件的错误解决版本';plugins:maven编译器插件';,java,maven,intellij-idea,Java,Maven,Intellij Idea,我想使用localRepository,而不是使用默认的.m2和默认的settings.xml 因此,我设置settings.xml,称之为my_settings.xml,在intellij中,我这样称呼它: clean -s my_settings.xml install -f pom.xml <settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.

我想使用localRepository,而不是使用默认的.m2和默认的
settings.xml
因此,我设置settings.xml,称之为
my_settings.xml
,在intellij中,我这样称呼它:

clean -s my_settings.xml install -f pom.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
<localRepository>c:/Dev/my/java/dispatcherApp/local</localRepository>
<activeProfiles>
    <activeProfile>defaultMainProfile</activeProfile>
</activeProfiles>
<profiles>
    <profile>
        <id>defaultMainProfile</id>

        <pluginRepositories>

            <pluginRepository>
                <id>maven-central</id>
                <name>maven-central</name>
                <url>http://repo1.maven.org/maven2/</url>
            </pluginRepository>
            <pluginRepository>
                <id>sonatype</id>
                <name>sonatype</name>
                <url>http://oss.sonatype.org/content/repositories/releases/</url>
            </pluginRepository>

        </pluginRepositories>
    </profile>
</profiles>
</settings>
my_settings.xml安装如下所示:

clean -s my_settings.xml install -f pom.xml
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
<localRepository>c:/Dev/my/java/dispatcherApp/local</localRepository>
<activeProfiles>
    <activeProfile>defaultMainProfile</activeProfile>
</activeProfiles>
<profiles>
    <profile>
        <id>defaultMainProfile</id>

        <pluginRepositories>

            <pluginRepository>
                <id>maven-central</id>
                <name>maven-central</name>
                <url>http://repo1.maven.org/maven2/</url>
            </pluginRepository>
            <pluginRepository>
                <id>sonatype</id>
                <name>sonatype</name>
                <url>http://oss.sonatype.org/content/repositories/releases/</url>
            </pluginRepository>

        </pluginRepositories>
    </profile>
</profiles>
</settings>
我需要下载AWS SDK 在模块pom.xml中,我有:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <parent>
        <artifactId>dispatcherApp</artifactId>
        <groupId>com.dispatcherApp</groupId>
        <version>1.0-SNAPSHOT</version>
    </parent>
    <modelVersion>4.0.0</modelVersion>

    <artifactId>aws-manager</artifactId>
    <dependencies>
        <dependency>
            <groupId>com.amazonaws</groupId>
            <artifactId>aws-java-sdk</artifactId>
        </dependency>
    </dependencies>
</project>

调度员
com.dispatcherApp
1.0-快照
4.0.0
aws经理
亚马逊网站
aws java sdk

intellij中特定于项目的设置文件可以在“首选项”>“构建、执行、部署”>“构建工具”>“Maven”下设置。您可以在此处设置用户设置文件和本地存储库。如果这就是你想要的。
在intellij中,我这样称呼它
你从哪里称呼它-从终端还是其他地方?