Proxy details :-   
<!-- proxies
   | This is a list of proxies which can be used on this machine to connect
to the network.
   | Unless otherwise specified (by system property or command-line switch),
the first proxy
   | specification in this list marked as active will be used.
   |-->
  <proxies>
    <!-- proxy
     | Specification for one proxy, to be used in connecting to the network.
     |
    <proxy>
      <id>optional</id>
      <active>true</active>
      <protocol>http</protocol>
      <username>XXX</username>
      <password>YYY<password>
      <host>proxy IP address</host>
      <port>80</port>
      <nonProxyHosts>http://repo1.maven.org/maven2</nonProxyHosts>
    </proxy>
    -->
  </proxies>


MVN command

$ mvn -X install:install-file -DgroupId=swarmcache -DartifactId=swarmcache
-Dversion=1.0RC2 -Dpackaging=jar -Dfile=/ebilling/application/edxadmin/swarm
+ Error stacktraces are turned on.
Maven version: 2.0.9
Java version: 1.5.0_04
OS name: "sunos" version: "5.10" arch: "sparc" Family: "unix"
[DEBUG] Building Maven user-level plugin registry from:
'/ebilling/application/edxadmin/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from:
'/ebilling/application/edxadmin/apache-maven-2.0.9/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
[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
[DEBUG] Exception
org.apache.maven.wagon.TransferFailedException: Error transferring file
        at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:104)
        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
        at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(DefaultWagonManager.java:470)
        at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMetadata(DefaultWagonManager.java:370)
        at
org.apache.maven.artifact.repository.metadata.DefaultRepositoryMetadataManager.resolve(DefaultRepositoryMetadataManager.java:97)
        at
org.apache.maven.plugin.DefaultPluginMappingManager.loadPluginMappings(DefaultPluginMappingManager.java:103)
        at
org.apache.maven.plugin.DefaultPluginMappingManager.loadPluginMappings(DefaultPluginMappingManager.java:87)
        at
org.apache.maven.plugin.DefaultPluginMappingManager.getByPrefix(DefaultPluginMappingManager.java:61)
        at
org.apache.maven.plugin.DefaultPluginManager.getPluginDefinitionForPrefix(DefaultPluginManager.java:154)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1468)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: java.net.UnknownHostException: repo1.maven.org
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
        at java.net.Socket.connect(Socket.java:507)
        at java.net.Socket.connect(Socket.java:457)
        at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:365)
        at sun.net.www.http.HttpClient.openServer(HttpClient.java:477)
        at sun.net.www.http.HttpClient.<init>(HttpClient.java:214)
        at sun.net.www.http.HttpClient.New(HttpClient.java:287)
        at sun.net.www.http.HttpClient.New(HttpClient.java:299)
        at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:792)
        at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:744)
        at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:669)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
        at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputData(LightweightHttpWagon.java:83)
        ... 22 more
[INFO] Repository 'central' will be blacklisted
[DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
[DEBUG] Skipping blacklisted repository central
[DEBUG] Skipping blacklisted repository central
[DEBUG] Trying repository central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.2/maven-install-plugin-2.2.pom
[DEBUG] Unable to get resource
'org.apache.maven.plugins:maven-install-plugin:pom:2.2' from repository
central (http://repo1.maven.org/maven2)
[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]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Unable to build
project for plugin 'org.apache.maven.plugins:maven-install-plugin': POM
'org.apache.maven.plugins:maven-install-plugin' not found in repository:
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)
 for project org.apache.maven.plugins:maven-install-plugin
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1291)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecutor.java:405)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.InvalidPluginException: Unable to build
project for plugin 'org.apache.maven.plugins:maven-install-plugin': POM
'org.apache.maven.plugins:maven-install-plugin' not found in repository:
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)
 for project org.apache.maven.plugins:maven-install-plugin
        at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:281)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyVersionedPlugin(DefaultPluginManager.java:197)
        at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:176)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
        ... 14 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.apache.maven.plugins:maven-install-plugin' not found in repository:
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)
 for project org.apache.maven.plugins:maven-install-plugin
        at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:603)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromRepository(DefaultMavenProjectBuilder.java:249)
        at
org.apache.maven.plugin.DefaultPluginManager.checkRequiredMavenVersion(DefaultPluginManager.java:265)
        ... 17 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
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)

        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:212)
        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:74)
        at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:556)
        ... 19 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
download the artifact from any repository
        at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:331)
        at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:200)
        ... 21 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Wed Sep 17 17:38:34 IST 2008
[INFO] Final Memory: 4M/494M
[INFO]
------------------------------------------------------------------------



Nick Stolwijk wrote:
> 
> Could you post your (anonimized) proxy part of settings xml and the
> output of the mvn commando with an extra -X parameter?
> 
> With regards,
> 
> Nick Stolwijk
> ~Java Developer~
> 
> Iprofs BV.
> Claus Sluterweg 125
> 2012 WS Haarlem
> www.iprofs.nl
> 
> 
> 
> On Wed, Sep 17, 2008 at 1:49 PM, shubham <[EMAIL PROTECTED]>
> wrote:
>>
>> 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]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/Hi-tp1082498p1095021.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]

Reply via email to