I have updated the settings.xml with the proxy details and now the error is :- $ mvn install:install-file -DgroupId=swarmcache -DartifactId=swarmcache -Dversion=1.0RC2 -Dpackaging=jar -Dfile=/ebilling/application/edxadmin/swarm [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'install'. [INFO] org.apache.maven.plugins: checking for updates from central [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an error: Error transferring file [INFO] Repository 'central' will be blacklisted Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.pom [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Failed to resolve artifact.
GroupId: org.apache.maven.plugins ArtifactId: maven-install-plugin Version: 2.2 Reason: Unable to download the artifact from any repository org.apache.maven.plugins:maven-install-plugin:pom:2.2 from the specified remote repositories: central (http://repo1.maven.org/maven2) [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: < 1 second [INFO] Finished at: Wed Sep 17 16:58:01 IST 2008 [INFO] Final Memory: 4M/494M [INFO] ------------------------------------------------------------------------ I have just no idea is it still not able to connect to internet or isue is something else? Nick Stolwijk wrote: > > I don't know about Internet Explorer or Windows script, (Ain't using > both). > > But here are a few options: > > Maybe you could let this script also generate a settings.xml [1] with > the right proxy information. As far as I know Maven can't handle this > type of scripts. > > Another option would be to adjust mvn.bat to read the script file and > extract the proxy from it and give it to the maven program with > command line parameters. > > Or you could read the proxy script yourself and assume that it won't > change much and enter the proxy information into the settings.xml > yourself. > > When you enter proxy information into the settings.xml and you want to > use the active flag to switch it off, please take note of MNG-2387 > [2]. > > [1] http://maven.apache.org/ref/2.0.7/maven-settings/settings.html > [2] http://jira.codehaus.org/browse/MNG-2387 > > Hth, > > Nick Stolwijk > ~Java Developer~ > > Iprofs BV. > Claus Sluterweg 125 > 2012 WS Haarlem > www.iprofs.nl > > > > On Wed, Sep 17, 2008 at 8:02 AM, shubham <[EMAIL PROTECTED]> > wrote: >> >> Hi Nick, >> >> Thanks a lot for your reply >> I have internet connection and the issue is i am trying to access is from >> office...there is no proxy although we have set some script in Lan >> settings >> in IE as configuration scriptand when i tried through web browser i was >> able >> to open the site. >> >> can i use this script also instead of proxy?If yes how? >> >> Thanks in advance. >> >> Shubham >> >> >> Nick Stolwijk wrote: >>> >>> Do you have a connection to the internet? Maven will download all the >>> plugins and dependencies Maven and your project needs. If it can't >>> connect to the central repository it will not work. When your browser >>> normally connect to the internet through a proxy, specify this proxy >>> in the settings.xml inside your maven installation directory >>> (conf/settings.xml). >>> >>> Hth, >>> >>> Nick Stolwijk >>> ~Java Developer~ >>> >>> Iprofs BV. >>> Claus Sluterweg 125 >>> 2012 WS Haarlem >>> www.iprofs.nl >>> >>> >>> >>> On Thu, Sep 11, 2008 at 12:39 PM, Shubham Saraswat >>> <[EMAIL PROTECTED]> wrote: >>>> Hi, >>>> >>>> I need maven for repackaging LGPL for Edocs installation. >>>> >>>> I downloaded Mavan 2.0.9 and set the PATH and M2_HOME >>>> >>>> Mvn -version is working fine. But mvn compile is giving following >>>> error:- >>>> >>>> >>>> # mvn compile >>>> [INFO] Scanning for projects... >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] Building Maven Default Project >>>> [INFO] task-segment: [compile] >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> Downloading: >>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom >>>> Downloading: >>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.2/maven-resources-plugin-2.2.pom >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [ERROR] BUILD ERROR >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] Failed to resolve artifact. >>>> >>>> GroupId: org.apache.maven.plugins >>>> ArtifactId: maven-resources-plugin >>>> Version: 2.2 >>>> >>>> Reason: Unable to download the artifact from any repository >>>> >>>> org.apache.maven.plugins:maven-resources-plugin:pom:2.2 >>>> >>>> from the specified remote repositories: >>>> central (http://repo1.maven.org/maven2) >>>> >>>> >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] For more information, run Maven with the -e switch >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> [INFO] Total time: < 1 second >>>> [INFO] Finished at: Wed Sep 10 10:43:11 IST 2008 >>>> [INFO] Final Memory: 4M/494M >>>> [INFO] >>>> ------------------------------------------------------------------------ >>>> >>>> >>>> I tried downloading maven-resources-plugin-2.2.pom and replaced it with >>>> pom.xml in the repacking directory. But still same errors. Please >>>> suggest. >>>> >>>> Shubham Saraswat >>>> * Office: +91 80 2852 0261 Extn- 15258 | Mobile: +91 9902006402 >>>> Infosys(r) >>>> P O W E R E D B Y I N T E L L E C T >>>> D R I V E N B Y V A L U E S >>>> >>>> >>>> **************** CAUTION - Disclaimer ***************** >>>> This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended >>>> solely >>>> for the use of the addressee(s). If you are not the intended recipient, >>>> please >>>> notify the sender by e-mail and delete the original message. Further, >>>> you >>>> are not >>>> to copy, disclose, or distribute this e-mail or its contents to any >>>> other >>>> person and >>>> any such actions are unlawful. This e-mail may contain viruses. Infosys >>>> has taken >>>> every reasonable precaution to minimize this risk, but is not liable >>>> for >>>> any damage >>>> you may sustain as a result of any virus in this e-mail. You should >>>> carry >>>> out your >>>> own virus checks before opening the e-mail or attachment. Infosys >>>> reserves the >>>> right to monitor and review the content of all messages sent to or from >>>> this e-mail >>>> address. Messages sent to or from this e-mail address may be stored on >>>> the >>>> Infosys e-mail system. >>>> ***INFOSYS******** End of Disclaimer ********INFOSYS*** >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> :confused: >> -- >> View this message in context: >> http://n2.nabble.com/Hi-tp1082498p1094494.html >> Sent from the maven users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://n2.nabble.com/Hi-tp1082498p1094985.html Sent from the maven users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
