Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-2624

Unable to find crowd-sal bundle when not using install target

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low
    • 2.5
    • 2.3.2
    • Build
    • None

      After running mvn javadoc:aggregate I get:

      [INFO] Building Atlassian Crowd Bundled Plugins
      [INFO] ------------------------------------------------------------------------
      Downloading: https://m2proxy.atlassian.com/repository/internal/com/atlassian/crowd/crowd-sal/2.3.2/crowd-sal-2.3.2.bundle
      [INFO] Unable to find resource 'com.atlassian.crowd:crowd-sal:bundle:2.3.2' in repository central (https://m2proxy.atlassian.com/repository/internal)
      Downloading: https://m2proxy.atlassian.com/repository/m1/com/atlassian/crowd/crowd-sal/2.3.2/crowd-sal-2.3.2.bundle
      [INFO] Unable to find resource 'com.atlassian.crowd:crowd-sal:bundle:2.3.2' in repository atlassian-m1-repository (https://m2proxy.atlassian.com/repository/m1)
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Failed to resolve artifact.
      
      Missing:
      ----------
      1) com.atlassian.crowd:crowd-sal:bundle:2.3.2
      
        Try downloading the file manually from the project website.
      
        Then, install it using the command: 
            mvn install:install-file -DgroupId=com.atlassian.crowd -DartifactId=crowd-sal -Dversion=2.3.2 -Dpackaging=bundle -Dfile=/path/to/file
      
        Alternatively, if you host your own repository you can deploy the file there: 
            mvn deploy:deploy-file -DgroupId=com.atlassian.crowd -DartifactId=crowd-sal -Dversion=2.3.2 -Dpackaging=bundle -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
      
        Path to dependency: 
        	1) com.atlassian.crowd:crowd-bundled-plugins:pom:2.3.2
        	2) com.atlassian.crowd:crowd-sal:bundle:2.3.2
      
      ----------
      1 required artifact is missing.
      
      for artifact: 
        com.atlassian.crowd:crowd-bundled-plugins:pom:2.3.2
      
      from the specified remote repositories:
        central (https://m2proxy.atlassian.com/repository/internal),
        atlassian-m1-repository (https://m2proxy.atlassian.com/repository/m1)
      
      
      
      [INFO] ------------------------------------------------------------------------
      [INFO] For more information, run Maven with the -e switch
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 21 seconds
      [INFO] Finished at: Wed Aug 10 18:23:34 CDT 2011
      [INFO] Final Memory: 62M/618M
      [INFO] ------------------------------------------------------------------------
      

      Workaround seems to be to run mvn install javadoc:aggregate instead.

      I have seen similar behaviour lately with release:prepare target as well.

            [CWD-2624] Unable to find crowd-sal bundle when not using install target

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1509508 ] New: JAC Bug Workflow v3 [ 3364008 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1391579 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1509508 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 340778 ] New: Simplified Crowd Development Workflow v2 [ 1391579 ]
            joe made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]

            joe added a comment - - edited

            This issue seems to be fixed in Maven 2.2.1. (And is still fixed in Maven 3.0.3.)

            joe added a comment - - edited This issue seems to be fixed in Maven 2.2.1. (And is still fixed in Maven 3.0.3.)
            Olli Nevalainen made changes -
            Fix Version/s New: 2.5 [ 22894 ]
            Fix Version/s Original: 2.4 [ 18995 ]

            http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html has a section called "Adding OSGi metadata to existing projects without changing the packaging type" which might fix this problem.

            Olli Nevalainen added a comment - http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html has a section called "Adding OSGi metadata to existing projects without changing the packaging type" which might fix this problem.
            Olli Nevalainen made changes -
            Description Original: After running {{mvn javadoc:aggregate}} I get:

            {noformat}
            [INFO] Building Atlassian Crowd Bundled Plugins
            [INFO] ------------------------------------------------------------------------
            Downloading: https://m2proxy.atlassian.com/repository/internal/com/atlassian/crowd/crowd-sal/2.3.2/crowd-sal-2.3.2.bundle
            [INFO] Unable to find resource 'com.atlassian.crowd:crowd-sal:bundle:2.3.2' in repository central (https://m2proxy.atlassian.com/repository/internal)
            Downloading: https://m2proxy.atlassian.com/repository/m1/com/atlassian/crowd/crowd-sal/2.3.2/crowd-sal-2.3.2.bundle
            [INFO] Unable to find resource 'com.atlassian.crowd:crowd-sal:bundle:2.3.2' in repository atlassian-m1-repository (https://m2proxy.atlassian.com/repository/m1)
            [INFO] ------------------------------------------------------------------------
            [ERROR] BUILD ERROR
            [INFO] ------------------------------------------------------------------------
            [INFO] Failed to resolve artifact.

            Missing:
            ----------
            1) com.atlassian.crowd:crowd-sal:bundle:2.3.2

              Try downloading the file manually from the project website.

              Then, install it using the command:
                  mvn install:install-file -DgroupId=com.atlassian.crowd -DartifactId=crowd-sal -Dversion=2.3.2 -Dpackaging=bundle -Dfile=/path/to/file

              Alternatively, if you host your own repository you can deploy the file there:
                  mvn deploy:deploy-file -DgroupId=com.atlassian.crowd -DartifactId=crowd-sal -Dversion=2.3.2 -Dpackaging=bundle -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

              Path to dependency:
               1) com.atlassian.crowd:crowd-bundled-plugins:pom:2.3.2
               2) com.atlassian.crowd:crowd-sal:bundle:2.3.2

            ----------
            1 required artifact is missing.

            for artifact:
              com.atlassian.crowd:crowd-bundled-plugins:pom:2.3.2

            from the specified remote repositories:
              central (https://m2proxy.atlassian.com/repository/internal),
              atlassian-m1-repository (https://m2proxy.atlassian.com/repository/m1)



            [INFO] ------------------------------------------------------------------------
            [INFO] For more information, run Maven with the -e switch
            [INFO] ------------------------------------------------------------------------
            [INFO] Total time: 21 seconds
            [INFO] Finished at: Wed Aug 10 18:23:34 CDT 2011
            [INFO] Final Memory: 62M/618M
            [INFO] ------------------------------------------------------------------------
            {noformat}

            Workaround seems to be to run {{mvn clean install -Pdistribution -DskipTests}} before repeating the failed command.

            I have seen the same behaviour lately with {{release:prepare}} target as well.
            New: After running {{mvn javadoc:aggregate}} I get:

            {noformat}
            [INFO] Building Atlassian Crowd Bundled Plugins
            [INFO] ------------------------------------------------------------------------
            Downloading: https://m2proxy.atlassian.com/repository/internal/com/atlassian/crowd/crowd-sal/2.3.2/crowd-sal-2.3.2.bundle
            [INFO] Unable to find resource 'com.atlassian.crowd:crowd-sal:bundle:2.3.2' in repository central (https://m2proxy.atlassian.com/repository/internal)
            Downloading: https://m2proxy.atlassian.com/repository/m1/com/atlassian/crowd/crowd-sal/2.3.2/crowd-sal-2.3.2.bundle
            [INFO] Unable to find resource 'com.atlassian.crowd:crowd-sal:bundle:2.3.2' in repository atlassian-m1-repository (https://m2proxy.atlassian.com/repository/m1)
            [INFO] ------------------------------------------------------------------------
            [ERROR] BUILD ERROR
            [INFO] ------------------------------------------------------------------------
            [INFO] Failed to resolve artifact.

            Missing:
            ----------
            1) com.atlassian.crowd:crowd-sal:bundle:2.3.2

              Try downloading the file manually from the project website.

              Then, install it using the command:
                  mvn install:install-file -DgroupId=com.atlassian.crowd -DartifactId=crowd-sal -Dversion=2.3.2 -Dpackaging=bundle -Dfile=/path/to/file

              Alternatively, if you host your own repository you can deploy the file there:
                  mvn deploy:deploy-file -DgroupId=com.atlassian.crowd -DartifactId=crowd-sal -Dversion=2.3.2 -Dpackaging=bundle -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

              Path to dependency:
               1) com.atlassian.crowd:crowd-bundled-plugins:pom:2.3.2
               2) com.atlassian.crowd:crowd-sal:bundle:2.3.2

            ----------
            1 required artifact is missing.

            for artifact:
              com.atlassian.crowd:crowd-bundled-plugins:pom:2.3.2

            from the specified remote repositories:
              central (https://m2proxy.atlassian.com/repository/internal),
              atlassian-m1-repository (https://m2proxy.atlassian.com/repository/m1)



            [INFO] ------------------------------------------------------------------------
            [INFO] For more information, run Maven with the -e switch
            [INFO] ------------------------------------------------------------------------
            [INFO] Total time: 21 seconds
            [INFO] Finished at: Wed Aug 10 18:23:34 CDT 2011
            [INFO] Final Memory: 62M/618M
            [INFO] ------------------------------------------------------------------------
            {noformat}

            Workaround seems to be to run {{mvn install javadoc:aggregate}} instead.

            I have seen similar behaviour lately with {{release:prepare}} target as well.
            Olli Nevalainen created issue -

              Unassigned Unassigned
              onevalainen Olli Nevalainen
              Affected customers:
              0 This affects my team
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: