Maven版本的pom.xml文件中的错误,它显示以下错误“”

时间:2019-05-14 06:46:01

标签: java eclipse maven

http://maven.apache.org/maven-v4_0_0.xsd“>     4.0.0

<groupId>org.activiti.examples</groupId>
<artifactId>activiti-examples</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<name>BPMN 2.0 with Activiti - Examples</name>
<properties>
    <activiti-version>5.22.0</activiti-version>
</properties>
<dependencies>
    <dependency>
        <groupId>org.activiti</groupId>
        <artifactId>activiti-engine</artifactId>
        <version>5.22.0</version>
    </dependency>
    <dependency>
        <groupId>org.activiti</groupId>
        <artifactId>activiti-spring</artifactId>
        <version>${activiti-version}</version>
    </dependency>
    <dependency>
        <groupId>org.codehaus.groovy</groupId>
        <artifactId>groovy-all</artifactId>
        <version>2.4.3</version>
    </dependency>
    <dependency>
        <groupId>com.h2database</groupId>
        <artifactId>h2</artifactId>
        <version>1.3.168</version>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>1.7.6</version>
    </dependency>
    <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-jdk14</artifactId>
        <version>1.7.6</version>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.11</version>
    </dependency>
</dependencies>
<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.1</version>
            <configuration>
                <release>11</release>
            </configuration>
        </plugin>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-eclipse-plugin</artifactId>
            <inherited>true</inherited>
            <configuration>
                <classpathContainers>
                    <classpathContainer>org.eclipse.jdt.USER_LIBRARY/Activiti DesignerExtensions</classpathContainer>
                </classpathContainers>
            </configuration>
        </plugin>
    </plugins>
</build>

它显示以下错误     “”来自资源库[本地(/home/prakash/.m2/repository),中央(https://的插件的org.apache.maven.plugins:maven-eclipse-plugin)的错误解决版本      repo.maven.apache.org/maven2)]:在任何插件存储库中都找不到插件“”

1 个答案:

答案 0 :(得分:0)

在Eclipse中,右键单击项目,然后选择Maven->更新项目。

如果上述方法无效,请在选中“强制更新”选项的情况下重复该过程。