The question here is: does the Jenkins job also access that folder in root context? I doubt it, that would be a security issue. You should figure out which user context is in use by Jenkins and then either add that service user to the root group or amend the folder permission to meet the service user.
Take care Jan Am Mittwoch, 9. Mai 2012 13:42:01 UTC+2 schrieb Anubhaw Shrivastav: > > Hi, > > I'm getting IllegalArgumentException stating that 'lib' directory is > inaccessible: > > "java.lang.IllegalArgumentException: /usr/local/maven doesn't have a > 'lib' subdirectory - thus cannot be a valid maven installation!" > > However, maven is present at that location and has proper access > rights set as well: > [root@machine maven]# pwd > /usr/local/maven > [root@machine maven]# ls -ltr > drwxrwxrwx 3 root root 4096 Jan 17 00:40 lib > > The same job is configuring on a different machine too, and there its > working fine. Anyone has any suggestions/solutions? > > Regards, > Anubhaw >