Fatal error: Access is denied @C:\maven2\conf

262 views
Skip to first unread message

Troy

unread,
Nov 10, 2015, 9:41:10 AM11/10/15
to Jenkins Users
Hello, all
It's the first time I play with Jenkins (version 1637) installed on Windows 7 (JDK1.6). However I got the following error when I manually build project:
ERROR: Failed to parse POMs
hudson.maven.MavenEmbedderException: 1 problem was encountered while building the effective settings
[FATAL] Non-readable settings C:\maven2\conf: C:\maven2\conf (Access is denied) @ C:\maven2\conf

	at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:128)
	at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:109)
	at hudson.maven.MavenEmbedder.<init>(MavenEmbedder.java:136)
	at hudson.maven.MavenUtil.createEmbedder(MavenUtil.java:212)
	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1295)
	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1098)
	at hudson.FilePath.act(FilePath.java:991)
	at hudson.FilePath.act(FilePath.java:969)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:960)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:679)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
	at hudson.model.Run.execute(Run.java:1741)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)

Googled around but still in dark. 
Can anyone help me out? 
Thanks very much

Troy

vivek yaragatti

unread,
Nov 10, 2015, 10:15:51 AM11/10/15
to Jenkins Users
Hi troy,
 
Try running the Maven as an administrator.
I am not sure this will solve the issue but it has to do with the permissions.
 
Regards,
Vivek

Troy

unread,
Nov 10, 2015, 10:56:13 AM11/10/15
to Jenkins Users
Hi Vivek,
Thanks for your reply. Everything works fine if I run maven in console (CMD). However it hits the permission issue when the project is built in Jenkins.

Troy
Reply all
Reply to author
Forward
0 new messages