Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error Building POM 'com.atlassian.refapp:atlassian-platform' not found in repository Confluence 5.5.2

Gorka Puente _Appfire_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 26, 2014

Hi,

I'm testing a plugin with Confluence 5.5.2, but it gives this error

Caused by: org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException: Unable to read the metadata file for artifact 'com.atlassian.soy:soy-template-renderer-api:jar': POM 'com.atlassian.refapp:atlassian-platform' not found in repository: Unable to download the artifact from any repository

com.atlassian.refapp:atlassian-platform:pom:2.20.0

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

for project com.atlassian.refapp:atlassian-platform
at org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedProject(MavenMetadataSource.java:200)
at org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedArtifact(MavenMetadataSource.java:94)
at org.apache.maven.artifact.resolver.DefaultArtifactCollector.recurse(DefaultArtifactCollector.java:388)
... 27 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM 'com.atlassian.refapp:atlassian-platform' not found in repository: Unable to download the artifact from any repository

com.atlassian.refapp:atlassian-platform:pom:2.20.0

from the specified remote repositories:
central (http://repo1.maven.org/maven2)

for project com.atlassian.refapp:atlassian-platform
at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:251)
at org.apache.maven.project.DefaultMavenProjectBuilder.mergeManagedDependencies(DefaultMavenProjectBuilder.java:1466)
at org.apache.maven.project.DefaultMavenProjectBuilder.processProjectLogic(DefaultMavenProjectBuilder.java:1008)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:880)
at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:255)
at org.apache.maven.project.artifact.MavenMetadataSource.retrieveRelocatedProject(MavenMetadataSource.java:163)
... 29 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository

com.atlassian.refapp:atlassian-platform:pom:2.20.0

from the specified remote repositories:
central (http://repo1.maven.org/maven2)


at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
... 35 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to download the artifact from any repository
at org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:349)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
... 37 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Tue May 27 12:58:03 CEST 2014
[INFO] Final Memory: 42M/319M
[INFO] ------------------------------------------------------------------------

I've cleaned my \.m2\repository as suggested in https://answers.atlassian.com/questions/144445/error-building-pom-may-not-be-this-project-s-pom but still the same.
Any idea?

In case it helps, here's my pom

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

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.keinoby.confluence.plugins</groupId>
    <artifactId>share-attachments</artifactId>
    <version>1.0</version>
    <organization>
        <name>Keinoby Software Lab</name>
        <url>http://www.keinoby.com/</url>
    </organization>
    <name>...</name>
    <description>...
</description>
    <packaging>atlassian-plugin</packaging>
    <dependencies>
		<!-- testing dependencies -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</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>com.atlassian.activeobjects</groupId>
		  <artifactId>activeobjects-test</artifactId>
		  <version>${ao.version}</version>
		  <scope>test</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>
        
        <!-- Atlassian specific dependencies -->
        <dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.sal</groupId>
            <artifactId>sal-api</artifactId>
            <version>${sal.api.version}</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.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.activeobjects</groupId>
		  <artifactId>activeobjects-plugin</artifactId>
		  <version>${ao.version}</version>
		  <scope>provided</scope>
		</dependency>
         <dependency>
		  <groupId>com.atlassian.templaterenderer</groupId>
		  <artifactId>atlassian-template-renderer-api</artifactId>
          <version>${atlassian.templaterenderer.version}</version>
		  <scope>provided</scope>
		</dependency>
		<!-- License dependencies -->
  		<dependency>
		    <groupId>com.atlassian.usercompatibility</groupId>
		    <artifactId>usercompatibility-sal</artifactId>
		    <version>${usercompatibility.version}</version>
		</dependency>	
		<dependency>
            <groupId>com.atlassian.upm</groupId>
            <artifactId>plugin-license-storage-lib</artifactId>
            <version>${upm.license.compatibility.version}</version>
            <scope>compile</scope>
        </dependency> 
        <dependency>
            <groupId>com.atlassian.upm</groupId>
            <artifactId>plugin-license-storage-plugin</artifactId>
            <version>${upm.license.compatibility.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.upm</groupId>
            <artifactId>licensing-api</artifactId>
            <version>${upm.license.compatibility.version}</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.atlassian.upm</groupId>
            <artifactId>upm-api</artifactId>
            <version>${upm.license.compatibility.version}</version>
            <scope>provided</scope>
        </dependency> 
    </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>maven-confluence-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${confluence.version}</productVersion>
                    <productDataVersion>${confluence.data.version}</productDataVersion>
					<!-- <productDataPath>G:/Downloads/generated-test-resources-4.3.zip</productDataPath>
					<productDataPath>G:/Downloads/generated-test-resources.zip</productDataPath> -->
                    <allowGoogleTracking>false</allowGoogleTracking>
                     <bundledArtifacts>
                        <bundledArtifact>
                            <groupId>com.atlassian.upm</groupId>
                            <artifactId>plugin-license-storage-plugin</artifactId>
                            <version>${upm.license.compatibility.version}</version>
                        </bundledArtifact>
                    </bundledArtifacts>
                </configuration>
            </plugin>
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
            
        </plugins>
    </build>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <confluence.version>5.5.2</confluence.version>
        <confluence.data.version>5.5.2</confluence.data.version>
        
        <upm.license.compatibility.version>2.15</upm.license.compatibility.version>
        <amps.version>4.2.20</amps.version>

        <plugin.testrunner.version>1.2.0</plugin.testrunner.version>
        <ao.version>0.26.0</ao.version>	
		<sal.api.version>2.8.0</sal.api.version>
        <atlassian.templaterenderer.version>1.3.1</atlassian.templaterenderer.version>
		<usercompatibility.version>0.5</usercompatibility.version>
        
    </properties>
</project>

Cheers,

Gorka

7 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
Joe Clark
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 26, 2014

This appears to be a bug - https://jira.atlassian.com/browse/CONF-33782

You can work around this issue in the short term by setting your confluence.version to 5.5 instead of 5.5.x

3 votes
Gorka Puente _Appfire_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
June 16, 2014

New AMPS version 5.0.3 seems to fix it!!

<confluence.version>5.5.2</confluence.version>
        <confluence.data.version>5.5.2</confluence.data.version> 
  
  		<upm.license.compatibility.version>2.15</upm.license.compatibility.version>
        <amps.version>5.0.3</amps.version>

Confirmed https://jira.atlassian.com/browse/CONF-33782

Pankaj Jangid
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 22, 2014

Yes. This worked with latest version of atlas-sdk i.e. 5.0.3.

Thanks

0 votes
Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2014

Hi,

Try this : replace in your pom.xml the tag value of confluence.version 5.5.2 with 5.5.2-m2

<confluence.version>5.5.2-m2</confluence.version>

look this link it can give you some information

https://confluence.atlassian.com/pages/viewrecentblogposts.action?key=CONFKB

Gorka Puente _Appfire_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 26, 2014

It didn't work. It seems like there isn't a second milestone in 5.5.2 (failed to resolve artifact ...confluence:jar:5.5.2-m2 missing). I've tried with 5.5.1-m2 (last development release according to https://confluence.atlassian.com/display/DOC/Confluence+Development+Releases) but the same error with refapp:atlassian-platform 2.20.0...

0 votes
Gorka Puente _Appfire_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 26, 2014

Hi,

you are right, I don't have confluence-webapp-5.5.2.war but it's because it crashes before it's downloaded. Besides that, it's not a ref-application.

0 votes
Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2014

I think that you haven't confluence-webapp-5.5.2.war in your local repository.

When you change the version of your ref-application, sdk checks, if the ref app exist in your repository, if this ref app not exist it connects to an external repository to download the resources

0 votes
Gorka Puente _Appfire_
Marketplace Partner
Marketplace Partners provide apps and integrations available on the Atlassian Marketplace that extend the power of Atlassian products.
May 26, 2014

Hi,

No, I'm not (checked in http://whatismyipaddress.com/proxy-check), it works if I change from


<confluence.version>5.5.2</confluence.version>

to

<confluence.version>5.5.0</confluence.version>

0 votes
Nadir MEZIANI
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 26, 2014

Hi,

You are behind a proxy?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events