5 Replies Latest reply on Feb 24, 2009 8:48 AM by Martin Murphy

    Build of Fuse ESB 4.0.0.4 failed

    Charles Moulliard Newbie

      Hi,

       

      When I try to build Fuse ESB 4.0.0.4, it fails. Here is the error reported by maven in attachment. Maybe the resource is not available on the web site or the pom.xml is wrong :

       

      Downloading: http://repository.jboss.org/maven2/org/apache/servicemix/kernel/apache-servicemix-kernel/1.0.3.0-fuse/apach

       

      e-servicemix-kernel-1.0.3.0-fuse.tar.gz

       

      -


       

      BUILD ERROR

       

      -


       

      Unable to find artifact.

       

       

       

      Embedded error: Unable to download the artifact from any repository

       

       

       

      Try downloading the file manually from the project website.

       

       

      Then, install it using the command:

       

          mvn install:install-file -DgroupId=org.apache.servicemix.kernel -DartifactId=apache-servicemix-kernel -Dversion=1.0.

       

      3.0-fuse -Dpackaging=tar.gz -Dfile=/path/to/file

       

       

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

       

          mvn deploy:deploy-file -DgroupId=org.apache.servicemix.kernel -DartifactId=apache-servicemix-kernel -Dversion=1.0.3.

       

      0-fuse -Dpackaging=tar.gz -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

       

       

        org.apache.servicemix.kernel:apache-servicemix-kernel:tar.gz:1.0.3.0-fuse

       

       

       

      from the specified remote repositories:

       

        open.iona.m2-snapshot (http://repo.open.iona.com/maven2-snapshot),

       

        java.net (http://download.java.net/maven/1/),

       

        scriptengines (http://scriptengines.googlecode.com/svn/m2-repo),

       

        open.iona.m2 (http://repo.open.iona.com/maven2),

       

        jboss (http://repository.jboss.org/maven2),

       

        apache.incubating (http://people.apache.org/repo/m2-incubating-repository/),

       

        apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),

       

        ops4j (http://repository.ops4j.org/maven2),

       

        apache.m2.snapshots (http://people.apache.org/repo/m2-snapshot-repository),

       

        java.net.2 (http://download.java.net/maven/2),

       

        apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository),

       

        servicemix (http://svn.apache.org/repos/asf/servicemix/m2-repo),

       

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

       

       

      Regards,

       

      Charles Moulliard

      SOA Architect

      Xpectis

        • 1. Re: Build of Fuse ESB 4.0.0.4 failed
          Martin Murphy Novice

          It should be possible to download this file from here.

           

          That said if you are able to download the file from here, they should be able to do a Maven build.

           

          The JBoss repo is in the list of repos for the POM. Can you attach the build log? I presume it already tried repo.open.iona.com. It could be that it was down at the time of the build, although it is fine for me now.

           

          Are you building from source checked out from the SVN repo or did you download the source?

          • 2. Re: Build of Fuse ESB 4.0.0.4 failed
            Charles Moulliard Newbie

            I try to build from the zip file donwloaded yesterday on fusesource.com/download web site.

             

            I have been able to download the file manually but now I have another problem on Windows XP :

             

            Surprisingly, this is a tar.gz file that maven try to install on a Windows machine : org.apache.servicemix.kernel:apache-servicemix-kernel:tar.gz:1.0.3.0-fuse.

             

            Unfortunately maven can unzip the tar.gz file on Windows.

             

            In the pom file of assembly, I see two dependencies one for the zip and one for the tar.gz.

             

            Question : Maybe the pom.xml file of the assembly folder should be corrected according to the platform (windows or unix) ?

             

                     

            • 3. Re: Build of Fuse ESB 4.0.0.4 failed
              Martin Murphy Novice

              I've just downloaded the 4.0.0.4 source from here and have kick started a fresh build on my XP box here. I will attach the build logs, so we can compare the results.

               

              Note there is an dependency on this tar.gz file in the assembly project:

                      <dependency>
                          <groupId>org.apache.servicemix.kernel</groupId>
                          <artifactId>apache-servicemix-kernel</artifactId>
                          <version>${servicemix.kernel.version}</version>
                          <type>zip</type>
                          <exclusions>
                               <exclusion>
                                    <groupId>junit</groupId>
                                    <artifactId>junit</artifactId>
                               </exclusion>
                          </exclusions>
                      </dependency>
                      <dependency>
                          <groupId>org.apache.servicemix.kernel</groupId>
                          <artifactId>apache-servicemix-kernel</artifactId>
                          <version>${servicemix.kernel.version}</version>
                          <type>tar.gz</type>
                      </dependency>
              

              This means that both will be downloaded, both they won't be uncompressed.

               

              If you run mvn -X you should be able to get some debug output that may give some hint as to what is going wrong. Do you use Nexus by any chance? Also it may be that the file has been partly downloaded into your local repo. Can you check for that?

               

              Edited by: martinmurphy on Feb 24, 2009 11:55 AM

              • 4. Re: Build of Fuse ESB 4.0.0.4 failed
                Charles Moulliard Newbie

                Evetything is in order. I made a mistake during the manual download of the servicemix kernel tar.gz file. I have been able to compile Fuse ESB 4.0.0.4

                • 5. Re: Build of Fuse ESB 4.0.0.4 failed
                  Martin Murphy Novice

                  Ah good, glad to hear it's working. Drop by the forums if you have any questions in the future.