权限被拒绝在Linux上的Netbeans上创建Maven企业应用程序 [英] Permission denied creating a Maven Enterprise Application on Netbeans on Linux

查看:97
本文介绍了权限被拒绝在Linux上的Netbeans上创建Maven企业应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Linux Mint 16上使用Netbeans 8.0和Maven 3.2.2,并且试图创建一个新的Maven Enterprise Project.但是,这样做时出现以下错误:

I am using Netbeans 8.0 and Maven 3.2.2 on Linux Mint 16 and I am trying to create a new Maven Enterprise Project. However, I get the following error when doing it:

命令: cd/path/to/new/project; JAVA_HOME =/usr/java/jdk1.7.0_45/jre M2_HOME =/path/to/apache-maven-3.2.2/path/to/apache-maven-3.2.2/bin/mvn -DarchetypeGroupId = org.codehaus. mojo.archetypes -DarchetypeArtifactId = ejb-javaee7 -DarchetypeVersion = 1.1 -DarchetypeRepository = http://repo.maven.apache .org/maven2 -DgroupId = com.mycompany -DartifactId = ExampleProject-ejb -Dversion = 1.0-SNAPSHOT -Dbasedir =/home/path/to/new/project -Darchetype.interactive = false --batch-mode原型:生成

Command: cd /path/to/new/project; JAVA_HOME=/usr/java/jdk1.7.0_45/jre M2_HOME=/path/to/apache-maven-3.2.2 /path/to/apache-maven-3.2.2/bin/mvn -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=ejb-javaee7 -DarchetypeVersion=1.1 -DarchetypeRepository=http://repo.maven.apache.org/maven2 -DgroupId=com.mycompany -DartifactId=ExampleProject-ejb -Dversion=1.0-SNAPSHOT -Dbasedir=/home/path/to/new/project -Darchetype.interactive=false --batch-mode archetype:generate

错误: 无法运行程序"/path/to/apache-maven-3.2.2/bin/mvn"(在目录"/path/to/new/project"中):错误= 13,权限被拒绝

Error: Cannot run program "/path/to/apache-maven-3.2.2/bin/mvn" (in directory "/path/to/new/project"): error=13, Permission denied

(项目,Java主目录和Maven的)所有路径均具有以下权限rwxr-xr-x

All the paths (of the project, Java home and maven) have the following permissions rwxr-xr-x

知道发生了什么事吗?

推荐答案

最后,我解决了这个问题,我使用了/dev/sda2,其中有我的/path/to/apache-maven-3.2.2目录(在我的/home目录),而/etc/fstab文件中没有选项"exec"

Finally I solved the problem, I had the /dev/sda2 where I have my /path/to/apache-maven-3.2.2 directory (in my /home directory) without the option "exec" in the file /etc/fstab

这篇关于权限被拒绝在Linux上的Netbeans上创建Maven企业应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆