2 Replies Latest reply on Jun 8, 2010 7:18 AM by Nick Belaevski

    Some artifacts cannot be downloaded from staging repository

    Nick Belaevski Master

      Hello all,

       

      I'm having problems downloading artifacts from staging repository. Some artifacts are downloaded, but some are not.

      Steps to reproduce:

       

      1) Check out https://svn.jboss.org/repos/richfaces/root

      2) Added staging repository into settings.xml:

       

          <profile>
              <id>jboss-staging-repository</id>
              <repositories>
                  <repository>
                      <id>jboss-staging-repository</id>
                      <url>https://repository.jboss.org/nexus/content/repositories/staging/</url>
                      <layout>default</layout>
                      <releases>
                          <enabled>true</enabled>
                      </releases>
                      <snapshots>
                          <enabled>false</enabled>
                      </snapshots>
                  </repository>
              </repositories>
          </profile>
      
      

       

        <activeProfiles>
          <activeProfile>jboss-staging-repository</activeProfile>
        </activeProfiles>
      

       

          <mirror>
            <id>jboss-developer-repository-group</id>
            <mirrorOf>*,!jboss-deprecated,!jboss-staging-repository</mirrorOf>
            <name>JBoss.org Developer Repository Group</name>
            <url>https://repository.jboss.org/nexus/content/groups/developer/</url>
          </mirror>
      

       

          <server>
            <id>jboss-staging-repository</id>
            <username>user</username>
            <password>secret</password>
          </server>
      

       

      3) Run mvn clean package on root/examples/core-demo/tags/richfaces-core-demo-4.0.0.Alpha2 directory. One artifact was downloaded, and the build failed to resolve dependent artifacts: http://pastie.org/994929 .

       

      4) I've continued investigation and discovered that the same problem occurs even if I specify staging repository in the project pom.xml file. The only way to make it work was specifying staging repository in the local copy of project parent pom: https://repository.jboss.org/nexus/content/repositories/releases/org/richfaces/richfaces-parent/7/richfaces-parent-7.pom

       

      Maven version used is 2.2.1 (r801777; 2009-08-06 22:16:01+0300).

       

      Is it a known problem, can please someone shed some light on the issue?