1 Reply Latest reply on Sep 17, 2008 9:32 AM by Italo Giovani Stefani

    Error in Deploying the project

    saurabh garg Newbie


      I have developed a web service in fuse in Windows environment and now i have to do it in the Unix environment but i dont have the internet connection in the unix environment. So for that it is throwing me this error:

      $ mvn install

      Scanning for projects...

      Downloading: http://repo.open.iona.com/maven2/org/apache/servicemix/samples/

      Downloading: http://repo1.maven.org/maven2/org/apache/servicemix/samples/




      Failed to resolve artifact.


      GroupId: org.apache.servicemix

      ArtifactId: samples



      Reason: Unable to download the artifact from any repository




      from the specified remote repositories:

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

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

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


      Is there any way, we can build or deploy the project without having internet connection so that i can manually download the file and place them somewhr for build purpose.

        • 1. Re: Error in Deploying the project
          Italo Giovani Stefani Newbie

          Hi saurabh.


          The maven contains a central cache repository in your machine.

          When you do 'mvn install', the maven download the necessary dependencies to this local cahce repository.

          Those dependencies will be added to the project classpath.


          When you change the machine, the local cache repository is different and may not contains the dependencies.

          The best way is be connected to internet.


          You can try to copy the Win repository to Unix repository.

          The local cache repository in Windows is locaed at "Documents and Settings/<your-user>/.m2/repository".

          Just copy it to the same folder at "<user-home>/.m2/repository" in Unix.


          So, you can run "mvn install -o". (The -o option forced it to run in offline mode)


          I hope it helps.




          Italo Stefani

          Vetta Technologies


          Edited by: italost on Sep 17, 2008 9:30 AM