最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

maven - What is wrong with pom.xml? - Stack Overflow

programmeradmin1浏览0评论

I am getting the below error:

Failed to execute goal .apache.maven.plugins:maven-war-plugin:2.1.1:war (default-war) on project myweb: 
    Execution default-war of goal .apache.maven.plugins:maven-war-plugin:2.1.1:war failed: 
    Unable to load the mojo 'war' in the plugin '.apache.maven.plugins:maven-war-plugin:2.1.1' due to an API incompatibility: 
    .codehaus.plexusponent.repository.exception.ComponentLookupException: Cannot access defaults field of Properties

My Code:

<project xmlns=".0.0" xmlns:xsi=";
    xsi:schemaLocation=".0.0 .xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>in.javahome</groupId>
    <artifactId>myweb</artifactId>
    <packaging>war</packaging>
    <version>8.6.9</version>
    <name>Java Home myweb</name>
    <url>;/url>
    <properties>
        <docker.image.prefix>kammana</docker.image.prefix>
        <sonar.host.url>http://18.181.164.81:9000/</sonar.host.url>

    </properties>
    <dependencies>

        
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>

    </dependencies>
    
    <distributionManagement>
         <snapshotRepository>
            <id>nexusRepo</id>
            <url>http://34.208.218.12:8081/repository/sample-snapshots/</url>
         </snapshotRepository>
发布评论

评论列表(0)

  1. 暂无评论