build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing

jk9hmnmh  于 2023-10-17  发布在  Maven
关注(0)|答案(3)|浏览(191)

我正在努力让这个项目工作,https://bitbucket.org/doklovic_atlassian/atlassian-beer-supply/downloads
我必须得到一些库来获得依赖项。但我仍然得到一个错误:

  • 处理POM时遇到一些问题:[编辑] org.apache.maven.plugins的'build.plugins.plugin.version':maven-compiler-plugin丢失。@ line 156,column 21 [ERROR] Unresolveable build extension:Plugin com.atlassian.maven.plugins:maven-jira-plugin:6.0.0或其某个依赖项无法解析:无法收集com.atlassian.maven的依赖项。plugins:maven-jira-plugin:jar:6.0.0()@ [ERROR] Unknown packaging:Atlassian-plugin @ line 14,column 16(at line 3)***

这是项目的pom.xml,
http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>com.example.beersupply</groupId>
<artifactId>atlassian-beer-supply</artifactId>
<version>1.0-SNAPSHOT</version>
<organization>
    <name>Example Company</name>
    <url>http://www.example.com/</url>
</organization>
<name>atlassian-beer-supply</name>

<description>This is the com.example.beersupply:atlassian-beer-supply plugin for Atlassian JIRA.</description>

<packaging>atlassian-plugin</packaging>
<dependencies>
    <dependency>
        <groupId>com.atlassian.jira</groupId>
        <artifactId>jira-api</artifactId>
        <version>${jira.version}</version>
        <scope>provided</scope>
    </dependency>
    <!-- Add dependency on jira-core if you want access to JIRA implementation classes as well as the sanctioned API. -->
    <!-- This is not normally recommended, but may be required eg when migrating a plugin originally developed against JIRA 4.x -->
    <!-- WE ARE ADDING THIS IN SO WE HAVE THE CORE CLASSES NEEDED TO CREATE A WORKFLOW -->
    <dependency>
        <groupId>com.atlassian.jira</groupId>
        <artifactId>jira-core</artifactId>
        <version>${jira.version}</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.plugins</groupId>
        <artifactId>atlassian-plugins-core</artifactId>
        <version>3.2.5</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.8.1</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.jira</groupId>
        <artifactId>jira-tests</artifactId>
        <version>${jira.version}</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.mockito</groupId>
        <artifactId>mockito-all</artifactId>
        <version>1.9.0</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.4</version>
        <scope>provided</scope>
    </dependency>
    <!-- added this for activeobjects support -->
    <dependency>
        <groupId>com.atlassian.activeobjects</groupId>
        <artifactId>activeobjects-plugin</artifactId>
        <version>0.29.3</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>net.java.dev.activeobjects</groupId>
        <artifactId>activeobjects-test</artifactId>
        <version>0.29.3</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.activeobjects</groupId>
        <artifactId>activeobjects-test</artifactId>
        <version>0.29.3</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.derby</groupId>
        <artifactId>derby</artifactId>
        <version>10.4.2.0</version>
        <scope>test</scope>
    </dependency>
    <!-- added this for template renderer support -->
    <dependency>
        <groupId>com.atlassian.templaterenderer</groupId>
        <artifactId>atlassian-template-renderer-api</artifactId>
        <version>1.5.7</version>
        <scope>provided</scope>
    </dependency>
    <!-- added this to parse json responses -->
    <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>1.7.2</version>
    </dependency>
    <!-- rest junk -->
    <dependency>
        <groupId>javax.ws.rs</groupId>
        <artifactId>jsr311-api</artifactId>
        <version>1.1</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>javax.xml.bind</groupId>
        <artifactId>jaxb-api</artifactId>
        <version>2.1</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.plugins.rest</groupId>
        <artifactId>atlassian-rest-common</artifactId>
        <version>2.9.10</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.jira</groupId>
        <artifactId>atlassian-jira-pageobjects</artifactId>
        <version>${jira.version}</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.3.3</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.apache.wink</groupId>
        <artifactId>wink-client-apache-httpclient</artifactId>
        <version>1.1.3-incubating</version>
        <scope>test</scope>
    </dependency>
</dependencies>
<build>
    <plugins>
        <plugin>
            <groupId>com.atlassian.maven.plugins</groupId>
            <artifactId>maven-jira-plugin</artifactId>
            <version>${amps.version}</version>
            <extensions>true</extensions>
            <configuration>
                <productVersion>${jira.version}</productVersion>
                <productDataVersion>${jira.version}</productDataVersion>
                <instructions/>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>
    </plugins>
</build>
<properties>
    <jira.version>6.3.4</jira.version>
    <jira.data.version>6.3.4</jira.data.version>
    <amps.version>6.0.0</amps.version>
</properties>

如果有人能指出我可能错过了什么,我将不胜感激。谢谢

kgqe7b3p

kgqe7b3p1#

我只添加了maven-compiler-plugin的版本,并将其设置为3.3,如下所示:

<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>

这样,警告就消失了。

yzuktlbb

yzuktlbb2#

我解决了这个问题,这是由于maven-jira-plugin 6.0.0中m2仓库中缺少文件- "_remote.repositories”
当我将版本更改为5.0.13时,上面的文件,POM没有错误。

3gtaxfhh

3gtaxfhh3#

我面临着同样的问题:

问题(依赖版本兼容Sping Boot 3.1.3):我在3.1.3版本的 *Spring Initializr网站 * 上创建了一个项目,我的maven正在从internal repository下载依赖项,该internal repository没有Spring boot version 3.1.3所需的版本(目前是最新版本)。
解决方案:添加依赖项版本与内部存储库上的此版本兼容。

相关问题