8 Replies Latest reply on Aug 18, 2010 9:26 PM by John DeStefano

    Current Version Won't Build

    John DeStefano Apprentice

      Hi,

       

      A few problems with the current build.

       

      1. MVN build error finding javassist-3.12.1.GA.jar and reflections-0.9.5-RC2_jboss-SP1.jar. Both are available from https://repository.jboss.org/nexus/content/groups/public/.

       

      2. Once the above jar file issues are resoved the errai-bus won't build. The following error occurs:

       

      [ERROR] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Compilation failure

       

      /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/MetaDataScanner.java:[18,29] package com.google.common.base does not exist

       

      /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/MetaDataScanner.java:[19,32] package com.google.common.collect does not exist

       

      /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/PropertyScanner.java:[18,29] package com.google.common.base does not exist

       

      /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/PropertyScanner.java:[35,2] cannot find symbol
      symbol  : class Predicate
      location: class org.jboss.errai.bus.server.service.metadata.PropertyScanner

       

      /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/PropertyScanner.java:[38,25] cannot find symbol
      symbol  : class Predicate
      location: class org.jboss.errai.bus.server.service.metadata.PropertyScanner

       

      /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/MetaDataScanner.java:[54,16] cannot find symbol
      symbol  : class Predicate
      location: class org.jboss.errai.bus.server.service.metadata.MetaDataScanner

       

      /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/MetaDataScanner.java:[80,38] cannot access com.google.common.collect.Multimap
      class file for com.google.common.collect.Multimap not found
                  scanner.setStore(store.get(scanner.getClass()));

       

      /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/MetaDataScanner.java:[121,15] cannot find symbol
      symbol  : variable ImmutableSet
      location: class org.jboss.errai.bus.server.service.metadata.MetaDataScanner

       

       

       

      Thx

        • 1. Re: Current Version Won't Build
          Mike Brock Master

          Interesting, our latest build is successful in hudson -- are you sure you're up to date: https://hudson.jboss.org/hudson/job/Errai/

          • 2. Re: Current Version Won't Build
            John DeStefano Apprentice

            Hi,

             

            Using revision 1899.

             

            Thx

            • 3. Re: Current Version Won't Build
              John DeStefano Apprentice

              Hi,

               

              I deleted and downloaded the source aagin. Tried to rebuild (mvn clean install) and got this error:

               

              It's complaining about the com.google.common.base package. What jar file is that in?

               

              [ERROR] BUILD FAILURE
              [INFO] ------------------------------------------------------------------------
              [INFO] Compilation failure

               

              /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/MetaDataScanner.java:[18,29] package com.google.common.base does not exist

               

              /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/MetaDataScanner.java:[19,32] package com.google.common.collect does not exist

               

              /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/PropertyScanner.java:[18,29] package com.google.common.base does not exist

               

              /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/PropertyScanner.java:[35,2] cannot find symbol
              symbol  : class Predicate
              location: class org.jboss.errai.bus.server.service.metadata.PropertyScanner

               

              /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/PropertyScanner.java:[38,25] cannot find symbol
              symbol  : class Predicate
              location: class org.jboss.errai.bus.server.service.metadata.PropertyScanner

               

              /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/MetaDataScanner.java:[54,16] cannot find symbol
              symbol  : class Predicate
              location: class org.jboss.errai.bus.server.service.metadata.MetaDataScanner

               

              /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/MetaDataScanner.java:[80,38] cannot access com.google.common.collect.Multimap
              class file for com.google.common.collect.Multimap not found
                          scanner.setStore(store.get(scanner.getClass()));

               

              /home/jdestef/workspaces/workspace-errai-bus/errai/errai-bus/src/main/java/org/jboss/errai/bus/server/service/metadata/MetaDataScanner.java:[121,15] cannot find symbol
              symbol  : variable ImmutableSet
              location: class org.jboss.errai.bus.server.service.metadata.MetaDataScanner

               


              [INFO] ------------------------------------------------------------------------
              [INFO] For more information, run Maven with the -e switch
              [INFO] ------------------------------------------------------------------------
              [INFO] Total time: 51 seconds
              [INFO] Finished at: Tue Aug 17 16:53:31 EDT 2010
              [INFO] Final Memory: 35M/321M
              [INFO] ------------------------------------------------------------------------

              • 4. Re: Current Version Won't Build
                Heiko Braun Master

                Maybe you did run the build when jboss.org had connection problems.

                (Somewhen yesterday). It might be that you got corrupted files in your local maven repository.

                Can you check the file contents of google-collections.jar and maybe remove it?

                 

                ll ~/.m2/repository/com/google/collections/
                • 5. Re: Current Version Won't Build
                  John DeStefano Apprentice

                  Hi,

                   

                  Thanks for the reply. I looked in my .m2 repository and that folder was not present. I tried adding the 1.0-rc5 jar manually and the recompiling. The same issue as above occurred. Couldn't find the jar.

                   

                   

                  Thx

                  • 6. Re: Current Version Won't Build
                    John DeStefano Apprentice

                    Hi,

                     

                    Added this dependency to the errai-bus pom file and now it builds.

                     

                     

                     

                    <dependency>
                                <groupId>com.google.collections</groupId>
                                <artifactId>google-collections</artifactId>
                                <version>1.0-rc5</version>
                            </dependency>
                    Thx
                    • 7. Re: Current Version Won't Build
                      Heiko Braun Master

                      I just nuked my local repo, but I cannot reproduce that error. Sorry.

                      Does anyone else encounter this problem?

                      • 8. Re: Current Version Won't Build
                        John DeStefano Apprentice

                        Hi,

                         

                        I also nuked by local repo and rebuilt. Everything compiled correctly after that. Thanks for looking into this.