maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jialanque <jialan....@gmail.com>
Subject mvn install give permission denied error for writing track file to local repository
Date Fri, 12 Jul 2013 20:59:44 GMT
I tried to install mahout using maven with version info:

Apache Maven 3.1.0-alpha-1 (c726cdd3a9ad5c3a419e1171f8c1925e336ead18;
2013-06-01 13:03:28+0000)
Maven home: /export/home/jque/apache-maven-3.1.0-alpha-1
Java version: 1.6.0_33, vendor: Sun Microsystems Inc.
Java home: /usr/java/jdk1.6.0_33/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-220.17.1.el6.x86_64", arch: "amd64",
family: "unix"

I ran "mvn install" under the trunk of mahout and got the error msg below. I
have checked the directory and subdirectory under $HOME/.m2/repository and
the permission is rw-rw-rw-.


[INFO] Scanning for projects...
[WARNING] Failed to read tracking file
/export/home/jque/.m2/repository/org/apache/apache/9/_remote.repositories
java.io.IOException: Permission denied
        at sun.nio.ch.FileChannelImpl.lock0(Native Method)
        at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:832)
        at
org.eclipse.aether.internal.impl.TrackingFileManager.lock(TrackingFileManager.java:203)
        at
org.eclipse.aether.internal.impl.TrackingFileManager.read(TrackingFileManager.java:58)
        at
org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManager.readRepos(EnhancedLocalRepositoryManager.java:172)
        at
org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManager.find(EnhancedLocalRepositoryManager.java:92)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:353)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
        at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:295)
        at
org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
        at
org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:817)
        at
org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:669)
        at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:307)
        at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:411)
        at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:380)
        at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:344)
        at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:638)
        at
org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:587)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:230)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        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:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
[WARNING] Failed to read tracking file
/export/home/jque/.m2/repository/org/apache/apache/9/_remote.repositories
java.io.IOException: Permission denied
        at sun.nio.ch.FileChannelImpl.lock0(Native Method)
        at sun.nio.ch.FileChannelImpl.lock(FileChannelImpl.java:832)
        at
org.eclipse.aether.internal.impl.TrackingFileManager.lock(TrackingFileManager.java:203)
        at
org.eclipse.aether.internal.impl.TrackingFileManager.read(TrackingFileManager.java:58)
        at
org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManager.readRepos(EnhancedLocalRepositoryManager.java:172)
        at
org.eclipse.aether.internal.impl.EnhancedLocalRepositoryManager.find(EnhancedLocalRepositoryManager.java:92)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:353)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:262)
        at
org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:239)
        at
org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:295)
        at
org.apache.maven.project.ProjectModelResolver.resolveModel(ProjectModelResolver.java:155)
        at
org.apache.maven.model.building.DefaultModelBuilder.readParentExternally(DefaultModelBuilder.java:817)
        at
org.apache.maven.model.building.DefaultModelBuilder.readParent(DefaultModelBuilder.java:669)
        at
org.apache.maven.model.building.DefaultModelBuilder.build(DefaultModelBuilder.java:307)
        at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:411)
        at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:380)
        at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:496)
        at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:380)
        at
org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:344)
        at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:638)
        at
org.apache.maven.DefaultMaven.getProjectsForMavenReactor(DefaultMaven.java:587)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:230)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:153)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
        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:597)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
        at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
[WARNING] Failed to read tracking file
/export/home/jque/.m2/repository/org/apache/apache/9/_remote.repositories
...

I don't know what is the problem. Please help me to get some clue. Thanks.





--
View this message in context: http://maven.40175.n5.nabble.com/mvn-install-give-permission-denied-error-for-writing-track-file-to-local-repository-tp5762801.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