无法启动jira com.atlassian.plugin:atlassian spring scanner maven plugin:1.2.6

无法启动jira com.atlassian.plugin:atlassian spring scanner maven plugin:1.2.6,jira,jira-plugin,atlassian-plugin-sdk,Jira,Jira Plugin,Atlassian Plugin Sdk,我刚格式化了我的笔记本电脑,安装了所有新的和新鲜的东西。但现在我无法启动吉拉 以下是我收到的错误消息: The POM for com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:jar:1.2.6 is missing, no dependency information available ---------------------------------------------------------------------

我刚格式化了我的笔记本电脑,安装了所有新的和新鲜的东西。但现在我无法启动吉拉

以下是我收到的错误消息:

The POM for com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:jar:1.2.6 is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 2.428s
Finished at: Fri Nov 20 08:18:15 IST 2015
Final Memory: 11M/166M
------------------------------------------------------------------------
Plugin com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:1.2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:jar:1.2.6: Failure to find com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:pom:1.2.6 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
这是我的pom.xml:

    <dependency>
        <groupId>com.atlassian.jira</groupId>
        <artifactId>jira-api</artifactId>
        <version>${jira.version}</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.plugin</groupId>
        <artifactId>atlassian-spring-scanner-annotation</artifactId>
        <version>${atlassian.spring.scanner.version}</version>
        <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.plugin</groupId>
        <artifactId>atlassian-spring-scanner-runtime</artifactId>
        <version>${atlassian.spring.scanner.version}</version>
        <scope>runtime</scope>
    </dependency>
    <dependency>
        <groupId>javax.inject</groupId>
        <artifactId>javax.inject</artifactId>
        <version>1</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>javax.ws.rs</groupId>
        <artifactId>jsr311-api</artifactId>
        <version>1.1.1</version>
        <scope>provided</scope>
    </dependency>

    <dependency>
        <groupId>com.google.code.gson</groupId>
        <artifactId>gson</artifactId>
        <version>2.2.2-atlassian-1</version>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.4</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>1.0.2</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.sal</groupId>
        <artifactId>sal-api</artifactId>
        <version>2.6.0</version>
        <scope>provided</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>
                <enableQuickReload>true</enableQuickReload>
                <enableFastdev>false</enableFastdev>
                <instructions>
                    <Atlassian-Plugin-Key>${atlassian.plugin.key}</Atlassian-Plugin-Key>
                    <Export-Package>net.gisnas.jira.mailqueue.api,</Export-Package>
                    <Import-Package>org.springframework.osgi.*;resolution:="optional",
                        org.eclipse.gemini.blueprint.*;resolution:="optional", *</Import-Package>
                    <Spring-Context>*</Spring-Context>
                </instructions>
            </configuration>
        </plugin>
        <plugin>
            <groupId>com.atlassian.plugin</groupId>
            <artifactId>atlassian-spring-scanner-maven-plugin</artifactId>
            <version>1.2.6</version>
            <executions>
                <execution>
                    <goals>
                        <goal>atlassian-spring-scanner</goal>
                    </goals>
                    <phase>process-classes</phase>
                </execution>
            </executions>
            <configuration>
                <scannedDependencies>
                    <dependency>
                        <groupId>com.atlassian.plugin</groupId>
                        <artifactId>atlassian-spring-scanner-external-jar</artifactId>
                    </dependency>
                </scannedDependencies>
                <verbose>false</verbose>
            </configuration>
        </plugin>

    </plugins>
</build>
<properties>
    <maven.local.repo>C:\Applications\Atlassian\atlassian-plugin-sdk-6.1.0\repository</maven.local.repo>
    <jira.version>7.0.2</jira.version>
    <amps.version>6.1.2</amps.version>
    <plugin.testrunner.version>1.2.3</plugin.testrunner.version>
    <atlassian.spring.scanner.version>1.2.6</atlassian.spring.scanner.version>
    <!-- This key is used to keep the consistency between the key in atlassian-plugin.xml and the key to generate bundle. -->
    <atlassian.plugin.key>${project.groupId}.${project.artifactId}</atlassian.plugin.key>
    <!-- TestKit version 6.x for JIRA 6.x -->
    <testkit.version>6.3.11</testkit.version>
</properties>


com.atlassian.jira
吉拉api
${jira.version}
假如
com.atlassian.plugin
atlassian spring扫描仪注释
${atlassian.spring.scanner.version}
编译
com.atlassian.plugin
atlassian spring scanner运行时
${atlassian.spring.scanner.version}
运行时
javax.inject
javax.inject
1.
假如
javax.ws.rs
jsr311 api
1.1.1
假如
com.google.code.gson
格森
2.2.2-atlassian-1
javax.servlet
servlet api
2.4
假如
javax.xml.bind
jaxb api
2.1
假如
com.atlassian.plugins.rest
大西洋休憩公园
1.0.2
假如
com.atlassian.sal
沙拉皮
2.6.0
假如
com.atlassian.maven.plugins
maven jira插件
${amps.version}
真的
${jira.version}
${jira.version}
真的
假的
${atlassian.plugin.key}
net.gisnas.jira.mailqueue.api,
org.springframework.osgi.*;分辨率:=“可选”,
org.eclipse.gemini.blueprint.*;分辨率:=“可选”*
*
com.atlassian.plugin
atlassian spring scanner maven插件
1.2.6
大西洋弹簧扫描仪
进程类
com.atlassian.plugin
atlassian弹簧扫描仪外部震击器
假的
C:\Applications\Atlassian\Atlassian-plugin-sdk-6.1.0\repository
7.0.2
6.1.2
1.2.3
1.2.6
${project.groupId}.${project.artifactId}
6.3.11


有时上面的错误是抛出的,有时我面临jta.jar错误,即使我不理解为什么需要这个jar。我试图克隆repo并启动它,但我仍然面临同样的错误。

atlassian spring scanner maven插件当然是atlassian的maven插件。它应该托管在大西洋Maven存储库中。但我看到了这个错误消息:

Failure to find com.atlassian.plugin:atlassian-spring-scanner-maven-plugin:pom:1.2.6 in http://repo.maven.apache.org/maven2
它说它不能在Maven中央存储库而不是Atlassian Maven存储库中查找

所以我认为你应该检查你的Maven运行时设置。您的maven应该从配置了Atlassian maven代理的Atlassian plugin SDK中读取local settings.xml,有关Atlassian maven代理的配置,请参阅此资源

我看到您的pom.xml有maven.local.repo

<maven.local.repo>C:\Applications\Atlassian\atlassian-plugin-sdk-6.1.0\repository</maven.local.repo>
C:\Applications\Atlassian\Atlassian-plugin-sdk-6.1.0\repository

但这仅仅意味着您正在使用一个自定义的本地存储库目录,并不意味着您的Maven拥有Atlassian Maven代理,但请添加到您的项目pom.xml中,如下所示

<pluginRepositories>
    <pluginRepository>
        <id>atlassian-public</id>
        <url>https://maven.atlassian.com/content/repositories/atlassian-public/</url>
        <snapshots>
            <enabled>true</enabled>
            <updatePolicy>never</updatePolicy>
            <checksumPolicy>warn</checksumPolicy>
        </snapshots>
        <releases>
            <enabled>true</enabled>
            <checksumPolicy>warn</checksumPolicy>
        </releases>
    </pluginRepository>
</pluginRepositories>

大西洋公众
https://maven.atlassian.com/content/repositories/atlassian-public/
真的
从未
警告
真的
警告

它似乎在错误的repo中寻找com.atlassian.plugin:atlassian spring scanner maven plugin:jar:1.2.6。能否将内容发布到settings.xml文件中(可以有多个文件)。如果您不确定在哪里可以找到它们,请运行atlas cli clean install-X,并在输出中的某个位置显示它使用了哪些settings.xml。您不使用二进制文件的原因是什么?我也有同样的问题,我在插件的pom.xml中添加了以下内容:
atlassian publichttps://maven.atlassian.com/repository/public...
因此,存储库已配置,所有其他依赖项已解决,只有一个插件丢失。插件丢失了什么?你能给我看看maven错误日志吗