0 Replies Latest reply on May 11, 2010 7:28 AM by rommel_m1

    Maven build error. Failed to resolve artifact.

      Hi,

       

      I'm trying to build a Jive SBS 4.0.1 war file using Maven on Windows and followed the sections “Maven: Start Here“, “How-To: Install Maven” and

      “settings.xml - For Licensed Customers and Partners” though I encountered the following errors:

      [INFO] ------------------------------------------------------------------------

      [ERROR] BUILD ERROR

      [INFO] ------------------------------------------------------------------------

      [INFO] Failed to resolve artifact.

       

      Missing:

      ----------

      1) org.openqa.selenium.client-drivers:selenium-java-client-driver:jar:0.9.2

       

        Try downloading the file manually from the project website.

       

        Then, install it using the command:

            mvn install:install-file -DgroupId=org.openqa.selenium.client-drivers -DartifactId=selenium-java-client-driver -Dversion=0.9.2 -Dpackaging=jar -Dfile=/path/to/file

       

        Alternatively, if you host your own repository you can deploy the file there:

       

            mvn deploy:deploy-file -DgroupId=org.openqa.selenium.client-drivers -DartifactId=selenium-java-client-driver -Dversion=0.9.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

       

        Path to dependency:

              1) com.solutionset.verifone:web:war:1.0-SNAPSHOT

              2) org.openqa.selenium.client-drivers:selenium-java-client-driver:jar:0.9.2

       

      2) com.jivesoftware:jive-sbs-public:war:4.0.1

       

        Try downloading the file manually from the project website.

       

        Then, install it using the command:

            mvn install:install-file -DgroupId=com.jivesoftware -DartifactId=jive-sbs-public -Dversion=4.0.1 -Dpackaging=war -Dfile=/path/to/file

       

        Alternatively, if you host your own repository you can deploy the file there:

       

            mvn deploy:deploy-file -DgroupId=com.jivesoftware -DartifactId=jive-sbs-public -Dversion=4.0.1 -Dpackaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

       

        Path to dependency:

              1) com.solutionset.verifone:web:war:1.0-SNAPSHOT

              2) com.jivesoftware:jive-sbs-public:war:4.0.1

       

      3) com.jivesoftware:jive-sbs-public:jar:4.0.1

       

        Try downloading the file manually from the project website.

       

        Then, install it using the command:

            mvn install:install-file -DgroupId=com.jivesoftware -DartifactId=jive-sbs-public -Dversion=4.0.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.jivesoftware -DartifactId=jive-sbs-public -Dversion=4.0.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

       

        Path to dependency:

              1) com.solutionset.verifone:web:war:1.0-SNAPSHOT

              2) com.jivesoftware:jive-sbs-public:jar:4.0.1

       

      4) com.jivesoftware:jive-sbs-public-all:pom:4.0.1

        Path to dependency:

              1) com.solutionset.verifone:web:war:1.0-SNAPSHOT

              2) com.jivesoftware:jive-sbs-public-all:pom:4.0.1

       

      5) com.jivesoftware:yuicompressor:jar:2.2.4_2_0_0_rc1

       

        Try downloading the file manually from the project website.

       

        Then, install it using the command:

            mvn install:install-file -DgroupId=com.jivesoftware -DartifactId=yuicompressor -Dversion=2.2.4_2_0_0_rc1 -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.jivesoftware -DartifactId=yuicompressor -Dversion=2.2.4_2_0_0_rc1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

       

        Path to dependency:

              1) com.solutionset.verifone:web:war:1.0-SNAPSHOT

              2) com.jivesoftware:yuicompressor:jar:2.2.4_2_0_0_rc1

       

      6) com.jivesoftware:yuicompressor-anttask:jar:2.4.2

       

        Try downloading the file manually from the project website.

       

        Then, install it using the command:

            mvn install:install-file -DgroupId=com.jivesoftware -DartifactId=yuicompressor-anttask -Dversion=2.4.2 -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.jivesoftware -DartifactId=yuicompressor-anttask -Dversion=2.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dre

      positoryId=[id]

       

        Path to dependency:

              1) com.solutionset.verifone:web:war:1.0-SNAPSHOT

              2) com.jivesoftware:yuicompressor-anttask:jar:2.4.2

       

      ----------

      6 required artifacts are missing.

       

      for artifact:

        com.solutionset.verifone:web:war:1.0-SNAPSHOT

       

      from the specified remote repositories:

        central (http://repo1.maven.org/maven2),

        jive.internal (http://maven-secure.jivesoftware.com/archiva/repository/jive.internal),

        jive.snapshots (http://maven-secure.jivesoftware.com/archiva/repository/jive.snapshots)

       

       

      I also found some warning like this on top of it:

      Downloading: http://maven-secure.jivesoftware.com/archiva/repository/jive.internal/com/jivesoftware/jive-sbs-public/4.0.1/jive-sbs-public-4.0.1.jar

      [WARNING] Unable to get resource 'com.jivesoftware:jive-sbs-public:jar:4.0.1' from repository jive.internal (http://maven-secure.jivesoftware.com/archiva/repository/jive.internal): Authorization failed: Access denied to: http://maven-secure.jivesoftware.com/archiva/repository/jive.internal/com/jivesoftware/jive-sbs-public/4.0.1/jive-sbs-public-4.0.1.jar

       

      I registered in http://maven-secure.jivesoftware.com/archiva and placed the username-password in the settings.xml placed on C:\Documents and Settings\user\.m2 but it still fails. I really dunno where to request access to these repositories and it's not specified on that site.

       

      As for the repository central (http://repo1.maven.org/maven2), some files are missing.

       

      I attached the complete error logs. The other one is when I tried to build a jar file from our project. Seems they have similar problems.

      I hope someone here could help me here.

       

      Thanks,

      Rommel