Не удалось найти com.atlassian.stash:stash-parent:pom:5.0.18

После работы над jira и confluence теперь работаю над тайником. Согласно документации тайника, я создал плагин тайника, но не смог преобразовать совместимый с eclipse и работающий экземпляр тайника.

pom.xml:-

<?xml version="1.0" encoding="UTF-8"?>

http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>com.example.stash</groupId>
<artifactId>stash-hook</artifactId>
<version>1.0-SNAPSHOT</version>

<organization>
    <name>Example Company</name>
    <url>http://www.example.com/</url>
</organization>

<name>stash-hook</name>
<description>This is the com.example.stash:stash-hook plugin for Atlassian Stash.</description>
<packaging>atlassian-plugin</packaging>

<dependencyManagement>
    <dependencies>
        <dependency>
            <groupId>com.atlassian.stash</groupId>
            <artifactId>stash-parent</artifactId>
            <version>${stash.version}</version>
            <type>pom</type>
            <scope>import</scope>
        </dependency>
    </dependencies>
</dependencyManagement>

<dependencies>
    <dependency>
        <groupId>com.atlassian.sal</groupId>
        <artifactId>sal-api</artifactId>
        <version>2.13.3</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.stash</groupId>
        <artifactId>stash-api</artifactId>
        <version>3.7.0</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.stash</groupId>
        <artifactId>stash-spi</artifactId>
        <version>3.7.0</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>com.atlassian.stash</groupId>
        <artifactId>stash-page-objects</artifactId>
        <version>3.7.0</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>javax.servlet</groupId>
        <artifactId>servlet-api</artifactId>
        <version>2.5</version>
        <scope>provided</scope>
    </dependency>
    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.10</version>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>commons-lang</groupId>
        <artifactId>commons-lang</artifactId>
        <version>2.6</version>
        <scope>provided</scope>
    </dependency>

    <!-- WIRED TEST RUNNER DEPENDENCIES -->
    <dependency>
        <groupId>com.atlassian.plugins</groupId>
        <artifactId>atlassian-plugins-osgi-testrunner</artifactId>
        <version>${plugin.testrunner.version}</version>
        <scope>test</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>
</dependencies>

<build>
    <plugins>
        <plugin>
            <groupId>com.atlassian.maven.plugins</groupId>
            <artifactId>maven-stash-plugin</artifactId>
            <version>${amps.version}</version>
            <extensions>true</extensions>
            <configuration>
                <products>
                    <product>
                        <id>stash</id>
                        <instanceId>stash</instanceId>
                        <version>${stash.version}</version>
                        <dataVersion>${stash.data.version}</dataVersion>
                    </product>  
                </products>
            </configuration>
        </plugin>
        <plugin>
            <artifactId>maven-compiler-plugin</artifactId>
            <configuration>
                <source>1.6</source>
                <target>1.6</target>
            </configuration>
        </plugin>
    </plugins>
</build>

<properties>
    <stash.version>5.0.18</stash.version>
    <stash.data.version>5.0.18</stash.data.version>
    <amps.version>5.0.13</amps.version>
    <plugin.testrunner.version>1.2.3</plugin.testrunner.version>
</properties>

error:-

E:\New folder\stash-hook>atlas-run
Executing: "E:\atlassian-plugin-sdk\apache-maven-3.2.1\bin\mvn.bat" com.atlassian.maven.plugins:maven-amps-dis
patcher-plugin:5.0.13:run -gs E:\atlassian-plugin-sdk\apache-maven-3.2.1/conf/settings.xml
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.example.stash:stash-hook:1.0-SNAPSHOT (E:\New folder\stash-hook\pom.xml) has 1 error
[ERROR]     Non-resolvable import POM: Failure to find com.atlassian.stash:stash-parent:pom:5.0.18 in http://1
92.168.0.114:8080/nexus/content/groups/public was cached in the local repository, resolution will not be reatt
empted until the update interval of Nexus has elapsed or updates are forced @ line 23, column 25 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

как решить вышеуказанную проблему.


person Ashwani Verma    schedule 12.05.2015    source источник


Ответы (2)


Асуани,

Похоже, вы перезаписали репозитории maven по умолчанию для команд atlas-* своим собственным локальным сервером Nexus. Как указал Артем, у Atlassian есть собственные репозитории Maven, которые вам нужно будет добавить:

https://developer.atlassian.com/docs/advanced-topics/working-with-maven/atlassian-maven-repositories

Также я подозреваю, что существует некоторый этикет, когда один и тот же вопрос поднимается более одного раза на SO:

https://stackoverflow.com/questions/30183281/stash-unkown-packagingatlassian-plugin

person charleso    schedule 12.05.2015

Кажется, на этот же вопрос уже есть ответ на answers.atlassian.com.

В вашем pom отсутствуют репозитории maven atlassian.

person Artem Zhirkov    schedule 12.05.2015