Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-9241

maven2: java.lang.IllegalArgumentException: /usr/bin/mvn without lib directory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • maven-plugin
    • None
    • Ubuntu 10.10 hudson running inside tomcat6

      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)

            Unassigned Unassigned
            ssbarnea Sorin Sbarnea
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: