4 Replies Latest reply on Jan 7, 2013 4:53 PM by pgmjsd

    Trouble building HornetQ from Github

    pgmjsd

      Hey fellow HornetQ-ers.   I was trying to do some experimenting with embedded HornetQ, and I discovered the embedded examples in the Github master branch.   I tried to build it, but the build fails in the Twitter Integration module:

       

      Probably something to do with the Artifactory maven repository cache I use, but I'm not sure what it is.

       

      [INFO]                                                                   

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

      [INFO] Building HornetQ Twitter Integration 2.3.0.BETA-SNAPSHOT

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

      [WARNING] The POM for org.twitter4j:twitter4j-core:jar:2.1.2 is missing, no dependency information available

      Downloading: https://artifactory.mycompany.com/artifactory/remote-repos/org/twitter4j/twitter4j-core/2.1.2/twitter4j-core-2.1.2.jar

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

      ...

      [INFO] HornetQ Twitter Integration ....................... FAILURE [0.444s]

      ...

      [ERROR] Failed to execute goal on project hornetq-twitter-integration: Could not resolve dependencies for project org.hornetq:hornetq-twitter-integration:jar:2.3.0.BETA-SNAPSHOT: Could not transfer artifact org.twitter4j:twitter4j-core:jar:2.1.2 from/to repo (https://artifactory.mycompany.com/artifactory/remote-repos): Failed to transfer file: https://artifactory.mycompany.com/artifactory/remote-repos/org/twitter4j/twitter4j-core/2.1.2/twitter4j-core-2.1.2.jar. Return code is: 409, ReasonPhrase:Conflict. -> [Help 1]

       

      It looks like my Artifactory installation is having trouble with this particular version of twitter4j.   Maybe I should point it at the twitter4j repository?

        • 1. Re: Trouble building HornetQ from Github
          pgmjsd

          Okay, I was able to get HornetQ to build by building twitter4j 2.1.2 myself:

           

          $ cd ~/git

          $ git clone git://github.com/yusuke/twitter4j.git

          $ cd twitter4j

          $ git checkout 2.1.2

          $ mvn clean install -DskipTests

          $ cd ../hornetq

          $ mvn clean install

           

           

          Weird.   I guess this stuff isn't in the JBoss repository or central?

          • 2. Re: Trouble building HornetQ from Github
            clebert.suconic

            That's weird. our poms are declaring jboss' repo. I will build it from scratch early next week to see what's going on

             

            (Sorry it took me a bit while to answer you.. most of the jboss fellowers are coming back from Xmas/new years break)

            • 3. Re: Trouble building HornetQ from Github
              clebert.suconic

              I just did a fresh clone, with an empty maven, and it built fine.

               

               

              git clone git://github.com/hornetq/hornetq.git

              cd hornetq

              mvn install

               

               

              and it worked fine!

               

               

              I'm not sure what you did? maybe you had some .m2/settings.xml?

              • 4. Re: Trouble building HornetQ from Github
                pgmjsd

                Yeah, my ~/.m2/settings.xml points at our corporate Artifactory, which is set up to cache public repos.   Occasionally, there is something in the public repos that Artifactory doesn't like.   In this case, it was the twitter library.

                 

                I installed the twitter library to my local repo, and everything worked fine.   I can just deploy that artifact into our Artifactory server and I'll be able to continue with the experiments on any of our workstation.