On Thursday 18 September 2008 shubham wrote:
> As suggested earlier i added the proxy details in settings.xml with
> correct Username and Password and it worked fine.

Well, in the mail where you showed us your proxy details you also showed us 
the exception which is still occuring. From this I don't get it what the 
actual problem was... Anyway, now you have different problems ;)

> the command i am using is mvn install.I just now downloaded
> maven-install-plugin-2.2.jar and installed it which was succesfull as
> below:-

Why do you want to download and install the maven-install-plugin manually? 
Maven should handle this automatically. If it fails you probably have still 
connection problems!

> $ mvn install:install-file -DgroupId=org.apache.maven.plugins
> -DartifactId=maven-plugins -Dversion=2.2 -Dpackaging=jar
> -Dfile=/ebilling/application/edxadmin/installplugin/maven-install-plugin-
>2.2.jar [INFO] Scanning for projects...

What you are doing here is using the maven-install-plugin to install a file 
called maven-install-plugin-2.2.jar which is already there as you use it.

Why do you want to install the file maven-install-plugin-2.2.jar in your 
repository with the artifactId "maven-plugins" at all? This is very likely 
to break your local maven repository. If I were you, I'd delete 
$HOME/.m2/repository and start again, just to be sure you haven't damaged 
anything important already!

> [INFO] Searching repository for plugin with prefix: 'install'.
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plug
>in/2.2/maven-install-plugin-2.2.pom 2K downloaded
> Downloading:
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plug
>in/2.2/maven-install-plugin-2.2.jar 15K downloaded
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [install:install-file] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [install:install-file]
> [INFO] Installing
> /ebilling/application/edxadmin/installplugin/maven-install-plugin-2.2.jar
> to
> /ebilling/application/edxadmin/.m2/repository/org/apache/maven/plugins/ma
>ven-plugins/2.2/maven-plugins-2.2.jar [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD SUCCESSFUL
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 22 seconds
> [INFO] Finished at: Thu Sep 18 14:28:51 IST 2008
> [INFO] Final Memory: 5M/494M
> [INFO]
> ------------------------------------------------------------------------

Ok, the install plugin is definitely working, as you are just using it to 
install itself...

> Still when i run mvn install from my project directory still facing the
> same error.

Then it's a problem in you pom.xml, not in your maven setup.

hth,
- martin

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to