maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Patrick <nhoj.patr...@gmail.com>
Subject Re: mvn install (Access is denied) problem
Date Mon, 05 Mar 2012 10:19:51 GMT
Looks like a client side issue with your local environment.

Double check the -Dfile option as it looks like your referring to a
directory, instead of a file. Can you confirm the following is what
you are executing:

mvn
install:install-file
-DgroupId=com.google.gdata
-DartifactId=gdata-docs
-Dversion=3.0
-Dpackaging=jar
-Dfile=C:\Users\admin\rsmart-gdoc\gdata\java\lib
-DgeneratePom=true

John

On 5 March 2012 08:32, jehan <jehan.badshah@nu.edu.pk> wrote:
> Dear All
>
> I am using windows 7,
> when installing a library using command
> *mvn install:install-file -DgroupId=com.google.gdata -DartifactId=gdata-docs
> -Dversion=3.0 -Dpackaging=jar
> -Dfile=C:\Users\admin\rsmart-gdoc\gdata\java\lib -DgeneratePom=true*
>
>
> then getting following error
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'install'.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [install:install-file] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] [install:install-file {execution: default-cli}]
> [INFO] Installing C:\Users\admin\rsmart-gdoc\gdata\java\lib to
> C:\Users\admin\.m2\repository\com\google\gdata\gdata-docs\3.0\gdata-docs-3.0.jar
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Error installing artifact 'com.google.gdata:gdata-docs:jar': Error
> installing artifact: C:\Users\admin\rsmart-gdoc\gdata\java\lib (Access is
> denied)
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: < 1 second
> [INFO] Finished at: Mon Mar 05 13:31:25 PKT 2012
> [INFO] Final Memory: 3M/15M
> [INFO]
> ------------------------------------------------------------------------
>
> I think it is permission problem, but I checked current user have full right
> on .m repository
> please resolve it
>
>
> --
> View this message in context: http://maven.40175.n5.nabble.com/mvn-install-Access-is-denied-problem-tp5536889p5536889.html
> Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message