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

Failure to find struts-support in maven.atlassian.com/repository/public for Confluence 8.5.3

    XMLWordPrintable

Details

    Description

      Issue Summary

      Failure to find struts2 in maven.atlassian.com/repository/public for update to Confluence 8.5.3

      This is reproducible on Data Center: (yes) / (no)

      Steps to Reproduce

      1. Issue command 
        atlas-package -U -DskipTests

      Expected Results

      The app should be built successfully

      Actual Results

      The below exception is thrown on the console:

      Downloading from atlassian-plugin-sdk: file:///opt/homebrew/Cellar/atlassian-plugin-sdk/8.2.7/libexec/repository/com/atlassian/pom/private-pom/6.3.1/private-pom-6.3.1.pom
      Downloading from central: https://repo.maven.apache.org/maven2/com/atlassian/pom/private-pom/6.3.1/private-pom-6.3.1.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 6.603 s
      [INFO] Finished at: 2023-11-08T13:39:02+01:00
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project meetical-connect-app: Could not resolve dependencies for project io.xxxx.confluence.server.apps:xxxx-connect-app:atlassian-plugin:3.4.5-SNAPSHOT: Failed to collect dependencies at com.atlassian.confluence:confluence:jar:8.5.3 -> com.atlassian.struts2:struts-support:jar:1.2.1: Failed to read artifact descriptor for com.atlassian.struts2:struts-support:jar:1.2.1: Could not find artifact com.atlassian.pom:private-pom:pom:6.3.1 in atlassian-public (https://maven.atlassian.com/repository/public) -> [Help 1]
      [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/DependencyResolutionException

      Workaround

      In the root POM file of the plugin or project you are trying to compile, add the following entry to compile your project against a later version which is still API compatible with the version that shipped with the affected version of Bamboo. Please note that plugins must use 'provided' scope, as this dependency should be obtained via OSGi at runtime.

      <dependencyManagement>
        <dependency>
          <groupId>com.atlassian.struts2</groupId>
          <artifactId>struts-support</artifactId>
          <version>1.2.2</version>
          <scope>provided</scope>
        </dependency>
      </dependencyManagement>

      Please remove this workaround as soon as the fixed version of Confluence is released so that you will again obtain the appropriate version of this dependency transitively.

      Attachments

        Issue Links

          Activity

            People

              854eef6f5746 Kusal Kithul-Godage
              71f1dad54ffe Wagner M.
              Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: