Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-25400

Confluence 4.2.2 source distribution has a dependency on a non public artifact

    XMLWordPrintable

Details

    Description

      I download the confluence source distribution from:

      https://maven.atlassian.com/content/groups/internal/com/atlassian/confluence/distribution/confluence-source-distribution/4.2.2/confluence-source-distribution-4.2.2-source.tar.gz

      unpack it, and run ./build.sh, which goes through without a hitch. However this is using my local maven repo, and using my settings.xml, which has access to the private maven repos.

      If I modify the maven command in build.sh to have "-Dmaven.repo.local=localrepo" and "-s ./maven/conf/settings.xml", this should emulate what a customer experiences.

      After adding the restricted jars (javamail-1.3.3 etc), I get the following output:

      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Failed to resolve artifact.
      
      Missing:
      ----------
      1) com.atlassian.plugins.rest:atlassian-rest-common:jar:2.6.2.1
      
        Try downloading the file manually from the project website.
      
        Then, install it using the command: 
            mvn install:install-file -DgroupId=com.atlassian.plugins.rest -DartifactId=atlassian-rest-common -Dversion=2.6.2.1 -Dpackaging=jar -Dfile=/path/to/file
      
        Alternatively, if you host your own repository you can deploy the file there: 
            mvn deploy:deploy-file -DgroupId=com.atlassian.plugins.rest -DartifactId=atlassian-rest-common -Dversion=2.6.2.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      
        Path to dependency: 
        	1) com.atlassian.confluence.rest:confluence-rest-plugin:jar:4.2.2
        	2) com.atlassian.plugins.rest:atlassian-rest-common:jar:2.6.2.1
      
      2) com.atlassian.plugins.rest:com.atlassian.jersey-library:pom:2.6.2.1
        Path to dependency: 
        	1) com.atlassian.confluence.rest:confluence-rest-plugin:jar:4.2.2
        	2) com.atlassian.plugins.rest:com.atlassian.jersey-library:pom:2.6.2.1
      
      ----------
      2 required artifacts are missing.
      
      for artifact: 
        com.atlassian.confluence.rest:confluence-rest-plugin:jar:4.2.2
      
      from the specified remote repositories:
        central (http://repo1.maven.org/maven2),
        atlassian-m1-repository (https://maven.atlassian.com/repository/m1/),
        atlassian-proxy (https://m2proxy.atlassian.com/repository/public)
      

      The confluence rest plugin is dependent on rest-common-2.6.2.1, which when I go looking for it I only find in our private repo.

      There are newer versions of rest-common in public, maybe the dependency can be bumped?

      Attachments

        Issue Links

          Activity

            People

              matt@atlassian.com Matt Ryall
              drizzuto David Rizzuto
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: