Maven mvn清洁安装don和xB4;没有sudo我不能工作
我有一个奇怪的问题,我有一个配置了maven的项目,当我执行:mvn clean install时,我得到了以下错误:Maven mvn清洁安装don和xB4;没有sudo我不能工作,maven,ubuntu,permissions,installation,sudo,Maven,Ubuntu,Permissions,Installation,Sudo,我有一个奇怪的问题,我有一个配置了maven的项目,当我执行:mvn clean install时,我得到了以下错误: [INFO] --------------------------------------------------------------- --------- [INFO] BUILD FAILURE [INFO] --------------------------------------------------------------- --------- [INFO
[INFO] ---------------------------------------------------------------
---------
[INFO] BUILD FAILURE
[INFO] ---------------------------------------------------------------
---------
[INFO] Total time: 4.637 s
[INFO] Finished at: 2018-04-19T22:21:24-03:00
[INFO] ---------------------------------------------------------------
---------
[ERROR] Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-
plugin:2.3:wsimport (wsimport-XXXXXXXXX-generate) on project
XXXXXXXXXX:
Mojo failed - check output -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionExceptio
n
[ERROR]
[ERROR] After correcting the problems, you can resume the build with
the command
- 但是当我执行sudo mvn clean install时,它可以完美地工作。为什么我需要和sudo一起执行
- 我正在运行Ubuntu 16.04、maven 3.5.3和java 1.7.0_95
在base pom.xml上-将所有子项目链接到root用户sudo mvn clean install
- 通过
ls-al*| grep target
- 在运行基本pom.xml的主项目文件夹上:
sudo chown-R用户名:用户名。
- 或者:
sudo chown-R用户名:username/home/username/path/to/project