[
https://issues.jenkins-ci.org/browse/JENKINS-9241?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=159750#comment-159750
]
Quintin Siebers commented on JENKINS-9241:
------------------------------------------
When I had this problem, it was because the Apache zip was extracted into
{MavenName}/apache-maven-3.0.4, while Hudson checks the {MavenName}/lib folder.
The solution is to manually move your extracted maven up one directory.
> maven2: java.lang.IllegalArgumentException: /usr/bin/mvn without lib directory
> ------------------------------------------------------------------------------
>
> Key: JENKINS-9241
> URL: https://issues.jenkins-ci.org/browse/JENKINS-9241
> Project: Jenkins
> Issue Type: Bug
> Components: maven2
> Affects Versions: current
> Environment: Ubuntu 10.10 hudson running inside tomcat6
> Reporter: ssbarnea
>
> I get the following error when I try to execute a maven task from hudson.
> Maven is installed on the OS and I'm able to use it from the command line.
> Maven is configured inside Jenkins config but I still get this unclear error.
> java.lang.IllegalArgumentException: /usr/bin/mvn without lib directory
> at
> hudson.maven.MavenEmbedderUtils.buildClassRealm(MavenEmbedderUtils.java:81)
> at
> hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:170)
> at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:56)
> at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:40)
> at hudson.FilePath.act(FilePath.java:785)
> at
> hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:568)
> at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:423)
> at hudson.model.Run.run(Run.java:1362)
> at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:454)
> at hudson.model.ResourceController.execute(ResourceController.java:88)
> at hudson.model.Executor.run(Executor.java:145)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira